You need to enable JavaScript to run this app.
导航

EnableVpcEndpointConnection

最近更新时间2024.04.22 16:36:17

首次发布时间2023.03.17 21:09:38

调用EnableVpcEndpointConnection接口,接受指定的终端节点连接。

调试

请求参数

名称类型是否必选示例值描述
ActionStringEnableVpcEndpointConnection要执行的操作,取值为EnableVpcEndpointConnection。
VersionString2020-04-01API版本信息,当前版本为2020-04-01。
EndpointIdStringep-273yuq6q7bgn47fap8squ****终端节点的ID。您可以调用DescribeVpcEndpoints接口获取终端节点的ID。
ServiceIdStringepsvc-2fe630gurkl37k5gfuy33****终端节点服务的ID。您可以调用DescribeVpcEndpointServices接口获取终端节点服务的ID。
ResourcesAllocate.N.ZoneIdStringResourcesAllocate.1.ZoneId=cn-guangzhou-a&ResourcesAllocate.2.ZoneId=cn-guangzhou-b待指定服务资源所属的可用区ID。您可以调用DescribeLoadBalancers接口获取CLB实例所属的可用区ID。

ResourcesAllocate.N.ResourceId

String

Resources.1.ResourceId=clb-bp1o94dp5i6ea****&Resources.2.ResourceId=clb-bp1b6c719dfa08ex****

为终端节点连接指定服务资源。您可以调用DescribeLoadBalancers接口获取CLB实例的ID。

  • 参数 - N:表示服务资源的序号,取值范围为1~20。多个服务资源间使用“&”分隔。
  • 不传入该参数时,默认随机为该终端节点连接分配服务资源。

返回数据

名称类型示例值描述
RequestIdString0ED8D006-F706-4D23-88ED-E11ED28D****请求ID。

请求示例

GET /?Action=EnableVpcEndpointConnection&Version=2020-04-01&EndpointId=ep-273yuq6q7bgn47fap8squ****&ServiceId=epsvc-2fe630gurkl37k5gfuy33**** HTTP/1.1
Host: open.volcengineapi.com
Service: privatelink
Region: cn-guangzhou

返回示例

{
    "ResponseMetadata": {
        "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28D****",
        "Action": "EnableVpcEndpointConnection",
        "Version": "2020-04-01",
        "Service": "privatelink",
        "Region": "cn-guangzhou"
    },
    "Result": {
        "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28D****"
    }
}

错误码

此处仅展示当前API的错误码,更多错误码请参见公共错误码

HttpCode错误码错误信息描述

400

MissingParameter

The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, the 'XXX'.

该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如XXX。

说明

其中,XXX表示缺少的参数名称。

400InvalidServiceResource.InvalidLockThe operation is refused by the service resource of the endpoint service.终端节点服务内部服务资源无法支持该操作。
400UnsupportedOperation.ConnectionStatusThe connection status does not support operation.当前连接状态不支持该操作。
400InvalidEndpoint.ServiceMisMatchThe specified endpoint and service don't match.指定的终端节点和终端节点服务不匹配。
400InvalidEndpoint.InvalidStatusThe specified endpoint is not in the correct status for the request.指定的终端节点所处的状态无法响应该请求。
400ErrEndpointServiceNotSupportedZoneThe specified endpoint service does not support the zone.指定的终端节点服务不支持当前可用区。
400InvalidResource.DisorderThe specified resource index orders are malformed.指定的资源条目的序号不合法。
400InvalidResource.ZoneMisMatchThe specified resource and available zone don't match.指定的可用区和资源不匹配。
400InvalidZone.ConflictThe specified zone is duplicated.指定的可用区重复。
404InvalidResource.NotFoundThe specified resource does not exist.指定的资源不存在。
404InvalidEndpointService.NotFoundThe specified EndpointService does not exist.指定的终端节点服务不存在。
404InvalidEndpoint.NotFoundThe specified endpoint does not exist.指定的终端节点不存在。