REST API status endpoints
The status endpoints under /rhui/api/v1/status/ report Red Hat Update Infrastructure system and repository status. All status endpoints require HTTP Basic authentication or a rhuiSessionId cookie.
| Endpoint | Description |
|---|---|
|
|
Get CDS node service and SSL certificate status. |
|
|
Get haproxy node service status. |
|
|
List all repositories with their current status. |
|
|
Get RHUA service status. |
GET /rhui/api/v1/status/cds
Returns services and SSL certificate expiration for every registered CDS node, mirroring the CDS services and CDS SSL certificates sections of rhui-manager status. Nodes are checked concurrently over SSH. An empty nodes array is returned when no CDS nodes are registered.
Returns 200 with a StatusCdsResponse object (application/json). Common response codes also apply.
GET /rhui/api/v1/status/haproxy
Returns service status for every registered haproxy (load balancer) node, mirroring the HaProxy section of rhui-manager status. Nodes are checked concurrently over SSH using the haproxy bash function. An empty nodes array is returned when no haproxy nodes are registered.
Returns 200 with a StatusHaproxyResponse object (application/json). Common response codes also apply.
GET /rhui/api/v1/status/repos
Returns all RHUI-managed repositories with sync and publish status, mirroring rhui-manager status --repo_json but with last_sync_start, last_sync_end, and last_sync_duration in place of last_sync_date, plus the new repo_available boolean field. The repo_available field indicates whether the latest repository version has been exported to the filesystem; that is, whether the repository version equals last_export_version from the repository notes.
Returns 200 with a StatusReposResponse object (application/json). Common response codes also apply.
GET /rhui/api/v1/status/rhua
Returns the active state of RHUA systemd services: nginx, postgresql, pulpcore-api, pulpcore-content, and all discovered pulpcore-worker@ instances, plus expiration status of the entitlement CA and RHUA Pulp Nginx SSL (pulp_webserver.crt) certificates. Mirrors the corresponding sections of rhui-manager status.
Returns 200 with a StatusRhuaResponse object (application/json). Common response codes also apply.
| Number | Description | Response |
|---|---|---|
|
401 |
Authentication required or invalid credentials — application/json |
Error |
|
500 |
Unexpected internal error — application/json |
Error |