A target's status is the current status of the writer, which can be one of four states: started, starting, paused, or pausing. Due to a writer taking some time to deploy, the starting and pausing statuses indicate the writer is changing state. When a target is in error status for non-bad records related to network connectivity or non-availability of infrastructure services, Listener automatically restarts micro services associated with the target within a span of one to three minutes. During this time, target status may appear as starting.
Definition
GET https://CLUSTER.DOMAIN/listener/appservices/targets/{target_id}/status HTTP/1.1
Example Request
curl \
-H "Content-Type: application/json" \
-H "Authorization: Bearer TOKEN" \
-X GET \
-i \
https://CLUSTER.DOMAIN/listener/appservices/targets/758fbda4-accc-4f90-8f09-cc0a164c8c28/pause
Example Response
HTTP/1.1 200 OK
{ "status": "started" }
Response Codes
Code | Description |
---|---|
200 | Status successfully returned. |
401 | Authorization header not found. |
404 | Resource not found. |