Queries the service whitelist of an endpoint service.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
privatelink:ListVpcEndpointServiceUsers |
get |
*VpcEndpointService
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the endpoint service to query. You can call the DescribeRegions operation to query the region ID. |
cn-huhehaote |
| NextToken |
string |
No |
The token 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 |
Yes |
The ID of the endpoint service. |
epsrv-hp3vpx8yqxblby3i**** |
| UserId |
integer |
No |
The Alibaba Cloud account ID used to retrieve the service whitelist. This parameter takes effect only when UserListType is set to Users. If you do not specify this parameter, all service whitelists in the account ID format are returned. |
1234567890 |
| UserListType |
string |
No |
The type of the service whitelist. UserARNs is recommended. Valid values:
|
UserARNs |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The token 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 |
| Users |
array<object> |
The list of service whitelists in the Alibaba Cloud account ID format. This parameter is returned only when UserListType is set to Users or left empty. |
|
|
object |
|||
| UserId |
integer |
The Alibaba Cloud account ID in the service whitelist. |
12345678 |
| UserARNs |
array<object> |
The list of service whitelists in the Alibaba Cloud account ARN format. This parameter is returned only when UserListType is set to UserARNs. |
|
|
object |
|||
| UserARN |
string |
The ARN of the user in the whitelist. |
acs:ram:*::* |
| TotalCount |
string |
The total number of entries. |
3 |
Examples
Success response
JSON format
{
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0",
"MaxResults": 50,
"Users": [
{
"UserId": 12345678
}
],
"UserARNs": [
{
"UserARN": "acs:ram:*::*"
}
],
"TotalCount": "3"
}
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.