该接口用于取消或完成迁移。

该接口用于RDS一键迁移到POLARDB时取消或完成迁移:

调用该接口时,集群必须已经创建了一键升级任务。创建一键升级任务的接口为CreateDBCluster,参数CreationOption取值需要为MigrationFromRDS

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
DBClusterId String pc-bpxxxxxxx

POLARDB集群ID。

AccessKeyId String key-test

阿里云颁发给用户的访问服务所用的密钥ID。

Action String CloseDBClusterMigration

系统规定参数,取值:CloseDBClusterMigration。

ContinueEnableBinlog Boolean true

是否继续打开Binlog,取值:

  • true:继续打开Binlog。
  • false:关闭Binlog。

默认为true。

说明 关闭Binlog将会重启您的POLARDB集群。
RegionId String cn-hangzhou

地域ID,如cn-hangzhou。

返回数据

名称 类型 示例值 描述
RequestId String 3AA69096-757C-4647-B36C-29EBC27A8763

请求ID。

示例

请求示例


http(s)://[Endpoint]/?Action=CloseDBClusterMigration
&DBClusterId=pc-bpxxxxxxx
&<公共请求参数>

正常返回示例

XML 格式

<CloseDBClusterMigrationResponse>  
  <RequestId>3AA69096-757C-4647-B36C-29EBC27A8763</RequestId>
</CloseDBClusterMigrationResponse>

JSON 格式

{
	"RequestId":"3AA69096-757C-4647-B36C-29EBC27A8763"
}

错误码

访问错误中心查看更多错误码。