You can call DescribeResolverEndpoints to retrieve a list of endpoints.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pvtz:DescribeResolverEndpoints |
list |
*Endpoint
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Keyword |
string |
No |
The keyword for the endpoint name. A fuzzy search is performed. |
终端节点-test |
| Lang |
string |
No |
The language of the response. Valid values:
Default value: en |
en |
| PageNumber |
integer |
No |
The page number for a paged query. The value starts from 1. The default value is 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. The maximum value is 100. The default value is 20. |
20 |
| Status |
string |
No |
The status of the endpoint. Valid values:
Note
If you do not specify this parameter, endpoints in all states are returned. If you specify this parameter, only endpoints in the specified state are returned. |
SUCCESS |
| VpcRegionId |
string |
No |
The ID of the region where the outbound virtual private cloud (VPC) is located. |
cn-zhangjiakou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Endpoints |
array<object> |
The list of endpoints. |
|
|
object |
The endpoint information. |
||
| Status |
string |
The status of the endpoint. Description:
|
SUCCESS |
| VpcId |
string |
The ID of the outbound VPC. All outbound DNS query traffic from the Resolver is forwarded through this VPC. |
vpc-0jlxhpfnj5bfu0bsd**** |
| UpdateTime |
string |
The time when the endpoint was last updated. |
2020-07-13 10:38:24 |
| SecurityGroupId |
string |
The ID of the security group. |
sg-0jld3m9yq7l2cw12**** |
| CreateTime |
string |
The time when the endpoint was created. |
2020-07-13 10:36:26 |
| VpcRegionId |
string |
The ID of the region where the outbound VPC is located. |
cn-zhangjiakou |
| IpConfigs |
array<object> |
The list of source IP addresses for outbound traffic. |
|
|
object |
The information about a source IP address for outbound traffic. |
||
| VSwitchId |
string |
The ID of the vSwitch. |
vsw-0jlgeyq4oazkh5xue**** |
| CidrBlock |
string |
The subnet mask, which is the IPv4 CIDR block of the vSwitch. |
172.16.XX.XX/24 |
| Ip |
string |
The IP address within the CIDR block. |
172.16.XX.XX |
| AzId |
string |
The ID of the zone where the vSwitch is located. |
cn-zhangjiakou-a |
| VpcName |
string |
The name of the outbound VPC. |
vpc-test-name |
| UpdateTimestamp |
integer |
The time when the endpoint was last updated. This is a UNIX timestamp. |
1594607904000 |
| VpcRegionName |
string |
The name of the region where the outbound VPC is located. |
杭州VPC测试 |
| Name |
string |
The name of the endpoint. |
终端节点-test |
| Id |
string |
The ID of the endpoint. |
hr**** |
| CreateTimestamp |
integer |
The time when the endpoint was created. This is a UNIX timestamp. |
1594607786000 |
| PageSize |
integer |
The number of entries returned per page. |
2 |
| RequestId |
string |
The unique ID of the request. |
83D1682B-B69A-4060-9FA8-2907C2A35600 |
| PageNumber |
integer |
The page number of the returned data. |
1 |
| TotalPages |
integer |
The total number of pages returned. |
1 |
| TotalItems |
integer |
The total number of endpoints. |
1 |
Examples
Success response
JSON format
{
"Endpoints": [
{
"Status": "SUCCESS",
"VpcId": "vpc-0jlxhpfnj5bfu0bsd****",
"UpdateTime": "2020-07-13 10:38:24",
"SecurityGroupId": "sg-0jld3m9yq7l2cw12****",
"CreateTime": "2020-07-13 10:36:26",
"VpcRegionId": "cn-zhangjiakou",
"IpConfigs": [
{
"VSwitchId": "vsw-0jlgeyq4oazkh5xue****",
"CidrBlock": "172.16.XX.XX/24",
"Ip": "172.16.XX.XX",
"AzId": "cn-zhangjiakou-a"
}
],
"VpcName": "vpc-test-name",
"UpdateTimestamp": 1594607904000,
"VpcRegionName": "杭州VPC测试",
"Name": "终端节点-test",
"Id": "hr****",
"CreateTimestamp": 1594607786000
}
],
"PageSize": 2,
"RequestId": "83D1682B-B69A-4060-9FA8-2907C2A35600",
"PageNumber": 1,
"TotalPages": 1,
"TotalItems": 1
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.