All Products
Search
Document Center

PrivateLink:ListVpcEndpointZones

Last Updated:Sep 26, 2024

Queries the zones of an endpoint.

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:ListVpcEndpointZonesget
  • 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 to return on each page. Valid values: 1 to 50. Default value: 50.

50
EndpointIdstringYes

The ID of the endpoint for which you want to query zones.

After you specify an endpoint ID, the system queries the zones of the specified endpoint.

ep-hp33b2e43fays7s8****

Response parameters

ParameterTypeDescriptionExample
object
NextTokenstring

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:

  • If no value is returned for NextToken, no next requests are performed.
  • If a value is returned for NextToken, the value can be used in the next request to retrieve a new page of results.
caeba0bbb2be03f84eb48b699f0a4883
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.

3
Zonesarray<object>

The information about the zones.

Zoneobject

The information about the array object.

VSwitchIdstring

The ID of the vSwitch in the zone. The system automatically creates an endpoint elastic network interface (ENI) in the vSwitch.

vsw-hjkshjvdkdvd****
EniIpstring

The IP address of the endpoint ENI.

192.168.2.23
ZoneStatusstring

The state of the zone. Valid values:

  • Creating: The zone is being created.
  • Wait: The zone is to be connected.
  • Connected: The zone is connected.
  • Deleting: The zone is being deleted.
  • Disconnecting: The zone is being disconnected.
  • Disconnected: The zone is disconnected.
  • Connecting: The zone is being connected.
Wait
ZoneIdstring

The zone ID.

cn-huhehaote-a
EniIdstring

The ID of the endpoint ENI.

eni-hp3c8qj1tyct8aqy****
ZoneDomainstring

The domain name of the zone.

After the endpoint in the zone is connected to the endpoint service, you can access the service resources of the endpoint service by using the domain name of the zone.

ep-hp3f033dp24c5yc9****-cn-huhehaote.epsrv-hp3itcpowf37m3d5****.cn-huhehaote-a.privatelink.aliyuncs.com
RegionIdstring

The region ID of the endpoint.

cn-huhehaote
ZoneIpv6Addressstring

Indicates whether the endpoint service supports IPv6. Valid values:

  • true
  • false (default)
false

Examples

Sample success responses

JSONformat

{
  "NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
  "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0",
  "MaxResults": 50,
  "TotalCount": 3,
  "Zones": [
    {
      "VSwitchId": "vsw-hjkshjvdkdvd****",
      "EniIp": "192.168.2.23",
      "ZoneStatus": "Wait",
      "ZoneId": "cn-huhehaote-a",
      "EniId": "eni-hp3c8qj1tyct8aqy****",
      "ZoneDomain": "ep-hp3f033dp24c5yc9****-cn-huhehaote.epsrv-hp3itcpowf37m3d5****.cn-huhehaote-a.privatelink.aliyuncs.com",
      "RegionId": "cn-huhehaote",
      "ZoneIpv6Address": "false"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400EndpointNotFoundThe specified Endpoint does not exist.The specified Endpoint does not exist.

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

Change history

Change timeSummary of changesOperation
2024-03-20The Error code has changed. The response structure of the API has changedView Change Details
2023-08-25The Error code has changed. The response structure of the API has changedView Change Details
2022-07-18The Error code has changed. The response structure of the API has changedView Change Details
2022-06-28The Error code has changed. The response structure of the API has changedView Change Details
2021-03-17The Error code has changed. The response structure of the API has changedView Change Details