All Products
Search
Document Center

:Migrate workloads from an ACK Basic cluster to an ACK Pro cluster

更新时间:Jan 08, 2024

You can call the MigrateCluster operation to migrate workloads from a Container Service for Kubernetes (ACK) Basic cluster to an ACK Pro 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 does not have operation-specific request headers and uses only common request headers. For more information, see Common request parameters.

Request syntax

POST /clusters/{cluster_id}/migrate HTTP/1.1

Request parameters

Parameter

Type

Position

Required

Example

Description

cluster_id String Path Yes c21e0591548ba4c10bdb535d6572b****

The cluster ID.

Object Body No

The request body parameters.

oss_bucket_name String Body No bucket-****

The name of the Object Storage Service (OSS) bucket.

oss_bucket_endpoint String Body No *******.oss-cn-hangzhou.aliyuncs.com

The endpoint of the OSS bucket.

Response parameters

Parameter

Type

Example

Description

cluster_id String c21e0591548ba4c10bdb535d6572b

The cluster ID.

request_id String 687C5BAA-D103-4993-884B-C35E4314A1E1

The request ID.

task_id String T-62ccd14aacb8db06ca00****

The task ID.

Examples

Sample requests

POST /clusters/c21e0591548ba4c10bdb535d6572b****/migrate HTTP/1.1
Host:cs.aliyuncs.com
Content-Type:application/json

{
  "oss_bucket_name" : "bucket-****",
  "oss_bucket_endpoint" : "xxxxxxx.oss-cn-hangzhou.aliyuncs.com"
}

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<MigrateClusterResponse>
    <cluster_id>c8155823d057948c69a****</cluster_id>
    <request_id>20758A-585D-4A41-A9B2-28DA8F4F534F</request_id>
    <task_id>T-62ccd14aacb8db06ca00****</task_id>
</MigrateClusterResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "cluster_id" : "c8155823d057948c69a****",
  "request_id" : "20758A-585D-4A41-A9B2-28DA8F4F534F",
  "task_id" : "T-62ccd14aacb8db06ca00****"
}

Error codes

For a list of error codes, see Service error codes.