Queries the namespaces of a registered service in 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 GetRegisteredServiceNamespaces

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

ServiceMeshId String Yes cb8963379255149cb98c8686f274x****

The ID of the ASM instance.

Response parameters

Parameter Type Example Description
Namespaces Array of String default

The names of the queried namespaces.

RequestId String 31d3a0f0-07ed-4f6e-9004-1804498c****

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetRegisteredServiceNamespaces
&ServiceMeshId=cb8963379255149cb98c8686f274x****
&<Common request parameters>

Sample success responses

XML format

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

<GetRegisteredServiceNamespacesResponse>
    <Namespaces>default</Namespaces>
    <RequestId>31d3a0f0-07ed-4f6e-9004-1804498c****</RequestId>
</GetRegisteredServiceNamespacesResponse>

JSON format

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

{
  "Namespaces" : "default",
  "RequestId" : "31d3a0f0-07ed-4f6e-9004-1804498c****"
}

Error codes

HTTP status code Error code Error message Description
500 ERR500 An internal server error occurred. The error message returned because a backend service error occurs.

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