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.
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: DescribeZoneInstanceConfigInfos. |
Version | Yes | String | Common Params. The value used for this API: 2017-03-12. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
Filters.N | No | Array of Filter |
Parameter Name | Type | Description |
---|---|---|
InstanceTypeQuotaSet | Array of InstanceTypeQuotaItem | List of model configurations for the availability zone. |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to query the list of instance configurations using availability zone and billing mode as filter conditions.
POST / HTTP/1.1
Host: cvm.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeZoneInstanceConfigInfos
<Common request parameters>
{
"Filters": [
{
"Values": [
"POSTPAID_BY_HOUR"
],
"Name": "instance-charge-type"
},
{
"Values": [
"ap-guangzhou-2"
],
"Name": "zone"
}
]
}
{
"Response": {
"InstanceTypeQuotaSet": [
{
"Status": "SELL",
"Zone": "ap-guangzhou-2",
"NetworkCard": 0,
"Price": {
"DiscountPrice": 59.0,
"OriginalPriceThreeYear": 0.0,
"DiscountOneYear": 0.0,
"UnitPrice": 0.0,
"UnitPriceThirdStep": 0.0,
"OriginalPriceFiveYear": 0.0,
"Discount": 0.0,
"DiscountFiveYear": 0.0,
"UnitPriceDiscountThirdStep": 0.0,
"UnitPriceSecondStep": 0.0,
"OriginalPrice": 59.0,
"DiscountThreeYear": 0.0,
"UnitPriceDiscountSecondStep": 0.0,
"UnitPriceDiscount": 0.0,
"DiscountPriceFiveYear": 0.0,
"OriginalPriceOneYear": 708.0,
"ChargeUnit": "HOUR",
"DiscountPriceThreeYear": 0.0,
"DiscountPriceOneYear": 587.64
},
"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,
"GpuCount": 0.0,
"Fpga": 0,
"Remark": "",
"Frequency": "2.4GHz"
}
],
"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. |
InvalidFilterValue.LimitExceeded | Filter |
InvalidInstanceId.Malformed | Invalid instance ID . The specified instance ID has an invalid format. For example, ins-1122 has an invalid ID length. |
InvalidInstanceId.NotFound | No instance found. |
InvalidInstanceType.Malformed | The specified InstanceType parameter has an invalid format. |
InvalidParameterValue.InstanceIdMalformed | Invalid instance ID. Please enter a valid ID, such as ins-xxxxxxxx (“x” represents a lower-case letter or a number). |
InvalidParameterValue.InvalidAppIdFormat | Invalid AppID |
InvalidParameterValue.LimitExceeded | The number of parameter values exceeds the limit. |
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. |
UnsupportedOperation | Unsupported operation. |
UnsupportedOperation.UnsupportedPool | The specified pool is illegal. |
この記事はお役に立ちましたか?