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

私网连接

复制全文
下载 pdf
服务资源
AttachResourceToVpcEndpointService-终端节点服务绑定服务资源
复制全文
下载 pdf
AttachResourceToVpcEndpointService-终端节点服务绑定服务资源
调用AttachResourceToVpcEndpointService接口,为指定的终端节点服务绑定服务资源,操作说明和注意事项请参见管理服务资源。​
使用说明​
  • 单个终端节点服务在每个可用区默认最多可添加100个服务资源。​
  • 单个ALB实例被添加到终端节点服务的总次数为200次(该次数以可用区维度计算)。​
  • 例如,某个ALB实例所属可用区为可用区A、可用区B和可用区C,该ALB实例被添加到终端节点服务时同时选择可用区A和可用区B,那么该ALB实例剩余可以被添加到终端节点服务的总次数为:200-2=198次。​
说明​
私网连接支持ALB服务资源的功能正在邀测中,如需使用,请联系客户经理。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
Action String 必选 示例值:AttachResourceToVpcEndpointService​
要执行的操作,取值:AttachResourceToVpcEndpointService。​
​
Version String 必选 示例值:2020-04-01​
API的版本信息,当前版本为 2020-04-01。​
​
ServiceId String 必选 示例值:epsvc-2fe630gurkl37k5gfuy33****​
终端节点服务的ID。​
您可以调用DescribeVpcEndpointServices接口,获取终端节点服务的ID。​
​
ResourceId String 必选 示例值:clb-bp1o94dp5i6ea****​
服务资源的ID。​
您可以调用DescribeLoadBalancers接口,获取CLB实例的ID。​
​
ZoneIds.N String 可选 示例值:cn-guangzhou-a​
负载均衡ALB提供服务的可用区。​
  • 服务资源为ALB类型时,该参数为必填。​
  • 参数-N:表示资源提供服务的可用区序号,取值范围为1~服务支持的最大可用区数。​
  • 服务资源为CLB、RDSMySQL类型时,该参数不生效。​
​
​
返回参数​
RequestId String 可选 示例值:0ED8D006-F706-4D23-88ED-E11ED28D****​
请求ID。​
​
​
请求示例​
​
GET /?Action=AttachResourceToVpcEndpointService&Version=2020-04-01&ServiceId=epsvc-2fe630gurkl37k5gfuy33****&ResourceId=clb-bp1o94dp5i6ea**** 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": "20230604110420****100232280022D31",​
"Action": "AttachResourceToVpcEndpointService",​
"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​
InvalidEndpointService.InvalidStatus​
The specified EndpointService is not in the correct status for the request.​
指定的终端节点服务所处的状态无法响应该请求。​
400​
InvalidServiceResource.Malformed​
The specified ServiceResource is malformed.​
指定的 ServiceResource 参数格式不合法。​
400​
ErrPrivateLinkServiceNotSupportedZone​
The privatelink service does not support the zone.​
终端节点服务不支持添加该可用区的服务资源。​
400​
ErrInterfaceNotSupportedResourceType​
The Interface does not support the resource type.​
终端节点服务接口不支持操作该服务资源类型。​
400​
InvalidServiceResourceType.Malformed​
The specified ServiceResourceType is malformed.​
指定的 ServiceResourceType 参数格式不合法。​
400​
InvalidServiceResource.ServiceResourceConflict​
The specific resource already attached.​
指定的服务资源已挂载。​
400​
QuotaExceed.ServiceResourceEachZone​
You've reached the limit on the number of service resources in the zone that you can create.​
已达到单个可用区可创建服务资源的数量的配额上限。​
400​
InvalidServiceResourceStatus.IPVersionMismatch​
The specified service resource can not support the EndpointService ipAddressVersion that you want.​
当前服务资源不支持所指定的终端节点服务IP地址类型。​
400​
InvalidLocation.Intercepted​
The specified action has been intercepted by location.​
当前账号无指定地域的操作权限,请开通白名单。​
400​
InvalidApplicationLoadBalancer.InvalidZoneInfo​
The specified Application LoadBalancer zone attributes is invalid.​
指定的应用型负载均衡的可用区信息非法。​
400​
InvalidZoneforALB.conflict​
The application load balancer does not support the zone.​
指定的应用型负载均衡实例不支持该可用区。​
403​
Forbidden​
You are not authorized to perform operations on the specified service.​
无权限对指定服务进行操作。​
404​
InvalidEndpointService.NotFound​
The specified EndpointService does not exist.​
指定的终端节点服务不存在。​
404​
InvalidResource.NotFound​
The specified resource does not exist.​
指定的资源不存在。​
​
最近更新时间:2025.12.09 10:33:57
这个页面对您有帮助吗?
有用
有用
无用
无用