将指定的云应用服务实例移动到目标集群中。
接口说明
请求说明
HiveId:目标集群 ID,必填。
InstanceIds:需要移动的云应用服务实例 ID 列表,必填。
该操作会将指定的云应用服务实例从当前集群移动到目标集群。
确保目标集群存在且有足够资源接收新的云应用服务实例。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| HiveId |
string |
是 |
集群 ID |
hive-xxxx-xxx-xxx |
| InstanceIds |
array |
是 |
负载 ID 列表 |
["ew-xxxx"] |
|
string |
否 |
负载 ID |
ew-1226d588c69449209ee963161c067b04 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID |
xxxx-xxx-xxx |
| SuccessInstanceCount |
integer |
成功的数量 |
5 |
| FailedInstanceCount |
integer |
失败的数量 |
0 |
| SuccessInstances |
array<object> |
成功的负载列表 |
|
|
object |
负载信息 |
||
| InstanceId |
string |
负载 ID |
ew-1226d588c69449209ee963161c067b04 |
| Message |
string |
信息 |
SUCCESS |
| FailedInstances |
array<object> |
失败的负载列表 |
|
|
object |
负载信息 |
||
| InstanceId |
string |
负载 ID |
ew-1226d588c69449209ee963161c067b04 |
| Message |
string |
错误信息 |
Error 1062 (23000): Duplicate entry 'hive-4fbf3928d40e43948b98acdb4fb5aaed-ew-1226d588c69449209ee9631' for key 'PRIMARY' |
示例
正常返回示例
JSON格式
{
"RequestId": "xxxx-xxx-xxx",
"SuccessInstanceCount": 5,
"FailedInstanceCount": 0,
"SuccessInstances": [
{
"InstanceId": "ew-1226d588c69449209ee963161c067b04",
"Message": "SUCCESS"
}
],
"FailedInstances": [
{
"InstanceId": "ew-1226d588c69449209ee963161c067b04",
"Message": "Error 1062 (23000): Duplicate entry 'hive-4fbf3928d40e43948b98acdb4fb5aaed-ew-1226d588c69449209ee9631' for key 'PRIMARY'"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。