Querying the Service Instance List
Function
This API is used to query the instance list of a specified service.
URI
GET /v1/{project_id}/ats/applications/{application}/instances
Request
Request headers
Table 1 describes the request headers.
| Parameter | Description | Mandatory | Example |
|---|---|---|---|
| clusterId | Cluster ID. | No | default |
| namespace | Namespace. | No | manage |
Path parameters
Table 2 describes the path parameters.
| Parameter | Type | Description |
|---|---|---|
| project_id | String | Project ID. |
| application | String | Service name. |
Request parameters
Table 3 describes the request parameter.
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| monitorGroup | No | String | Application name. For details, see Querying the Application List. |
Example request
/v1/0/ats/applications/ams-metric:8080/instances?monitorGoup=11d5c9b83c1b2e04579fa5a34d191bb5
Response
Response parameters
Table 4 describes the response parameters.
| Parameter | Type | Description |
|---|---|---|
| errorCode | String | Error code. SVCSTG.ATS.2000: Query succeeded. SVCSTG.ATS.400101: Parameter verification failed. SVCSTG.ATS.200103: No instance information found. |
| errorMessage | String | Description of the error. |
| responseInfo | List (string) | Instance list of a specified service. |
Example response
{
"errorCode": "SVCSTG.ATS.2000",
"errorMessage":null,
"responseInfo": [ "d056db8ebf2350c118ea7ace383ac5dd"]
} Status Code
- Success response
Last Article: Querying the Service List
Next Article: Querying the Service Transaction List
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.