Imports a Container Service Kubernetes cluster.

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 headers

This operation only uses the common request header. For more information, see Common request parameters.

Request syntax

POST /pop/v5/import_k8s_cluster HTTPS|HTTP

Request parameters

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

The ID of the cluster.

NamespaceId String No cn-beijing:"ns1"

The ID of the namespace to which the cluster that you want to import belongs.

Response parameters

Parameter Type Example Description
Code Integer 200

The returned HTTP status code.

Data String ""

The returned data.

Message String success

The returned message.

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

The ID of the request.

Examples

Sample requests

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

Sample success responses

XML format

<Data/>
<Message>Success</Message>
<Code>200</Code>

JSON format

{
	"Data": {},
	"Message": "Success",
	"Code": 200
}

Error codes

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