All Products
Search
Document Center

PrivateLink:ListVpcEndpoints

Last Updated:Sep 26, 2024

Queries a list of endpoints.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
privatelink:ListVpcEndpointsget
  • VpcEndpoint
    acs:privatelink:{#regionId}:{#accountId}:vpcendpoint/{#EndpointId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the endpoint.

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

cn-huhehaote
NextTokenstringNo

The pagination token that is used in the next request to retrieve a new page of results. Valid values:

  • If this is your first request and no next requests are to be performed, you do not need to specify this parameter.
  • If a next request is to be performed, set the parameter to the value of NextToken that is returned from the last call.
caeba0bbb2be03f84eb48b699f0a4883
MaxResultsintegerNo

The number of entries returned on each page.

50
EndpointIdstringNo

The ID of the endpoint.

ep-hp33b2e43fays7s8****
ServiceNamestringNo

The name of the endpoint service with which the endpoint is associated.

com.aliyuncs.privatelink.cn-huhehaote.epsrv-hp3vpx8yqxblby3i****
VpcIdstringNo

The ID of the VPC to which the endpoint belongs.

vpc-fdjkf789dfdfdfde****
EndpointNamestringNo

The name of the endpoint.

test
EndpointTypestringNo

The type of the endpoint. Valid values:

  • Interface: interface endpoint
  • Reverse: reverse endpoint
Interface
EndpointStatusstringNo

The state of the endpoint. Valid values:

  • Creating: The endpoint is being created.
  • Active: The endpoint is available.
  • Pending: The endpoint is being modified.
  • Deleting: The endpoint is being deleted.
Active
ConnectionStatusstringNo

The state of the endpoint connection. Valid values:

  • Pending: The endpoint connection is being modified.
  • Connecting: The endpoint connection is being established.
  • Connected: The endpoint connection is established.
  • Disconnecting: The endpoint is being disconnected from the endpoint service.
  • Disconnected: The endpoint is disconnected from the endpoint service.
  • Deleting: The connection is being deleted.
  • ServiceDeleted: The corresponding endpoint service has been deleted.
Disconnected
Tagarray<object>No

The list of tags.

objectNo

The list of tags.

KeystringNo

The key of the tag. You can specify up to 20 tag keys. The tag key cannot be an empty string.

The tag key must be 1 to 64 characters in length and cannot start with aliyun or acs:. It cannot contain http:// or https://.

FinanceDept
ValuestringNo

The value of the tag. You can specify up to 20 tag values. The tag value can be an empty string.

The tag value can be up to 128 characters in length and cannot start with acs: or aliyun. It cannot contain http:// or https://.

FinanceJoshua
ResourceGroupIdstringNo

The ID of the resource group.

1

Response parameters

ParameterTypeDescriptionExample
object
Endpointsarray<object>

The information about the endpoints.

Endpointobject

The information about the endpoints.

VpcIdstring

The ID of the virtual private cloud (VPC) to which the endpoint belongs.

vpc-hp356stwkxg3fn2xe****
EndpointNamestring

The name of the endpoint.

test
EndpointTypestring

The type of the endpoint. Valid values:

  • Interface: interface endpoint
  • Reverse: reverse endpoint
Interface
CreateTimestring

The time when the endpoint was created.

2021-09-24T18:00:07Z
ServiceIdstring

The ID of the endpoint service that is associated with the endpoint.

epsrv-hp3vpx8yqxblby3i****
ZoneAffinityEnabledboolean

Indicates whether the domain name of the nearest endpoint that is associated with the endpoint service is resolved first. Valid values:

  • true
  • false
true
EndpointDomainstring

The domain name of the endpoint.

ep-hp33b2e43fays7s8****.epsrv-hp3xdsq46ael67lo****.cn-huhehaote.privatelink.aliyuncs.com
EndpointStatusstring

The state of the endpoint. Valid values:

  • Creating: The endpoint is being created.
  • Active: The endpoint is available.
  • Pending: The endpoint is being modified.
  • Deleting: The endpoint is being deleted.
Active
RegionIdstring

The region ID of the endpoint.

cn-huhehaote
ResourceOwnerboolean

Indicates whether the endpoint and the endpoint service belong to the same Alibaba Cloud account. Valid values:

  • true
  • false
true
Bandwidthlong

The bandwidth of the endpoint connection. Unit: Mbit/s.

1024
ConnectionStatusstring

The state of the endpoint connection. Valid values:

  • Pending: The endpoint connection is being modified.
  • Connecting: The endpoint connection is being established.
  • Connected: The endpoint connection is established.
  • Disconnecting: The endpoint is being disconnected from the endpoint service.
  • Disconnected: The endpoint is disconnected from the endpoint service.
  • Deleting: The endpoint connection is being deleted.
  • ServiceDeleted: The corresponding service is deleted.
Disconnected
EndpointDescriptionstring

The description of the endpoint.

This is my Endpoint.
EndpointIdstring

The ID of the endpoint.

ep-hp33b2e43fays7s8****
EndpointBusinessStatusstring

The service state of the endpoint. Valid values:

  • Normal: The endpoint runs as expected.
  • FinancialLocked: The endpoint is locked due to overdue payments.
Normal
ServiceNamestring

The name of the endpoint service that is associated with the endpoint.

com.aliyuncs.privatelink.cn-huhehaote.epsrv-hp3xdsq46ael67lo****
Tagsarray<object>

The tags added to the resource.

TagModelobject

The tag list.

Keystring

The key of the tag added to the resource.

FinanceDept
Valuestring

The value of the tag added to the resource.

FinanceJoshua
ResourceGroupIdstring

The ID of the resource group.

1
PolicyDocumentstring

The Resource Access Management (RAM) policy. For more information about policy definitions, see Policy elements.

{\n \"Version\": \"1\",\n \"Statement\": [\n {\n \"Effect\": \"Allow\",\n \"Action\": \"*\",\n \"Principal\": \"*\",\n \"Resource\": \"*\"\n }\n ]\n}
NextTokenstring

The pagination token that is used in the next request to retrieve a new page of results. Valid values:

  • If this is your first request and no next requests are to be performed, you do not need to specify this parameter.
  • If a next request is to be performed, set the parameter to the value of NextToken that is returned from the last call.
caeba0bbb2be03f84eb48b699f0a****
RequestIdstring

The request ID.

0ED8D006-F706-4D23-88ED-E11ED28DCAC0
MaxResultsinteger

The number of entries returned on each page.

50
TotalCountinteger

The total number of entries returned.

12

Examples

Sample success responses

JSONformat

{
  "Endpoints": [
    {
      "VpcId": "vpc-hp356stwkxg3fn2xe****",
      "EndpointName": "test",
      "EndpointType": "Interface",
      "CreateTime": "2021-09-24T18:00:07Z",
      "ServiceId": "epsrv-hp3vpx8yqxblby3i****",
      "ZoneAffinityEnabled": true,
      "EndpointDomain": "ep-hp33b2e43fays7s8****.epsrv-hp3xdsq46ael67lo****.cn-huhehaote.privatelink.aliyuncs.com",
      "EndpointStatus": "Active",
      "RegionId": "cn-huhehaote",
      "ResourceOwner": true,
      "Bandwidth": 1024,
      "ConnectionStatus": "Disconnected",
      "EndpointDescription": "This is my Endpoint.",
      "EndpointId": "ep-hp33b2e43fays7s8****",
      "EndpointBusinessStatus": "Normal",
      "ServiceName": "com.aliyuncs.privatelink.cn-huhehaote.epsrv-hp3xdsq46ael67lo****",
      "Tags": [
        {
          "Key": "FinanceDept",
          "Value": "FinanceJoshua"
        }
      ],
      "ResourceGroupId": "1",
      "PolicyDocument": "{\\n  \\\"Version\\\": \\\"1\\\",\\n  \\\"Statement\\\": [\\n    {\\n      \\\"Effect\\\": \\\"Allow\\\",\\n      \\\"Action\\\": \\\"*\\\",\\n      \\\"Principal\\\": \\\"*\\\",\\n      \\\"Resource\\\": \\\"*\\\"\\n    }\\n  ]\\n}",
      "AddressIpVersion": ""
    }
  ],
  "NextToken": "caeba0bbb2be03f84eb48b699f0a****",
  "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0",
  "MaxResults": 50,
  "TotalCount": 12
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-09-12The request parameters of the API has changed. The response structure of the API has changedView Change Details
2024-05-10The response structure of the API has changedView Change Details
2023-09-26The response structure of the API has changedView Change Details
2023-09-19The request parameters of the API has changedView Change Details
2023-09-05The request parameters of the API has changed. The response structure of the API has changedView Change Details
2023-03-02API Description Update. The response structure of the API has changedView Change Details
2022-07-26The request parameters of the API has changed. The response structure of the API has changedView Change Details
2021-03-17The response structure of the API has changedView Change Details