Queries the service resources that are added to an endpoint service.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
privatelink:ListVpcEndpointServiceResources |
get |
*VpcEndpointService
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the service resource. You can call the DescribeRegions operation to query the most recent region list. |
cn-huhehaote |
| NextToken |
string |
No |
The pagination token that is used in the next request to retrieve a new page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
No |
The number of entries to return on each page. Valid values: 1 to 50. Default value: 50. |
50 |
| ServiceId |
string |
Yes |
The endpoint service ID. |
epsrv-hp3vpx8yqxblby3i**** |
| RegionId |
string |
Yes |
The region ID of the service resource. You can call the DescribeRegions operation to query the most recent region list. |
cn-huhehaote |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| RequestId |
string |
The request ID. |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
| MaxResults |
integer |
The number of entries returned on each page. |
50 |
| Resources |
array<object> |
The service resources. |
|
|
object |
The information about the array object. |
||
| VpcId |
string |
The ID of the virtual private cloud (VPC) to which the service resource belongs. |
vpc-hp356stwkxg3fn2xe**** |
| VSwitchId |
string |
The ID of the vSwitch to which the service resource belongs. |
vsw-hp3uf6045ljdhd5zr**** |
| ResourceType |
string |
The type of the service resource. Only slb is returned. This value indicates a Classic Load Balancer (CLB) instance. |
slb |
| ZoneId |
string |
The ID of the zone to which the service resource belongs. |
cn-huhehaote-b |
| Ip |
string |
The IP address of the service resource. |
192.168.10.23 |
| ResourceId |
string |
The service resource ID. |
lb-hp32z1wp5peaoox2q**** |
| RegionId |
string |
The ID of the region where the service resource is deployed. |
cn-huhehaote |
| RelatedEndpointCount |
integer |
The number of endpoints that are associated with the service resource. |
10 |
| RelatedDeprecatedEndpointCount |
integer |
The number of endpoints that are associated with the service resource that is smoothly migrated. |
10 |
| AutoAllocatedEnabled |
boolean |
Indicates whether automatic resource allocation is enabled. Valid values:
|
false |
| ResourceSupportIPv6 |
boolean |
Indicates whether IPv6 is enabled for the endpoint service. Valid values:
|
false |
Examples
Success response
JSON format
{
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0",
"MaxResults": 50,
"Resources": [
{
"VpcId": "vpc-hp356stwkxg3fn2xe****",
"VSwitchId": "vsw-hp3uf6045ljdhd5zr****",
"ResourceType": "slb",
"ZoneId": "cn-huhehaote-b",
"Ip": "192.168.10.23",
"ResourceId": "lb-hp32z1wp5peaoox2q****",
"RegionId": "cn-huhehaote",
"RelatedEndpointCount": 10,
"RelatedDeprecatedEndpointCount": 10,
"AutoAllocatedEnabled": false,
"ResourceSupportIPv6": false
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EndpointServiceNotFound | The specified Service does not exist. | The specified Service does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.