调用UpdateVpcEndpointZoneConnectionResourceAttribute接口,替换终端节点可用区连接服务资源。
接口说明
-
替换终端节点可用区连接服务资源的功能默认不开放,请登录配额中心控制台,搜索 ID
privatelink_whitelist/svc_res_mgt_uat进行申请。 -
请确保旧的服务资源不允许自动分配,具体操作,请参见 UpdateVpcEndpointServiceResourceAttribute 。
-
终端节点连接处于未连接状态时,支持手动分配可用区的服务资源。
-
终端节点连接处于已连接状态后,支持手动迁移可用区的服务资源(此时有断连风险)。
-
UpdateVpcEndpointZoneConnectionResourceAttribute 接口属于异步接口,即系统会返回一个请求 ID,但终端节点连接可用区的服务资源尚未修改完成,系统后台修改任务仍在进行中。您可以调用 GetVpcEndpointServiceAttribute 查询服务资源的修改状态:
当终端节点服务处于 Pending 状态时,表示服务资源正在修改中。
当终端节点服务处于 Active 状态时,表示服务资源修改完成。
-
UpdateVpcEndpointZoneConnectionResourceAttribute 接口不支持在同一个终端节点实例下并发修改终端节点连接可用区的服务资源。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
privatelink:UpdateVpcEndpointZoneConnectionResourceAttribute |
update |
*VpcEndpointService
*LoadBalancer
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
要修改的终端节点连接带宽的地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-hangzhou |
| ClientToken |
string |
否 |
客户端 Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。 |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| DryRun |
boolean |
否 |
是否只预检此次请求。取值:
|
false |
| ServiceId |
string |
是 |
终端节点服务 ID。 |
epsrv-hp3vpx8yqxblby3i**** |
| EndpointId |
string |
是 |
终端节点 ID。 |
ep-hp33b2e43fays7s8**** |
| ZoneId |
string |
是 |
可用区 ID。 |
cn-hangzhou-b |
| ResourceAllocateMode |
string |
否 |
资源分配模式,只能在终端节点连接处于已断开时调整资源分配模式。取值:
|
Auto |
| ResourceReplaceMode |
string |
否 |
服务资源迁移方式。取值:
说明
只能在终端节点连接处于已连接且需要迁移服务资源时输入此参数,此时必须输入 ResourceId 和 ResourceType 参数。 |
Graceful |
| ResourceType |
string |
否 |
服务资源类型。取值:
说明
当 ResourceAllocateMode 为 Manual 或指定 ResourceReplaceMode 参数时,此参数必选。 |
slb |
| ResourceId |
string |
否 |
终端节点连接所在可用区手动分配或迁移的服务资源 ID。 说明
当 ResourceAllocateMode 为 Manual 或指定 ResourceReplaceMode 参数时,此参数必选。 |
lb-hp32z1wp5peaoox2q**** |
| RegionId |
string |
是 |
要修改的终端节点连接带宽的地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-hangzhou |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
示例
正常返回示例
JSON格式
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | EndpointServiceNotFound | The specified Service does not exist. | 当前终端节点服务不存在 |
| 400 | EndpointConnectionNotFound | The specified endpoint connection does not exist. | 当前终端节点连接未找到。 |
| 400 | EndpointConnectionOperationDenied | The endpoint is being connected. | 终端节点连接正在处理中,不允许操作。 |
| 400 | EndpointNotFound | The specified Endpoint does not exist. | 当前终端节点未找到。 |
| 400 | EndpointServiceLocked | The specified Service is locked. | 当前终端节点服务已经被锁定。 |
| 400 | EndpointLocked | The specified Endpoint is locked. | 当前终端节点已经被锁定。 |
| 400 | EndpointZoneNotFound | The specified zone of Endpoint does not exist. | 终端节点下面的可用区未找到。 |
| 400 | EndpointServiceResourceTypeNotSupport | The specified resource type is not supported. | 终端节点服务资源类型不支持。 |
| 400 | EndpointServiceResourceNotFound | The specified service resource is not found. | 终端节点服务资源未找到 |
| 400 | ZoneOperationDenied | You cannot operate the specified zone. | 可用区不允许操作 |
| 400 | IllegalParam.ResourceAllocateMode | The param of %s is illegal. | |
| 400 | IllegalParam.ResourceReplaceMode | The param of %s is illegal. | |
| 400 | MissingParam.ResourceId | The param of %s is missing. | 缺少参数ResourceId。 |
| 400 | MissingParam.ResourceAllocateMode | The param of %s is missing. | ResourceAllocateMode参数缺失。 |
| 400 | OperationDenied.CurrentResourceAutoAllocated | The operation is not allowed because of CurrentResourceAutoAllocated. | 操作被拒绝,原因是可用区当前资源未关闭自动分配。 |
| 400 | Mismatch.ZoneId | The %s is mismatched for %s and %s. | |
| 400 | GatewayLoadBalancerNotSupportZoneConnection | The gateway load balancer not support zone connection. | 网关型负载均衡类型不支持操作可用区连接 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。