All Products
Search
Document Center

Enterprise Distributed Application Service:ListVpc

Last Updated:Mar 01, 2024

Queries virtual private clouds (VPCs). This operation is applicable to Elastic Compute Service (ECS) clusters and Kubernetes clusters.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /pop/v5/vpc_list

Request parameters

ParameterTypeRequiredDescriptionExample
The current API does not require request parameters

The message returned.

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The ID of the request.

200
Messagestring

The information about VPCs.

success
RequestIdstring

The name of the VPC.

b197-40ab-9155-7ca7
VpcListobject []

Indicates whether the VPC is available. Valid values:

  • true: The VPC is available.
  • false: The VPC is unavailable.
VpcIdstring

The ID of the Alibaba Cloud account to which the VPC belongs.

vpc-wz9pcq3jofczwpujq****
VpcNamestring

The number of ECS instances associated with the VPC.

edas-default-vpc4
Expiredboolean

The region ID of the VPC.

false
UserIdstring

GET /pop/v5/vpc_list HTTP/1.1 Common request headers

edas_****_test@aliyun-****.com
EcsNuminteger

This operation uses only common request headers. For more information, see Common parameters for API calls.

0
RegionIdstring

No request parameters.

cn-shenzhen

Examples

Sample success responses

JSONformat

{
  "Code": 200,
  "Message": "success",
  "RequestId": "b197-40ab-9155-7ca7",
  "VpcList": {
    "VpcEntity": [
      {
        "VpcId": "vpc-wz9pcq3jofczwpujq****",
        "VpcName": "edas-default-vpc4",
        "Expired": false,
        "UserId": "edas_****_test@aliyun-****.com",
        "EcsNum": 0,
        "RegionId": "cn-shenzhen"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history