All Products
Search
Document Center

Enterprise Distributed Application Service:ImportK8sCluster

Last Updated:Sep 08, 2025

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

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
edas:CreateClusternone
*NameSpace
acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}
    none
none

Request syntax

POST /pop/v5/import_k8s_cluster HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterIdstringYes

The ID of the ACK cluster or serverless Kubernetes cluster. You can obtain the cluster ID by calling the GetK8sCluster operation. For more information, see GetK8sCluster .

9c28bbb9-****-44b3-b953-54ef8a2d0be2
NamespaceIdstringNo

The ID of the namespace. It is in the format of Region ID:Identifier of the microservices namespace. Example: cn-hangzhou:doc.

cn-beijing:doc
ModeintegerNo

You can ignore this parameter.

1
EnableAsmbooleanNo

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

  • true: Enables the integration with ASM.
  • false: Disables the integration with ASM.
true

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The HTTP status code that is returned.

200
Messagestring

The message that is returned.

success
Datastring

The ID of the cluster in EDAS.

cf96d49a-6be2-4b6d-****-75c7fb86****
RequestIdstring

The ID of the request.

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

Examples

Sample success responses

JSONformat

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

Error codes

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