AssociateHaVip
說明
目前該API介面已標記為棄用,推薦使用替代API:Vpc(2016-04-28) - AssociateHaVip。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
vpc:AssociateHaVip |
update |
*Instance
*HaVip
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClientToken |
string |
否 |
||
| RegionId |
string |
是 |
||
| HaVipId |
string |
是 |
||
| InstanceId |
string |
是 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
樣本
正常返回樣本
JSON格式
{
"RequestId": ""
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidVip.Status | vip invalid status | |
| 400 | IncorrectHaVipStatus | HaVip can be operated by this action only when it's status is Available or InUse. | |
| 400 | IncorrectInstanceStatus | ECS instance can be operated by this action only when it??s status is Running or Stopped. | |
| 400 | CountLimitExceed.HaVipOnInstance | The amount of HaVip associated with the specified Instance reach its limits. | |
| 400 | CountLimitExceeded.HaVipOnECSInstance | The amount of Instance associated with the specified HaVip reach its limits. | |
| 400 | OperationFailed.DistibuteLock | Distibute lock fail. | |
| 400 | Forbidden.HaVip | No permissions to perform operations on HAVIPs. Please apply for privilege--vpc_privilege_allow_buy_havip_instance. | |
| 400 | OperationUnsupported.BindMultipleType | You cannot bind HaVip to multiple instance types. | |
| 404 | InvalidHaVip.Exist | haVip already bind exist. | |
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | |
| 404 | InvalidHaVipId.NotFound | The specified HaVip does not exist in the specified region. | |
| 404 | InvalidInstanceId.NotFound | The specified Instance does not exist in the specified region. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。