调用UpdateVpcEndpointZoneConnectionResourceAttribute接口替换终端节点可用区连接服务资源。
接口说明
前提条件
替换终端节点可用区连接服务资源的功能默认不开放,请登录配额中心控制台,搜索IDprivatelink_whitelist/svc_res_mgt_uat
进行申请。
使用说明
终端节点连接处于未连接状态时,支持手动分配可用区的服务资源。
终端节点连接处于已连接状态后,支持手动迁移可用区的服务资源(此时有断连风险)。
UpdateVpcEndpointZoneConnectionResourceAttribute接口属于异步接口,即系统会返回一个请求ID,但终端节点连接可用区的服务资源尚未修改完成,系统后台修改任务仍在进行中。您可以调用GetVpcEndpointServiceAttribute查询服务资源的修改状态:
- 当终端节点服务处于Pending状态时,表示服务资源正在修改中。
- 当终端节点服务处于Active状态时,表示服务资源修改完成。
UpdateVpcEndpointZoneConnectionResourceAttribute接口不支持在同一个终端节点实例下并发修改终端节点连接可用区的服务资源。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action
元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用背景高亮的方式表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|
privatelink:UpdateVpcEndpointZoneConnectionResourceAttribute | Write |
|
| 无 |
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
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。 | epsrv-hp3vpx8yqxblby3i**** |
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**** |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
错误码
Http 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. | - |
400 | MissingParam.ResourceAllocateMode | The param of %s is missing. | - |
400 | OperationDenied.CurrentResourceAutoAllocated | The operation is not allowed because of CurrentResourceAutoAllocated. | 操作被拒绝,原因是可用区当前资源未关闭自动分配。 |
400 | Mismatch.ZoneId | The %s is mismatched for %s and %s. | %s在%s和%s中不匹配。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|