Last updated: 2021-09-02 10:20:34

1. API Description

Domain name for API request:

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:

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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.
  • 3. Output Parameters

    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.

    4. Example

    Example1 Querying the instance configurations in an availability zone

    This example shows you how to query a list of instance configurations using availability zone and billing method as filters.

    Input Example

    &<Common request parameters>

    Output Example

      "Response": {
        "InstanceTypeQuotaSet": [
            "Status": "SELL",
            "Zone": "ap-guangzhou-2",
            "NetworkCard": 0,
            "Price": {
              "UnitPrice": 0.15,
              "UnitPriceThirdStep": 0.05,
              "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"

    5. Developer Resources


    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    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.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.