全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

存量虚机迁入容灾分组

请求参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数
参数名称
类型
必填
描述
Action String
公共参数,本接口取值:AddVmIntoDataGuard。
Version String
公共参数,本接口取值:2016-03-04。
DataGuardId String

容灾分组ID

示例值:1dd1832f-219d-4d40-9997-3033b9e2ce21
InstanceId.N String

实例ID

示例值:13536cc1-0dbd-4741-87d3-f7abbb0db328

返回参数

参数名称
类型
描述
DataGuardResult Object
Flag Boolean
示例值:true
InstanceId String
示例值:802b09f4-7c54-4bb1-b47e-796dfa2ebab7
Message String
RequestId String
示例值:8c7270da-daf1-41e6-93e6-ad44b1f8f7cf
Return Boolean
示例值:true

请求示例

curl -X GET|POST
'http://kec.api.ksyun.com/?Action=AddVmIntoDataGuard&Version=2016-03-04'
-H 'authorization: xxx, SignedHeaders=content-type;host;x-amz-date, Signature=xxx'
-H 'cache-control: no-cache'
-H 'content-type: application/x-www-form-urlencoded'
-H 'host: kec.api.ksyun.com'
-H 'x-amz-date: 20170720T022802Z'
-d 'DataGuardId=xxx&InstanceId.N=xxx'

返回示例

JSON格式

{
"DataGuardResult":{
"flag":"true",
"instanceId":"802b09f4-7c54-4bb1-b47e-796dfa2ebab7"
},
"RequestId":"8c7270da-daf1-41e6-93e6-ad44b1f8f7cf",
"Return":"true"
}

错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码

错误码
错误信息
Http状态码
描述
DataGuardIdInvalidDataGuardId is invalid400容灾分组ID无效
ChargeTypeInvalidParameterValueAn invalid or out-of-range value was supplied for the "ChargeType" parameter.400“计费类型”参数的取值无效或者超出有效范围
NotSupportAddToDataGuardThe vm that has joined the dataGuard does not support joining again.400已加入容灾分组的虚机不支持再次加入
VmStatusNotSupportAddToDataGuardThis VM status is not support add to dataGuard.400此状态的云服务器不支持加入容灾组功能
DataGuardNotSupportStopCharging暂无400暂无
VMCountGreaterThanDataGuardCountCreate instance fail, because Data Guard Groups ({0}) has insufficient room400创建失败,容灾组({0})的可用容量不足,请选择其他容灾组
VMNotSupportAddDamainDataGuard暂无400暂无
InstanceStateNotSupportedMigrateThe current status of the resource does not support this operation.400本操作执行时“实例状态”不支持
ProductTypeInvalidproductType is invalid .400产品类型无效
InstanceIdRequiredInstanceId is required400InstanceId必传
DataGuardIdRequiredDataGuardId is required400容灾 8082
InstanceOpLockNotObtainInstanceOpLockNotObtain400当前实例在操作处理中,请稍后重试
InstanceOrderMustInUseThe "InstanceOrder" parameter must be used when calling directly from console.400使用控制台调用必须传递“实例订单”参数
InstanceOrderNotInUseThe "InstanceOrder" parameter should not be used when calling directly from SDK or OpCenter.400使用SDK或者运营平台调用不应该传递“实例订单”参数
纯净模式常规模式

纯净模式

点击可全屏预览文档内容
文档反馈