功能介绍:绑定浮动IP
POST https://[endpoint].ctapi.ctyun.cn/v1/eip/bindElasticIP
Content-Type:application/json
请求体参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
paasInstanceId | 712041127816987648 | String | 是 | 产品实例id |
type | INSTANCE | String | 是 | 绑定类型 |
vip | 11 | String | 是 | 需要绑定的vip或者虚机ip |
elasticIp | 10.50.24.27 | String | 是 | 浮动ip |
outerElasticIpId | 1632 | String | 是 | 浮动ip Id |
返回参数说明:
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
statusCode | 800 | Integer | 响应码描述 |
returnObj | Object | 数据实体 | |
message | success | String | 提示信息 |
success | true | String | true为绑定成功, false为失败 |
msg | ING | String | 成功时显示中间状态,失败时显示失败信息 |
jobId | os-73add9b3-cf96-4845-a5b4-5ed14cba05bb | String | 异步任务标识 |
请求示例:
POST https://dcs2-global.ctapi.ctyun.cn/v1/eip/bindElasticIP
{
"paasInstanceId": "712041127816987648",
"type": "INSTANCE",
"vip": "11",
"elasticIp": "111",
"outerElasticIpId": "111"
}
返回示例:
{
"statusCode": 800,
"returnObj": {"success":true,"msg":"ING","jobId":"os-73add9b3-cf96-4845-a5b4-5ed14cba05bb"},
"message": "success"
}