調用AddZoneToVpcEndpoint介面,為終端節點添加可用性區域。
介面說明
-
AddZoneToVpcEndpoint 介面屬於非同步介面,即系統會返回一個請求 ID,但終端節點可用性區域尚未添加完成,系統後台新增工作仍在進行中。您可以調用 ListVpcEndpointZones 查詢終端節點可用性區域的狀態:
當終端節點可用性區域處於 Creating 狀態時,表示終端節點可用性區域正在添加中。
當在終端節點中可以查詢到該可用性區域時,表示終端節點可用性區域添加完成。
-
AddZoneToVpcEndpoint 介面不支援給同一個終端節點執行個體並發添加可用性區域。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
要添加可用性區域的終端節點所屬的地區 ID。 您可以通過調用 DescribeRegions 介面擷取地區 ID。 |
cn-hangzhou |
| ZoneId |
string |
是 |
要添加的可用性區域 ID。 |
cn-hangzhou-b |
| VSwitchId |
string |
是 |
要添加的可用性區域中的交換器,系統會自動在該交換器下建立一個終端節點網卡。 |
vsw-hjkshjvdkdvd**** |
| ip |
string |
否 |
要添加的可用性區域中的終端節點網卡的 IP。 |
192.XX.XX.32 |
| EndpointId |
string |
是 |
要添加可用性區域的終端節點的 ID。 |
ep-hp33b2e43fays7s8**** |
| DryRun |
boolean |
否 |
是否只預檢此次請求。取值:
|
false |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的等冪性。 從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。 |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| RegionId |
string |
是 |
要添加可用性區域的終端節點所屬的地區 ID。 您可以通過調用 DescribeRegions 介面擷取地區 ID。 |
cn-hangzhou |
| Ipv6Address |
string |
否 |
要添加的可用性區域中的終端節點網卡的 IPv6 地址。 |
2408:4005:3b6:****:6955:c3cb:34c:**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "0c593ea1-3bea-11e9-b96b-88e9fe637760"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | OperationDenied.EndpointProtected | The operation is not allowed because of EndpointProtected. | |
| 400 | EndpointNotFound | The specified Endpoint does not exist. | |
| 400 | EndpointOperationDenied | The specified operation of endpoint is not allowed. | |
| 400 | EndpointLocked | The specified Endpoint is locked. | |
| 400 | EndpointConnectionOperationDenied | The endpoint is being connected. | |
| 400 | EndpointZoneDuplicated | The zone is duplicated for the Endpoint. | |
| 400 | EndpointServiceNotSupportedZone | The specified endpoint service does not support the zone. | |
| 400 | QuotaMisMatched | The resource you applied for has exceeded the quota. | |
| 400 | EndpointDuplicated | The endpoint of the service already exists and cannot be created again. | |
| 400 | EndpointServiceDeleted | The specified Service is already deleted. | |
| 400 | EndpointServiceResourceNotFound | The specified service resource is not found. | |
| 400 | VSwitchNotFound | The specified VSwitch does not exist. | |
| 400 | EniIpUnavailable | The specified IP address is unavailable. | |
| 400 | EndpointProtected | The specified Endpoint is protected. | |
| 400 | VSwitchStatusNotAllowed | The specified vswitch status is not Available. | |
| 400 | VpcNatServiceException | The vpcNat service is busy | |
| 400 | ResourceNotEnough.VSwitchIp | The specified resource of VSwitchIp is not enough. | |
| 400 | OperationDenied.VSwitchNotSupportDualstack | The specified VSwitch does not support dualstack. | |
| 400 | OperationDenied.AddressIpVersionNotSupportSpecifyIpv6 | The AddressIpVersion of the endpoint does not support specifying IPv6 address. | |
| 400 | IllegalParam.Ip | The specified parameter IP is invalid. | |
| 400 | IllegalParam.Ipv6Address | The specified parameter Ipv6Address is invalid. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。