You need to enable JavaScript to run this app.
文档中心
私网连接

私网连接

复制全文
下载 pdf
终端节点连接
EnableVpcEndpointConnection - 接受终端节点连接
复制全文
下载 pdf
EnableVpcEndpointConnection - 接受终端节点连接
调用EnableVpcEndpointConnection接口,接受指定的终端节点连接。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
Action String 必选 示例值:EnableVpcEndpointConnection​
要执行的操作,取值:EnableVpcEndpointConnection。​
​
Version String 必选 示例值:2020-04-01​
API的版本信息,当前版本为 2020-04-01。​
​
EndpointId String 必选 示例值:ep-273yuq6q7bgn47fap8squ****​
终端节点的ID。​
您可以调用DescribeVpcEndpoints接口,获取终端节点的ID。​
​
ServiceId String 必选 示例值:epsvc-2fe630gurkl37k5gfuy33****​
终端节点服务的ID。​
您可以调用DescribeVpcEndpointServices接口,获取终端节点服务的ID。​
​
ResourcesAllocate.N.ZoneId String 可选 示例值:cn-guangzhou-a​
指定终端节点可用区。​
​
ResourcesAllocate.N.ResourceId String 可选 示例值:clb-bp1o94dp5i6ea***​
为终端节点连接指定服务资源。​
  • 参数-N:表示服务资源的序号,取值范围为1~20。多个服务资源间使用&分隔。​
  • 不传入该参数时,默认随机为该终端节点连接分配服务资源。​
​
ResourcesAllocate.N.CrossRegionResourceZoneIds.N String 可选 示例值:cn-guangzhou-b​
指定跨地域的服务资源可用区。​
  • 第一个N:终端节点可用区。​
  • 第二个N:跨地域服务资源的可用区序号。​
一个终端节点可用区可对应多个服务资源可用区,多个终端节点可用区也可使用一个服务资源可用区。​
​
​
​
返回参数​
RequestId String 示例值:0ED8D006-F706-4D23-88ED-E11ED28D****​
请求ID。​
​
​
​
请求示例​
​
GET /?Action=EnableVpcEndpointConnection&Version=2020-04-01&EndpointId=ep-273yuq6q7bgn47fap8squ****&ServiceId=epsvc-2fe630gurkl37k5gfuy33**** HTTP/1.1​
Host: privatelink.cn-guangzhou.volcengineapi.com​
X-Date: 20251121T094038Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251121/cn-guangzhou/privatelink/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"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的错误码,更多错误码请参见公共错误码。​
​
状态码​
错误码​
错误信息​
说明​
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表示缺少的参数名称。​
400​
UnsupportedOperation.ConnectionStatus​
The connection status does not support operation.​
当前连接状态不支持该操作。​
400​
InvalidEndpoint.ServiceMisMatch​
The specified endpoint and service don't match.​
指定的终端节点和终端节点服务不匹配。​
400​
InvalidEndpoint.InvalidStatus​
The specified endpoint is not in the correct status for the request.​
指定的终端节点所处的状态无法响应该请求。​
400​
ErrEndpointServiceNotSupportedZone​
The specified endpoint service does not support the zone.​
指定的终端节点服务不支持当前可用区。​
400​
InvalidResource.Disorder​
The specified resource index orders are malformed.​
指定的资源条目的序号不合法。​
400​
InvalidResource.ZoneMisMatch​
The specified resource and available zone don't match.​
指定的可用区和资源不匹配。​
400​
InvalidZone.Conflict​
The specified zone is duplicated.​
指定的可用区重复。​
400​
InvalidEndpointService.InvalidLock​
The operation is refused by the endpoint service.​
终端节点服务无法支持该操作。​
400​
InvalidEndpointIpAddressVersions.EndpointServiceMisMatch​
The IpAddressVersions of associated EndpointService and Endpoint mismatch.​
终端节点的IP地址类型与所关联的终端节点服务不匹配。​
400​
InvalidPrivateDNS.UnsupportedOperation​
The request on the specified PrivateDNS is denied due to the PrivateDNS is disabled.​
因为未开启私有 DNS 功能,该请求被拒绝。​
400​
InvalidPrivateDNSName.Conflict​
The PrivateDNSName of associated EndpointService and Endpoint mismatch.​
终端节点的DNS名称与所关联的终端节点服务不匹配。​
400​
UnsupportedOperation.ReplaceResourceConflict​
The specified endpoint connection has not completed the service resource replacement. Please disconnect the service resource first.​
指定的终端节点连接尚未完成服务资源更换,请先断开服务资源。​
400​
InvalidEndpointZone.InvalidStatus​
The specified EndpointZone is not in the correct status for the request.​
指定的终端节点可用区所处的状态无法响应该请求。​
404​
InvalidEndpointZone.NotFound​
The specified zone does not exist.​
指定的可用区不存在。​
404​
InvalidResource.NotFound​
The specified resource does not exist.​
指定的资源不存在。​
404​
InvalidEndpointService.NotFound​
The specified EndpointService does not exist.​
指定的终端节点服务不存在。​
404​
InvalidEndpoint.NotFound​
The specified endpoint does not exist.​
指定的终端节点不存在。​
​
​
最近更新时间:2026.10.26 15:10:41
这个页面对您有帮助吗?
有用
有用
无用
无用