You can call this operation to query the information lists of Virtual Private Cloud (VPC).

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeVpcList

The operation that you want to perform.

Set the value to DescribeVpcList.

Response parameters

Parameter Type Example Description
Count Integer 1

The total number of VPC lists returned.

RequestId String 7E0618A9-D5EF-4220-9471-C42B5E92719F

The ID of the request.

VpcList Array

The information list of VPC.

EcsCount Integer 9

The number of Elastic Compute Service (ECS) instances.

InstanceDesc String VPC purchase test

The descriptions of the VPC instance.

InstanceId String ins_1321_asedb_ada

The ID of the VPC instance.

InstanceName String Test

The name of the VPC instance.

MiddleStatus Integer 1

The status of the ECS instance.

  • -1: pending deleting.
  • 1: pending adding.
RegionId String shanghai

The region where the VPC instance is deployed.

Status Integer 2

The purchase status of the ECS instance.

  • 0: not added.
  • 2: added.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DescribeVpcList
&<Common request parameters>

Sample success responses

XML format

<DescribeVpcListResponse>
  <VpcList>
        <InstanceId>ins_1321_asedb_ada</InstanceId>
        <InstanceName>vpc</InstanceName>
        <InstanceDesc>vpc</InstanceDesc>
        <EcsCount>9</EcsCount>
        <Status>2</Status>
        <MiddleStatus>1</MiddleStatus>
  </VpcList>
  <requestId>7E0618A9-D5EF-4220-9471-C42B5E92719F</requestId>
  <count>1</count>
</DescribeVpcListResponse>

JSON format

{
	"VpcList": [{
		"InstanceId": "ins_1321_asedb_ada",
		"InstanceName": "vpc",
        "InstanceDesc":"vpc",
		"EcsCount": 9,
		"Status": 2,
		"MiddleStatus": 1
	}],
	"requestId": "7E0618A9-D5EF-4220-9471-C42B5E92719F",
	"count": 1
}

Error codes

For a list of error codes, visit the API Error Center.