# DescribeZoneInstanceConfigInfos

## 1. API Description

This API (DescribeZoneInstanceConfigInfos) is used to query information on instance size in the zone.

## 2. Input Parameters

The following request parameter list only provides API request parameters.

| Parameter Name | Required | Type   | Description           |
| -------------- | -------- | ------ | --------------------- |
| zoneId         | No       | String | Availability zone ID. |
| instanceType   | No       | String | Instance size.        |

## 3. Output Parameters

| Parameter Name       | Type                                                                                                                          | Description                                                                                                           |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| requestId            | String                                                                                                                        | <p>The unique request ID, which is returned for each request.</p><p>RequestId is required for locating a problem.</p> |
| instanceTypeQuotaSet | Array of [InstanceTypeQuotaItem](https://docs.console.zenlayer.com/api-reference/compute/datastructure#instancetypequotaitem) | Information on instance size in the zone.                                                                             |

## 4. Code Example

{% tabs %}
{% tab title="Example" %}
**Query information on instance size of `z2a.cpu.4` in the zone**.

```json
POST /api/v2/zec HTTP/1.1
Host: console.zenlayer.com
Content-Type: application/json
X-ZC-Action: DescribeZoneInstanceConfigInfos
<Common Request Params>

Request:
{
  "instanceType":"z2a.cpu.4"
}

Response:
{
  "requestId": "T1490DC28-BAD4-447A-9601-549EE18562BC",
  "response": {
    "requestId": "T1490DC28-BAD4-447A-9601-549EE18562BC",
    "instanceTypeQuotaSet": [
      {
        "zoneId": "europe-central-1a",
        "instanceType": "z2a.cpu.4",
        "cpuCount": 4,
        "memory": 8,
        "withStock": true,
        "internetMaxBandwidthOutLimit": 10000,
        "instanceTypeName": "z2a.cpu.4",
        "internetChargeTypes": [
          "BandwidthCluster",
          "ByTrafficPackage"
        ]
      },      {
        "zoneId": "europe-east-1a",
        "instanceType": "z2a.cpu.4",
        "cpuCount": 4,
        "memory": 8,
        "withStock": false,
        "internetMaxBandwidthOutLimit": 10000,
        "instanceTypeName": "z2a.cpu.4",
        "internetChargeTypes": [
          "BandwidthCluster"
        ]
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

## 5. Developer Resources

Zenlayer Cloud API 2.0 integrates [SDKs](https://docs.console.zenlayer.com/api-reference/api-introduction/toolkit/api-sdk)，to make it easier for you to call APIs. More programming languages will be supported.

## 6. Error Codes

The following only lists the error codes related to the API business logic. For other error codes, see [Common Error Codes](https://docs.console.zenlayer.com/api-reference/api-introduction/instruction/commonerrorcode).

| HTTP Status Code | Error Code                              | Description                                                 |
| ---------------- | --------------------------------------- | ----------------------------------------------------------- |
| 400              | INVALID\_INSTANCE\_TYPE\_ZONE\_NO\_SELL | Instance type sold out or not for sale in the current zone. |
| 400              | INVALID\_ZONE\_NOT\_ON\_SALE            | Instance size is not for sale in the availability zone.     |
