Domain name for API request: cvm.tencentcloudapi.com.
This API is used to query the model configuration of an instance.
zone
or instance-family
. For more information on filtering conditions, see Filter
.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.
This document describes the parameters for Signature V1. It's recommended to use the V3 signature, which provides higher security. Note that for Signature V3, the common parameters need to be placed in the HTTP Header. See details.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common parameter. The value used for this API: DescribeInstanceTypeConfigs. |
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 | Filter results by availability zones. For example, availability zone: ap-guangzhou-1. Type: String Required: no Valid values: list of availability zones Filter results by instance models. For example, instance models: S1, I1 and M1. Type: Integer Required: no Each request can have up to 10 Filters and 1 Filters.Values . |
Parameter Name | Type | Description |
---|---|---|
InstanceTypeConfigSet | Array of InstanceTypeConfig | List of instance model families |
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 instance types of the family I1
in Guangzhou Zone 2.
GET https://cvm.tencentcloudapi.com/?Action=DescribeInstanceTypeConfigs
&Filters.0.Name=zone
&Filters.0.Values.0=ap-guangzhou-2
&Filters.1.Name=instance-family
&Filters.1.Values.0=I1
&<Common request parameters>
{
"Response": {
"InstanceTypeConfigSet": [
{
"Zone": "ap-guangzhou-2",
"InstanceFamily": "I1",
"InstanceType": "I1.MEDIUM4",
"CPU": 2,
"GPU": 0,
"FPGA": 0,
"Memory": 4
},
{
"Zone": "ap-guangzhou-2",
"InstanceFamily": "I1",
"InstanceType": "I1.MEDIUM8",
"CPU": 2,
"GPU": 0,
"FPGA": 0,
"Memory": 8
},
{
"Zone": "ap-guangzhou-2",
"InstanceFamily": "I1",
"InstanceType": "I1.MEDIUM16",
"CPU": 2,
"GPU": 0,
"FPGA": 0,
"Memory": 16
},
{
"Zone": "ap-guangzhou-2",
"InstanceFamily": "I1",
"InstanceType": "I1.LARGE8",
"CPU": 4,
"GPU": 0,
"FPGA": 0,
"Memory": 8
}
],
"RequestId": "2f1fd71e-95ab-4f10-8adb-895e99d33ff5"
}
}
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 |
---|---|
InternalServerError | Internal error. |
InvalidFilter | Invalid filter. |
InvalidFilterValue.LimitExceeded | Filter |
InvalidInstanceType.Malformed | The specified InstanceType parameter has an invalid format. |
InvalidParameterValue | Incorrect parameter value. |
InvalidZone.MismatchRegion | The specified zone does not exist. |
Was this page helpful?