调用EnableVpcEndpointZoneConnection接口,允许终端节点可用区连接。
接口说明
-
当终端节点连接状态为已连接且终端节点可用区状态为已断开时,才能调用此接口。
-
EnableVpcEndpointZoneConnection 接口属于异步接口,即系统会返回一个请求 ID,但尚未接受终端节点在此可用区的连接请求,系统后台接受任务仍在进行中。您可以调用 ListVpcEndpointZones 查询终端节点可用区的连接请求状态:
- 当终端节点可用区处于 Connecting 状态时,表示连接请求正在接受中。
- 当终端节点可用区处于 Connected 状态时,表示连接请求已接受。
-
EnableVpcEndpointZoneConnection 接口不支持在同一个终端节点实例下并发接受可用区的连接请求。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
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 |
返回参数
示例
正常返回示例
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 | EndpointOperationDenied | The specified operation of endpoint is not allowed. | 当前终端节点正在处理中,不允许操作。 |
400 | IncorrectBusinessStatus.VpcEndpoint | The business status of %s [%s] is incorrect. | 资源%s [%s]的业务状态无效。 |
400 | IncorrectBusinessStatus.VpcEndpointService | The business status of %s [%s] is incorrect. | 资源%s [%s]的业务状态无效。 |
400 | IncorrectStatus.VpcEndpoint | The status of %s [%s] is incorrect. | 资源%s [%s]的状态无效。 |
400 | IncorrectStatus.VpcEndpointConnection | The status of %s [%s] is incorrect. | 资源%s [%s]的状态无效。 |
400 | IncorrectStatus.VpcEndpointService | The status of %s [%s] is incorrect. | 资源%s [%s]的状态无效。 |
400 | IncorrectStatus.VpcEndpointZone | The status of %s [%s] is incorrect. | 资源%s [%s]的状态无效。 |
404 | ResourceNotFound.VpcEndpoint | The specified resource %s is not found. | 资源%s不存在。 |
404 | ResourceNotFound.VpcEndpointConnection | The specified resource %s is not found. | 资源%s不存在。 |
404 | ResourceNotFound.VpcEndpointService | The specified resource %s is not found. | 资源%s不存在。 |
404 | ResourceNotFound.VpcEndpointZone | The specified resource %s is not found. | 资源%s不存在。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|
暂无变更历史