Queries a list of the namespaces of a Kubernetes cluster that is added to a Service Mesh (ASM) instance.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ServiceMeshId | string | Yes | The ASM instance ID. | ce134b0727aa2492db69f6c3880e**** |
GuestClusterID | string | Yes | The ID of the Kubernetes cluster that is added to the ASM instance. | c584d805c7bd442b8bac421f9849f**** |
ShowNsLabels | boolean | No | Specifies whether to return the labels of the namespaces. | true |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "31d3a0f0-07ed-4f6e-9004-1804498c****",
"NsList": [
"default"
],
"NsLabels": {
"default": {
"istio-injection": "enabled"
}
}
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
404 | ERR404 | Not found |
For a list of error codes, visit the Service error codes.