All Products
Search
Document Center

Enterprise Distributed Application Service:ListK8sNamespaces

Last Updated:Mar 01, 2024

Queries namespaces for a Kubernetes cluster.

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 syntax

GET /pop/v5/k8s/acs/k8s_namespace

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterIdstringNo

The ID of the cluster in Enterprise Distributed Application Service (EDAS).

5b2b4ab4-efbc-4a81-9c45-xxxxxxxxxxxxx

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

57F146F6-3C94-****-****-A66EF4B9*****
Codeinteger

The HTTP status code that is returned.

200
Messagestring

The message returned for the request.

success
Dataobject []

The data that is returned.

Namespacestring

The namespaces of the Kubernetes cluster.

development

Examples

Sample success responses

JSONformat

{
  "RequestId": "57F146F6-3C94-****-****-A66EF4B9*****",
  "Code": 200,
  "Message": "success",
  "Data": [
    {
      "Namespace": "development"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
500Edas.errorcode.PermissionDenied.messageYou are not authorized to perform the operation.No permissions

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

Change history

Change timeSummary of changesOperation
No change history