Queries the pods in a specified namespace of a Kubernetes cluster that is added to an Alibaba Cloud Service Mesh (ASM) instance.

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 parameters

Parameter Type Required Example Description
Action String Yes DescribeGuestClusterPods

The operation that you want to perform. Set the value to DescribeGuestClusterPods.

ServiceMeshId String Yes c78d60f98fa43403ab6e0701b2678****

The ID of the ASM instance.

GuestClusterID String Yes c49ad2169d5a04f2d89dfc4b6bcu****

The ID of the Kubernetes cluster that is added to the ASM instance.

Namespace String Yes default

The name of the namespace.

Response parameters

Parameter Type Example Description
RequestId String EDDC0D86-2FC3-56FB-9213-96EB0A3523F1

The ID of the request.

PodList Array of String sleep-5axqt-*****

The names of the queried pods.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeGuestClusterPods
&ServiceMeshId=c78d60f98fa43403ab6e0701b2678****
&GuestClusterID=c49ad2169d5a04f2d89dfc4b6bcu****
&Namespace=default
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeGuestClusterPodsResponse>
    <RequestId>EDDC0D86-2FC3-56FB-9213-96EB0A3523F1</RequestId>
    <PodList>sleep-5axqt-*****</PodList>
</DescribeGuestClusterPodsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "EDDC0D86-2FC3-56FB-9213-96EB0A3523F1",
  "PodList" : "sleep-5axqt-*****"
}

Error codes

HTTP status code Error code Error message Description
404 ERR404 Not found The error message returned because the requested resource does not exist.

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