GET /status/v1/services/<SERVICE NAME>
Retrieves the status of one Puppet Enterprise (PE) service.
Request format
When Forming status API requests to this endpoint, your request must include a properly-formatted service name and the corresponding port. Service names and default ports are as follows:
Service | Port |
---|---|
activity-service
|
4433 |
broker-service
|
8143 (primary server)8140 (compilers) |
classifier-service
|
4433 |
code-manager-service
|
8140 |
orchestrator-service
|
8143 |
puppetdb-service
|
8081 |
rbac-service
|
4433 |
server (Puppet Server) |
8140 |
This endpoint's content type is application/json; charset=utf-8
, and
you can specify these parameters in your request:
level
: How thorough of a check to run. Set tocritical
,debug
, orinfo
. The default isinfo
.timeout
: Specified in seconds. The default is30
.
For example, this request uses certificate authentication and fetches info
status information for the RBAC
service:
cert="$(puppet config print hostcert)" cacert="$(puppet config print localcacert)" key="$(puppet config print hostprivkey)" curl --cert "$cert" --cacert "$cacert" --key "$key" \ --header "Content-Type: application/json; charset=utf-8" \ --request GET "https://puppet.example.com:4433/status/v1/services/rbac-service?level=info&timeout=60"
Response format
The server uses these response codes:
200
if, and only if, all services report a status of running.503
if any service’s status isunknown
orerror
.400
if an invalid level parameter is set (notcritical
,debug
, orinfo
).- 404 if no service matching the supplied service name is found.
A successful response contains a JSON object listing details about the service using these keys:
Key | Definition |
---|---|
service_version
|
Package version of the JAR file containing a given service. |
service_status_version
|
The version of the API used to report the status of the service. |
detail_level
|
The level of detail shown. One of
critical , debug , or
info . |
state
|
The current state of the service. One of
running , error , or
unknown . |
status
|
An object with the service’s status details. Usually only relevant for error and unknown states. |
active_alerts
|
An array of objects containing
severity and a message about your
replication from pglogical if you have replication enabled; otherwise,
it's an empty array. |
For example, this response contains information about the RBAC service:
{ "rbac-service": {"service_version": "1.8.11-SNAPSHOT", "service_status_version": 1, "detail_level": "info", "state": "running", "status": { "activity_up": true, "db_up": true, "db_pool": { "state": "ready" }, "replication": { "mode": "none", "status": "none" } }, "active_alerts": [] } }