Domain name for API request: ecm.tencentcloudapi.com.
This API is used to query the list of VPCs.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribeVpcs. |
Version | Yes | String | Common Params. The value used for this API: 2019-07-19. |
Region | No | String | Common Params. This parameter is not required for this API. |
VpcIds.N | No | Array of String | VPC instance ID, such as vpc-f49l6u0z . Each request supports a maximum of 100 instances. VpcIds and Filters cannot be specified at the same time. |
Filters.N | No | Array of Filter | Filter. VpcIds and Filters cannot be specified at the same time.vpc-name - String - VPC instance name. Only fuzzy query by a single value is supported. vpc-id - String - VPC instance ID, such as vpc-f49l6u0z .cidr-block - String - VPC CIDR. Only fuzzy query by a single value is supported. region - String - VPC region. tag-key - String - Required: no - Filter by tag key. tag:tag-key - String - Required: no - Filter by tag key-value pair. |
Offset | No | Integer | Offset |
Limit | No | Integer | Number of returned results. |
EcmRegion | No | String | Region |
Sort | No | String | Sorting method. time: sort in reverse chronological order; default: sort by network planning. |
Parameter Name | Type | Description |
---|---|---|
TotalCount | Integer | Number of eligible objects. |
VpcSet | Array of VpcInfo | VPC object. Note: this field may return null, indicating that no valid values can be obtained. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://ecm.tencentcloudapi.com/?Action=DescribeVpcs
&VpcIds.0=vpc-07kqm4uj
&EcmRegion=ap-hangzhou-ecm
&<Common request parameters>
{
"Response": {
"TotalCount": 1,
"RequestId": "d15a17b7-703b-4757-ae1a-745af315abc4",
"VpcSet": [
{
"EnableDhcp": true,
"VpcId": "vpc-07kqm4uj",
"Description": "",
"DomainName": "",
"Ipv6CidrBlock": "",
"Region": "ap-hangzhou-ecm",
"DhcpOptionsId": "",
"InstanceCount": 2,
"DnsServerSet": [],
"EnableMulticast": false,
"VpcName": "Default-VPC",
"AssistantCidrSet": [],
"TagSet": null,
"SubnetCount": 1,
"CreatedTime": "2020-06-17 12:09:46",
"CidrBlock": "172.16.0.0/16",
"IsDefault": true,
"RegionName": "Hangzhou Zone 1"
}
]
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
FailedOperation.InternalOperationFailure | Internal error. |
InvalidParameter.Coexist | The parameters cannot be specified at the same time. |
InvalidParameter.InvalidDataFormat | The data format is incorrect. |
InvalidParameterValue | The parameter value is incorrect. |
InvalidParameterValue.FilterLimitExceeded | The value of the Filter parameter exceeds the limit. |
InvalidParameterValue.InvalidFilter | The filter is invalid. |
InvalidParameterValue.InvalidPublicParam | The common parameter is invalid. |
InvalidParameterValue.InvalidRegion | The ECM region is invalid. |
InvalidParameterValue.InvalidZoneInstanceCount | The city or quantity is invalid. |
InvalidParameterValue.Malformed | The input parameter format is invalid. |
UnauthorizedOperation.ForbiddenOperation | You don't have the permission to perform this operation. |
本页内容是否解决了您的问题?