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 cn-huhehaote

The ID of the region where the service resources that you want to query are deployed.

You can call the DescribeRegions operation to query the most recent region list.

NextToken String No caeba0bbb2be03f84eb48b699f0a4883

The token that is used for the next query. Valid values:

  • If this is your first query or no next query is to be sent, ignore this parameter.
  • If a next query is to be sent, set the value to the value of NextToken that is returned from the last call.
MaxResults Integer No 50

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

ServiceId String Yes epsrv-hp3vpx8yqxblby3i****

The ID of the endpoint service.

Response parameters

Parameter Type Example Description
NextToken String caeba0bbb2be03f84eb48b699f0a4883

The token that is used for the next query. Valid values:

  • If the value returned of NextToken is empty, it indicates that no next query is to be sent.
  • If the value returned of NextToken is not empty, the value indicates the token that is used for the next query.
RequestId String 0ED8D006-F706-4D23-88ED-E11ED28DCAC0

The ID of the request.

MaxResults String 50

The number of entries returned per page.

Resources Array of Resource

The list of service resources.

VpcId String vpc-hp356stwkxg3fn2xe****

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

VSwitchId String vsw-hp3uf6045ljdhd5zr****

The vSwitch to which the service resource belongs.

ResourceType String slb

The type of the service resource.

The value is set to slb, which indicates Classic Load Balancer (CLB).

ZoneId String cn-huhehaote-b

The zone to which the service resource belongs.

Ip String 192.XX.XX.23

The IP address of the service resource.

ResourceId String lb-hp32z1wp5peaoox2q****

The ID of the service resource.

RegionId String cn-huhehaote

The region to which the service resource belongs.

RelatedEndpointCount Long 10

The number of connections to the endpoint associated with the service resource.

RelatedDeprecatedEndpointCount Long 10

The number of replaced connections to the endpoint associated with the endpoint service in smooth migration scenarios.

AutoAllocatedEnabled Boolean false

Indicates whether automatic resource allocation is allowed. Valid values:

  • true: yes
  • false: no

Examples

Sample requests

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

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ListVpcEndpointServiceResourcesResponse>
    <NextToken>caeba0bbb2be03f84eb48b699f0a4883</NextToken>
    <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
    <MaxResults>50</MaxResults>
    <Resources>
        <VpcId>vpc-hp356stwkxg3fn2xe****</VpcId>
        <VSwitchId>vsw-hp3uf6045ljdhd5zr****</VSwitchId>
        <ResourceType>slb</ResourceType>
        <ZoneId>cn-huhehaote-b</ZoneId>
        <Ip>192.XX.XX.23</Ip>
        <ResourceId>lb-hp32z1wp5peaoox2q****</ResourceId>
        <RegionId>cn-huhehaote</RegionId>
        <RelatedEndpointCount>10</RelatedEndpointCount>
        <RelatedDeprecatedEndpointCount>10</RelatedDeprecatedEndpointCount>
        <AutoAllocatedEnabled>false</AutoAllocatedEnabled>
    </Resources>
</ListVpcEndpointServiceResourcesResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "NextToken" : "caeba0bbb2be03f84eb48b699f0a4883",
  "RequestId" : "0ED8D006-F706-4D23-88ED-E11ED28DCAC0",
  "MaxResults" : "50",
  "Resources" : [ {
    "VpcId" : "vpc-hp356stwkxg3fn2xe****",
    "VSwitchId" : "vsw-hp3uf6045ljdhd5zr****",
    "ResourceType" : "slb",
    "ZoneId" : "cn-huhehaote-b",
    "Ip" : "192.XX.XX.23",
    "ResourceId" : "lb-hp32z1wp5peaoox2q****",
    "RegionId" : "cn-huhehaote",
    "RelatedEndpointCount" : 10,
    "RelatedDeprecatedEndpointCount" : 10,
    "AutoAllocatedEnabled" : false
  } ]
}

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.