Imports a Container Service for Kubernetes (ACK) cluster or a serverless Kubernetes cluster to Enterprise Distributed Application Service (EDAS).


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 headers

This operation uses only common request headers. For more information, see the topic about common request parameters.

Request syntax

POST /pop/v5/import_k8s_cluster HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
ClusterId String Query Yes 9c28bbb9-****-44b3-b953-54ef8a2d0be2

The ID of the ACK cluster or serverless Kubernetes cluster. You can obtain the cluster ID by calling the GetK8sCluster operation.

NamespaceId String Query No cn-beijing:doc

The ID of the microservice namespace, in the format of Region ID:Identifier of the microservice namespace. Example: cn-hangzhou:doc.

Mode Integer Query No 1

You do not need to pay attention to this parameter.

EnableAsm Boolean Query No true

Specifies whether to enable the integration with Alibaba Cloud Service Mesh (ASM). Valid values:

  • true: enable
  • false: disable

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code.

Data String cf96d49a-6be2-4b6d-****-75c7fb86****

The ID of the cluster in EDAS.

Message String success

The returned message that indicates whether the call is successful.

RequestId String a5281053-08e4-47a5-b2ab-5c0323de7b5a

The ID of the request.


Sample requests

POST /pop/v5/import_k8s_cluster HTTP/1.1
Common request headers
"ClusterId": "9c28bbb9-****-44b3-b953-54ef8a2d0be2"

Sample success responses

XML format


JSON format

    "RequestId": "a5281053-08e4-47a5-b2ab-5c0323de7b5a",
    "Message": "success",
    "Data": "cf96d49a-6be2-4b6d-****-75c7fb86****",
    "Code": 200

Error codes

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