All Products
Search
Document Center

Alibaba Cloud Service Mesh:DescribeGuestClusterNamespaces

Last Updated:Mar 05, 2024

Queries a list of the namespaces of a Kubernetes cluster that is added to a 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.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ServiceMeshIdstringYes

The ASM instance ID.

ce134b0727aa2492db69f6c3880e****
GuestClusterIDstringYes

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

c584d805c7bd442b8bac421f9849f****
ShowNsLabelsbooleanNo

Specifies whether to return the labels of the namespaces.

true

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

31d3a0f0-07ed-4f6e-9004-1804498c****
NsListarray

The names of the namespaces.

string

The name of a namespace.

default
NsLabelsobject

The labels of the namespaces. Labels are returned only when ShowNsLabels is set to true.

{"default":{"istio-injection":"enabled"}}

Examples

Sample success responses

JSONformat

{
  "RequestId": "31d3a0f0-07ed-4f6e-9004-1804498c****",
  "NsList": [
    "default"
  ],
  "NsLabels": {
    "default": {
      "istio-injection": "enabled"
    }
  }
}

Error codes

HTTP status codeError codeError message
404ERR404Not found

For a list of error codes, visit the Service error codes.