There is, but it's not official/public. This means that the access
method is rudimentary and not very user friendly, that the access
method may change in the future, that there is not a lot of
documentation, and that the output format may change
in the future.
The API server listens on a Unix domain socket (not TCP socket) called
'agents.s/core_api' inside the instance directory[1][2]. The following
CLI commands correspond to these HTTP requests:
passenger-status (for process information): GET /pool.txt
passenger-status --show=server (for request information): GET /server.json
All HTTP requests must be authenticated with HTTP basic
authentication. Username 'ro_admin', password is stored in the file
read_only_admin_password.txt inside the instance directory.
We have a convenience wrapper around all of this, in the form of the
'passenger-config api-call' command. Run that with --help to learn
more. My opinion is that your best bet is to use the `passenger-config
api-call` command instead of making raw HTTP requests.
[1]
https://www.phusionpassenger.com/documentation/Design%20and%20Architecture.html#instance_state_and_communication
[2]
https://www.phusionpassenger.com/library/config/nginx/reference/#passenger_instance_registry_dir
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
phusion-passen...@googlegroups.com.
> To post to this group, send email to
phusion-...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/phusion-passenger.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/phusion-passenger/c58f5345-3242-442f-bb5a-d16ef912d9d7%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
Phusion B.V. | Web Application deployment, scaling, and monitoring solutions
Web:
http://www.phusion.nl/
E-mail:
in...@phusion.nl
Chamber of commerce no: 63501007 (The Netherlands)