Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pts:GetUserVpcs |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
Yes |
The page number for a paged query. |
1 |
| PageSize |
integer |
Yes |
The number of entries to display on each page. |
1 |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| VpcId |
string |
No |
The virtual private cloud (VPC) ID. |
vpc-2ze22asdfuwiea2ebjkqhf4pyj |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The system status code. |
200 |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The error message. This is empty if the request is successful. |
空 |
| PageNumber |
integer |
The page number for a paged query. |
1 |
| PageSize |
integer |
The number of entries displayed on each page. |
10 |
| RequestId |
string |
The request ID. |
CEE46204-E1CF-5F48-B094-67362DD4B73F |
| Success |
boolean |
Indicates whether the request was successful.
|
true |
| TotalCount |
integer |
The total number of entries. |
100 |
| Vpcs |
array<object> |
The list of VPCs. |
|
|
object |
The details of the VPC. |
||
| CidrBlock |
string |
The IPv4 CIDR block of the VPC. |
172.16.80.0/20 |
| Description |
string |
The description of the VPC. |
空 |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| ResourceGroupId |
string |
The ID of the resource group to which the VPC belongs. |
rg-acfm3fzmgkehpewjertna |
| RouterTableIds |
array |
The list of route table IDs. |
|
|
string |
The route table ID. |
vtb-bp11tkmteho3svealseipea6h |
|
| VSwitchIds |
array |
The list of vSwitches. |
|
|
string |
The vSwitch ID. |
vsw-bp1s21fe8r3esdslplvcv5240 |
|
| VpcId |
string |
The VPC ID. |
vpc-uf6gc56wdjpafoiwej6adqb4qn72xtw |
| VpcName |
string |
The name of the VPC. |
shanghai-vpc |
Examples
Success response
JSON format
{
"Code": "200",
"HttpStatusCode": 200,
"Message": "空",
"PageNumber": 1,
"PageSize": 10,
"RequestId": "CEE46204-E1CF-5F48-B094-67362DD4B73F",
"Success": true,
"TotalCount": 100,
"Vpcs": [
{
"CidrBlock": "172.16.80.0/20",
"Description": "空",
"RegionId": "cn-hangzhou",
"ResourceGroupId": "rg-acfm3fzmgkehpewjertna",
"RouterTableIds": [
"vtb-bp11tkmteho3svealseipea6h"
],
"VSwitchIds": [
"vsw-bp1s21fe8r3esdslplvcv5240"
],
"VpcId": "vpc-uf6gc56wdjpafoiwej6adqb4qn72xtw",
"VpcName": "shanghai-vpc"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Code | The specified parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.