Updated on 2022-06-20 GMT+08:00

Querying the Service List

Function

This API is used to query the service list.

URI

GET /v1/{project_id}/ats/applications

Request

Table 1 Request headers

Parameter

Description

Mandatory

Example

clusterId

Cluster ID.

No

default

namespace

Namespace.

No

manage

Table 2 Path parameter

Parameter

Type

Description

project_id

String

Project ID.

Table 3 Request parameter

Parameter

Mandatory

Type

Description

monitorGroup

No

String

Application name. For details, see Querying the Application List.

Example request

/v1/0/ats/applications?monitorGroup=11d5c9b83c1b2e04579fa5a34d191bb5

Response

Table 4 Response parameters

Parameter

Type

Description

errorCode

String

Error code.

SVCSTG.ATS.2000: Query succeeded.

SVCSTG.ATS.400101: Parameter verification failed.

SVCSTG.ATS.200103: No service information found.

errorMessage

String

Description of the error.

responseInfo

List (string)

Service name list.

Example response

{
  "errorCode": "SVCSTG.ATS.2000",
  "errorMessage":null,
  "responseInfo": ["ams-calc:8080","ams-metric:8080"]
}

Status Code

  • Success response
    Table 5 describes the status code.
    Table 5 Status code

    Status Code

    Description

    200

    The request is successful.