Domain name for API request: cvm.tencentcloudapi.com.
This API is used to query the configurations of models in an availability zone.
A maximum of 40 requests can be initiated per second for this API.
Note: This API supports Finance regions. If the common parameter Region is a Finance region, a domain name with the Finance region needs to be specified, for example: cvm.ap-shanghai-fsi.tencentcloudapi.com
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 parameter. The value used for this API: DescribeZoneInstanceConfigInfos. |
Version | Yes | String | Common parameter. The value used for this API: 2017-03-12. |
Region | Yes | String | Common parameter. For more information, please see the list of regions supported by the product. |
Filters.N | No | Array of Filter | Filters.zone - String - Optional - Filter results by availability zone.instance-family - String - Optional - Filter results by instance model family, such as S1 , I1 , and M1 .instance-type - String - Optional - Filter results by model. Different instance models have different configurations. You can call DescribeInstanceTypeConfigs to query the latest configuration list or refer to the documentation on instance types. If this parameter is not specified, S1.SMALL1 will be used by default.instance-charge-type - String - Optional - Filter results by instance billing method. POSTPAID_BY_HOUR : pay-as-you-go | CDHPAID : you are only billed for CDH instances, not the CVMs running on the CDH instances. |
Parameter Name | Type | Description |
---|---|---|
InstanceTypeQuotaSet | Array of InstanceTypeQuotaItem | List of model configurations for the availability zone. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
This example shows you how to query the list of instance configurations using availability zone and billing method as filters.
GET https://cvm.tencentcloudapi.com/?Action=DescribeZoneInstanceConfigInfos
&Filters.0.Name=zone
&Filters.0.Values.0=ap-guangzhou-2
&Filters.1.Name=instance-charge-type
&Filters.1.Values.0=POSTPAID_BY_HOUR
&<Common request parameters>
{
"Response": {
"InstanceTypeQuotaSet": [
{
"Status": "SELL",
"Zone": "ap-guangzhou-2",
"NetworkCard": 0,
"Price": {
"UnitPrice": 0.15,
"DiscountThirdStep": "100.000000",
"UnitPriceThirdStep": 0.05,
"DiscountSecondStep": "100.000000",
"Discount": "100.000000",
"UnitPriceDiscountThirdStep": 0.05,
"UnitPriceSecondStep": 0.07,
"UnitPriceDiscount": 0.15,
"UnitPriceDiscountSecondStep": 0.07,
"ChargeUnit": "HOUR"
},
"InstanceFamily": "S2",
"Externals": {},
"InstanceType": "S2.SMALL1",
"TypeName": "Standard S2",
"InstanceChargeType": "POSTPAID_BY_HOUR",
"Memory": 1,
"LocalDiskTypeList": [],
"Cpu": 1,
"SoldOutReason": "",
"StorageBlockAmount": 0,
"CpuType": "Intel Xeon E5-2680 v4",
"InstancePps": 20,
"InstanceBandwidth": 1.5,
"Gpu": 0,
"Fpga": 0,
"Remark": ""
}
],
"RequestId": "c28559ca-d3cf-40f0-9664-2ab303484efa"
}
}
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 |
---|---|
InvalidFilter | Invalid filter. |
InvalidInstanceId.NotFound | No instance found. |
InvalidInstanceType.Malformed | The specified InstanceType parameter has an invalid format. |
InvalidParameterValue.ZoneNotSupported | The availability zone does not support this operation. |
InvalidRegion.NotFound | The region cannot be found. |
InvalidZone.MismatchRegion | The specified zone does not exist. |
ResourceInsufficient.AvailabilityZoneSoldOut | The availability zone has been sold out. |
Was this page helpful?