tencent cloud

Feedback

DescribeZoneInstanceConfigInfos

Last updated: 2024-10-22 19:33:14

    1. API Description

    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.

    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 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
  • instance-charge-type-String-required: no-(filter) billing mode of instances. (POSTPAID_BY_HOUR: pay-as-you-go billing by hour | SPOTPAID: spot billing, which is suitable for a [spot instance] (https://intl.cloud.Tencent.com/document/product/213/17817) | CDHPAID: CDH billing, that is, billing only for CDH, but not for the instances on CDH. )
  • 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, 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.

    4. Example

    Example1 Obtaining the List of Instance Configurations in an Availability Zone

    This example shows you how to query the list of instance configurations using availability zone and billing mode as filter conditions.

    Input Example

    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"
            }
        ]
    }
    

    Output Example

    {
        "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"
        }
    }
    

    5. Developer Resources

    SDK

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

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support