All Products
Search
Document Center

Alibaba Cloud Service Mesh:GetRegisteredServiceNamespaces

Last Updated:Mar 05, 2024

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.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ServiceMeshIdstringYes

The ID of the ASM instance.

cb8963379255149cb98c8686f274x****

Response parameters

ParameterTypeDescriptionExample
object
Namespacesarray

The names of the queried namespaces.

string
default
RequestIdstring

The ID of the request.

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

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError message
500ERR500An internal server error occurred.

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