Queries virtual private cloud (VPC) authorization records across accounts.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DescribeUserVpcAuthorizations |
The operation that you want to perform. Set the value to DescribeUserVpcAuthorizations. |
| PageNumber | Integer | No | 1 |
The number of the page to return. Default value: 1. |
| PageSize | Integer | No | 20 |
The number of entries to return on each page. Default value: 20. Maximum value: 100. |
| AuthorizedUserId | Long | No | 111222333 |
The ID of the Alibaba Cloud account to which the authorized resources belong. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| PageSize | Integer | 20 |
The number of entries returned per page. Default value: 20. Maximum value: 100. |
| RequestId | String | 46973D4C-E3E4-4ABA-9190-9A9DE406C7E |
The ID of the request. |
| PageNumber | Integer | 1 |
The page number of the returned page. Default value: 1. |
| TotalPages | Integer | 5 |
The total number of pages for authorization records. |
| Users | Array of User |
The information about the Alibaba Cloud account to which the authorized resources belong. |
|
| AuthType | String | NORMAL |
The authorization type. Valid value:
|
| AuthorizedUserId | Long | 111222333 |
The ID of the Alibaba Cloud account. |
| AuthorizedAliyunId | String | alidns***@test.com |
The name of the Alibaba Cloud account. |
| TotalItems | Integer | 100 |
The total number of authorization records. |
Examples
Sample request
http(s)://[Endpoint]/?Action=DescribeUserVpcAuthorizations
&PageNumber=1
&PageSize=20
&AuthorizedUserId=111222333
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeUserVpcAuthorizationsResponse>
<PageSize>20</PageSize>
<RequestId>46973D4C-E3E4-4ABA-9190-9A9DE406C7E</RequestId>
<PageNumber>1</PageNumber>
<TotalPages>5</TotalPages>
<Users>
<AuthType>NORMAL</AuthType>
<AuthorizedUserId>111222333</AuthorizedUserId>
<AuthorizedAliyunId>alidns***@test.com</AuthorizedAliyunId>
</Users>
<TotalItems>100</TotalItems>
</DescribeUserVpcAuthorizationsResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"PageSize" : 20,
"RequestId" : "46973D4C-E3E4-4ABA-9190-9A9DE406C7E",
"PageNumber" : 1,
"TotalPages" : 5,
"Users" : [ {
"AuthType" : "NORMAL",
"AuthorizedUserId" : 111222333,
"AuthorizedAliyunId" : "alidns***@test.com"
} ],
"TotalItems" : 100
}
Error codes
For a list of error codes, visit the API Error Center.