Querying VPCs of an Endpoint
Function
This API is used to query VPCs of an endpoint.
URI
GET /v2.1/vpcs
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| limit | No | Integer | Number of resources on each page. The value ranges from 0 to 500. Commonly used values are 10, 20, and 50. The default value is 500. |
| offset | No | Integer | Start offset of the pagination query. The query will start from the next resource of the offset value. The value ranges from 0 to 2147483647. The default value is 0. If marker is not left blank, the query starts from the resource specified by marker. |
| vpc_id | No | String | ID of the VPC to be queried |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | User token. The token can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| vpcs | Array of VpcsData objects | VPCs of an endpoint |
| metadata | metadata object | Number of resources that meet the query condition |
Example Requests
None
Example Responses
Status code: 200
Successful request
{
"vpcs" : [ {
"id" : "02443811-acf1-4c22-8f44-e3adf19f6097",
"inbound_endpoint_count" : 32
} ],
"metadata" : {
"total_count" : 1
}
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Successful request |
Error Codes
For details, see Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot