You can call DescribeExternalAgent to obtain an agent to access the API server.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses the common request header only. For more information, see Common parameters.

Request syntax

GET /k8s/[ClusterId]/external/agent/deployment HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
ClusterId String Yes c106f377e16f34eb1808d6b9362c9cb**

The ID of the cluster.

Response parameters

Parameter Type Example Description
config String ""

The information about the agent.

Examples

Sample requests

GET /k8s/[ClusterId]/external/agent/deployment HTTP/1.1
Common request header
{
"ClusterId": ""
}

Sample success responses

XML format

<config>""</config>

JSON format

{"config":"\"\""}

Error codes

For a list of error codes, visit the API Error Center.