Queries endpoint connections by calling the ListVpcEndpointConnections operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
privatelink:ListVpcEndpointConnections |
list |
*VpcEndpointService
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the endpoint connections that you want to query. You can call the DescribeRegions operation to query the region ID. |
cn-huhehaote |
| NextToken |
string |
No |
The token that is used for the next query. Valid values:
|
caeba0bbb2be03f84eb48b699f0a4883 |
| MaxResults |
integer |
No |
The number of entries per page. Valid values: 1 to 1000. Default value: 50. |
50 |
| ServiceId |
string |
No |
The endpoint service ID. |
epsrv-hp3vpx8yqxblby3i**** |
| EniId |
string |
No |
The endpoint elastic network interface (ENI) ID. |
eni-hp32lk0pyv6o94hs**** |
| EndpointId |
string |
No |
The endpoint ID. |
ep-hp33b2e43fays7s8**** |
| ConnectionStatus |
string |
No |
The state of the endpoint connection. Valid values:
|
Disconnected |
| EndpointOwnerId |
integer |
No |
The ID of the Alibaba Cloud account to which the endpoint belongs. |
25346073170691**** |
| ResourceId |
string |
No |
The service resource ID. |
lb-hp32z1wp5peaoox2q**** |
| ReplacedResourceId |
string |
No |
The ID of the service resource that is replaced in the smooth migration scenario. |
lb-hp32z1wp5peaoox2q**** |
| RegionId |
string |
Yes |
The region ID of the endpoint connections that you want to query. You can call the DescribeRegions operation to query the region ID. |
cn-huhehaote |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the endpoint belongs. |
rg-acfmy***** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Connections |
array<object> |
The information about the endpoint connections. |
|
|
array<object> |
The information about the endpoint connections. |
||
| Zones |
array<object> |
The zone information. |
|
|
object |
The zone information. |
||
| VSwitchId |
string |
The ID of the vSwitch to which the endpoint belongs. |
vsw-hp3uf6045ljdhd5zr**** |
| ZoneId |
string |
The ID of the zone. |
cn-huhehaote-b |
| ResourceId |
string |
The ID of the service resource. |
lb-hp32z1wp5peaoox2q**** |
| EniId |
string |
The ID of the endpoint ENI. |
eni-hp32lk0pyv6o94hs**** |
| ZoneDomain |
string |
The domain name of the zone. |
ep-hp34jaz8ykl0exwt****-cn-huhehaote.epsrv-hp3vpx8yqxblby3i****.cn-huhehaote-b.privatelink.aliyuncs.com |
| ZoneStatus |
string |
The status of the zone. Valid values:
|
Connected |
| ReplacedResourceId |
string |
The ID of the service resource that is replaced during a smooth migration. |
lb-hp32z1wp5peaoox2q**** |
| ReplacedEniId |
string |
The ID of the endpoint ENI that is replaced during a smooth migration. |
eni-hp32lk0pyv6o94hs**** |
| ModifiedTime |
string |
The time when the connection was modified. |
2021-09-28T10:34:46Z |
| Bandwidth |
integer |
The bandwidth of the endpoint connection. Unit: Mbit/s. |
3072 |
| EndpointOwnerId |
integer |
The ID of the Alibaba Cloud account to which the endpoint belongs. |
25346073170691**** |
| ResourceOwner |
boolean |
Indicates whether the endpoint and the endpoint service belong to the same Alibaba Cloud account. Valid values:
|
true |
| ServiceId |
string |
The endpoint service ID. |
epsrv-hp3vpx8yqxblby3i**** |
| ConnectionStatus |
string |
The state of the endpoint connection. Valid values:
|
Disconnected |
| EndpointId |
string |
The endpoint ID. |
ep-hp33b2e43fays7s8**** |
| EndpointVpcId |
string |
The ID of the virtual private cloud (VPC) to which the endpoint belongs. |
vpc-hp356stwkxg3fn2xe**** |
| ResourceGroupId |
string |
The ID of the resource group to which the endpoint belongs. |
rg-acfmw353z35v*** |
| TrafficControlMode |
string |
|
BandwidthLimit |
| EndpointRegionId |
string |
The region ID of the endpoint. |
cn-hangzhou |
| ServiceRegionId |
string |
The region ID of the endpoint service. |
cn-huhehaote |
| NextToken |
string |
The token that is used for the next query. Valid values:
|
caeba0bbb2be03f84eb48b699f0a4883 |
| RequestId |
string |
The request ID. |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
| MaxResults |
integer |
The number of entries per page. |
50 |
| TotalCount |
string |
The number of entries returned in the endpoint connection list. |
1 |
Examples
Success response
JSON format
{
"Connections": [
{
"Zones": [
{
"VSwitchId": "vsw-hp3uf6045ljdhd5zr****",
"ZoneId": "cn-huhehaote-b",
"ResourceId": "lb-hp32z1wp5peaoox2q****",
"EniId": "eni-hp32lk0pyv6o94hs****",
"ZoneDomain": "ep-hp34jaz8ykl0exwt****-cn-huhehaote.epsrv-hp3vpx8yqxblby3i****.cn-huhehaote-b.privatelink.aliyuncs.com",
"ZoneStatus": "Connected",
"ReplacedResourceId": "lb-hp32z1wp5peaoox2q****",
"ReplacedEniId": "eni-hp32lk0pyv6o94hs****"
}
],
"ModifiedTime": "2021-09-28T10:34:46Z",
"Bandwidth": 3072,
"EndpointOwnerId": 0,
"ResourceOwner": true,
"ServiceId": "epsrv-hp3vpx8yqxblby3i****",
"ConnectionStatus": "Disconnected",
"EndpointId": "ep-hp33b2e43fays7s8****",
"EndpointVpcId": "vpc-hp356stwkxg3fn2xe****",
"ResourceGroupId": "rg-acfmw353z35v***",
"TrafficControlMode": "BandwidthLimit",
"EndpointRegionId": "cn-hangzhou",
"ServiceRegionId": "cn-huhehaote"
}
],
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0",
"MaxResults": 50,
"TotalCount": "1"
}
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.