调用AddZoneToVpcEndpoint接口,为终端节点添加可用区。
接口说明
-
AddZoneToVpcEndpoint 接口属于异步接口,即系统会返回一个请求 ID,但终端节点可用区尚未添加完成,系统后台添加任务仍在进行中。您可以调用 ListVpcEndpointZones 查询终端节点可用区的状态:
当终端节点可用区处于 Creating 状态时,表示终端节点可用区正在添加中。
当在终端节点中可以查询到该可用区时,表示终端节点可用区添加完成。
-
AddZoneToVpcEndpoint 接口不支持给同一个终端节点实例并发添加可用区。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
privatelink:AddZoneToVpcEndpoint |
create |
*VpcEndpoint
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| 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. | 指定的IP不可用 |
| 400 | EndpointProtected | The specified Endpoint is protected. | 终端节点已经设置操作保护 |
| 400 | VSwitchStatusNotAllowed | The specified vswitch status is not Available. | 交换机状态还未可用 |
| 400 | VpcNatServiceException | The vpcNat service is busy | vpcNat服务繁忙,请稍后再试 |
| 400 | ResourceNotEnough.VSwitchIp | The specified resource of VSwitchIp is not enough. | vswitchip数量不够 |
| 400 | OperationDenied.VSwitchNotSupportDualstack | The specified VSwitch does not support dualstack. | VSwitch不支持双栈。 |
| 400 | OperationDenied.AddressIpVersionNotSupportSpecifyIpv6 | The AddressIpVersion of the endpoint does not support specifying IPv6 address. | 终端节点的AddressIpVersion不支持指定IPv6地址。 |
| 400 | IllegalParam.Ip | The specified parameter IP is invalid. | 指定的IP地址格式不符合要求。 |
| 400 | IllegalParam.Ipv6Address | The specified parameter Ipv6Address is invalid. | 指定的IPv6地址格式不符合要求。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。