Queries the service resources that are added to an endpoint service.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListVpcEndpointServiceResources

The operation that you want to perform. Set the value to ListVpcEndpointServiceResources.

RegionId String Yes eu-west-1

The ID of the region where the service resources that you want to query is deployed. You can call the DescribeRegions operation to query region IDs.

ServiceId String Yes epsrv-hp3vpx8yqxblby3i****

The ID of the endpoint service.

NextToken String No caeba0bbb2be03f84eb48b699f0a4883

The query token. Set this parameter to the NextToken parameter value that is returned in the last API call. If no subsequent queries are to be sent, you can leave the parameter empty.

MaxResults Integer No 50

The number of entries to return on each page. Valid values: 1 to 50. Default value: 50.

Response parameters

Parameter Type Example Description
MaxResults String 50

The number of entries to return on each page.

NextToken String caeba0bbb2be03f84eb48b699f0a4883

The token required by the next query. If the NextToken parameter is empty, it indicates that no subsequent query will be sent.

RequestId String 0ED8D006-F706-4D23-88ED-E11ED28DCAC0

The ID of the request.

Resources Array of Resource

The list of service resources.

Ip String 192.xx.xx.23

The IP address of the service resource.

RegionId String eu-west-1

The region where the service resource is created.

ResourceId String lb-hp32z1wp5peaoox2q****

The ID of the service resource.

ResourceType String slb

The type of the service resource.

VSwitchId String vsw-hp3uf6045ljdhd5zr****

The VSwitch to which the service resource belongs.

VpcId String vpc-hp356stwkxg3fn2xe****

The virtual private cloud (VPC) to which the service resource belongs.

ZoneId String eu-west-1a

The zone to which the service resource belongs.

Examples

Sample requests

https://[Endpoint]/?Action=ListVpcEndpointServiceResources
&RegionId=eu-west-1
&ServiceId=epsrv-hp3vpx8yqxblby3i****
&<Common request parameters>

Sample success responses

XML format

<ListVpcEndpointServiceResourcesResponse> 
      <RequestId>F5BCF65B-D6D3-4F3E-9D84-0A7091A30D37</RequestId>
      <MaxResults>50</MaxResults>
      <Resources>
            <ZoneId>cn-huhehaote-b</ZoneId>
            <VpcId>vpc-hp31eulap5s087jp1****</VpcId>
            <ResourceId>lb-hp32z1wp5peaoox2q****</ResourceId>
            <Ip>172.xx.xx.139</Ip>
            <VSwitchId>vsw-hp38b7gpglrs179w3****</VSwitchId>
            <ResourceType>slb</ResourceType>
            <RegionId>cn-huhehaote</RegionId>
      </Resources>
</ListVpcEndpointServiceResourcesResponse>

JSON format

{
  "RequestId": "F5BCF65B-D6D3-4F3E-9D84-0A7091A30D37",
  "MaxResults": 50,
  "Resources": [
    {
      "ZoneId": "cn-huhehaote-b",
      "VpcId": "vpc-hp31eulap5s087jp1****",
      "ResourceId": "lb-hp32z1wp5peaoox2q****",
      "Ip": "172.xx.xx.139",
      "VSwitchId": "vsw-hp38b7gpglrs179w3****",
      "ResourceType": "slb",
      "RegionId": "cn-huhehaote"
    }
  ]
}

Error codes

HttpCode Error code Error message Description
400 EndpointServiceNotFound The specified Service does not exist. The error message returned because the specified endpoint service does not exist.

For a list of error codes, visit the API Error Center.