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

DescribeVpcEndpointServiceResources

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

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

调用DescribeVpcEndpointServiceResources接口,查询指定终端节点服务绑定的服务资源。

调试

请求参数

名称类型是否必选示例值描述
ActionStringDescribeVpcEndpointServiceResources要执行的操作,取值为DescribeVpcEndpointServiceResources。
VersionString2020-04-01API版本信息,当前版本为2020-04-01。
ServiceIdStringepsvc-2fe630gurkl37k5gfuy33****终端节点服务的ID。您可以调用DescribeVpcEndpointServices接口获取终端节点服务的ID。
PageNumberInteger1列表的页码。默认值为1。
PageSizeInteger10分页查询时每页的行数。最大值为100,默认值为10。

ZoneId

String

cn-guangzhou-a

服务资源提供服务的可用区ID。

说明

查询RDS类型的服务资源时,不支持传入该参数。

返回数据

名称类型示例值描述
RequestIdString0ED8D006-F706-4D23-88ED-E11ED28D****请求ID。
PageNumberInteger1当前页码。
PageSizeInteger10当前分页的行数。
TotalCountInteger2符合条件的服务资源总数。
ResourcesArray of Struct-服务资源的详细信息。具体请参见下表“Resources”。

Resourcess

名称类型示例值说明
ResourceIdStringclb-bp1o94dp5i6ea****服务资源的ID。

ResourceType

String

CLB

服务资源的类型。

  • CLB:负载均衡CLB。
  • RDSMySQL:云数据库 MySQL版。

ZoneId

String

cn-guangzhou-a

服务资源所属可用区的ID。

说明

参数ResourceType返回值为“RDSMySQL”时,该参数返回空值。

请求示例

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

返回示例

{
    "ResponseMetadata": {
        "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28D****",
        "Action": "DescribeVpcEndpointServiceResources",
        "Version": "2020-04-01",
        "Service": "privatelink",
        "Region": "cn-guangzhou"
    },
    "Result": {
        "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28D****",
        "PageNumber": 1,
        "PageSize": 10,
        "TotalCount": 2,
        "Resources": [
            {
                "ResourceId": "clb-bp1o94dp5i6ea****",
                "ResourceType": "CLB",
                "ZoneId": "cn-guangzhou-a"
            },
            {
                "ResourceId": "clb-bp1b6c719dfa08ex****",
                "ResourceType": "CLB",
                "ZoneId": "cn-guangzhou-a"
            }
    }
}

错误码

此处仅展示当前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表示缺少的参数名称。

400InvalidPaging.MalformedThe specified PageNumber or PageSize is malformed.指定的分页参数格式不合法。
400ErrInterfaceNotSupportedResourceTypeThe Interface does not support the resource type.终端节点服务接口不支持操作该服务资源类型。
400ErrInterfaceNotSupportedResourceTypeThe Interface does not support the resource type.终端节点服务接口不支持操作该服务资源类型。
404InvalidEndpointService.NotFoundThe specified EndpointService does not exist.指定的终端节点服务不存在。