CloseDBClusterMigration
该接口用于取消或完成迁移。
该接口用于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将会重启您的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"
}
错误码
访问错误中心查看更多错误码。
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
评论