DescribeDiskConfigQuota

Last updated: 2020-09-10 18:02:31

1. API Description

Domain name for API request: cbs.tencentcloudapi.com.

This API (DescribeDiskConfigQuota) is used to query the cloud disk quota.

A maximum of 20 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: cbs.ap-shanghai-fsi.tencentcloudapi.com

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: DescribeDiskConfigQuota.
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.
InquiryType Yes String Inquiry type. Value range: INQUIRY_CBS_CONFIG: query the configuration list of cloud disks
  • INQUIRY_CVM_CONFIG: query the configuration list of cloud disks and instances.
  • Zones.N No Array of String Query configuration under one or more availability zone.
    DiskChargeType No String Billing mode. Value range:
  • POSTPAID_BY_HOUR: postpaid.
  • DiskTypes.N No Array of String Type of hard disk medium. Value range:
  • CLOUD_BASIC: Ordinary cloud disk
  • CLOUD_PREMIUM: Premium cloud storage
  • CLOUD_SSD: SSD cloud disk.
  • DiskUsage No String The system disk or data disk. Value range:
  • SYSTEM_DISK: System disk
  • DATA_DISK: Data disk.
  • InstanceFamilies.N No Array of String Filter by the instance model series, such as S1, I1 and M1. For more information, please see Instance Types
    CPU No Integer Instance CPU cores.
    Memory No Integer Instance memory size.

    3. Output Parameters

    Parameter Name Type Description
    DiskConfigSet Array of DiskConfig List of cloud disk configurations.
    RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

    4. Example

    Example1 Querying the configurations of cloud disks in Guangzhou Zone 2

    This example shows you how to query the availability and configurations of cloud disks in an availability zone. If the value of Available is true in the response, it means a cloud disk type is available; if its value is false, it means a cloud disk type is sold out.

    Input Example

    https://cbs.tencentcloudapi.com/?Action=DescribeDiskConfigQuota
    &InquiryType=INQUIRY_CBS_CONFIG
    &Zones.0=ap-guangzhou-2
    &<Common request parameter>

    Output Example

    {
      "Response": {
        "DiskConfigSet": [
          {
            "Available": true,
            "DiskChargeType": "POSTPAID_BY_HOUR",
            "Zone": "ap-guangzhou-2",
            "InstanceFamily": null,
            "DiskType": "CLOUD_BASIC",
            "DeviceClass": null,
            "DiskUsage": "DATA_DISK",
            "MinDiskSize": 10,
            "MaxDiskSize": 4000
          },
          {
            "Available": true,
            "DiskChargeType": "POSTPAID_BY_HOUR",
            "Zone": "ap-guangzhou-2",
            "InstanceFamily": null,
            "DiskType": "CLOUD_PREMIUM",
            "DeviceClass": null,
            "DiskUsage": "DATA_DISK",
            "MinDiskSize": 50,
            "MaxDiskSize": 4000
          },
          {
            "Available": false,
            "DiskChargeType": "POSTPAID_BY_HOUR",
            "Zone": "ap-guangzhou-2",
            "InstanceFamily": null,
            "DiskType": "CLOUD_SSD",
            "DeviceClass": null,
            "DiskUsage": "DATA_DISK",
            "MinDiskSize": 100,
            "MaxDiskSize": 4000
          }
        ],
        "RequestId": "55db49cf-b9d7-da27-825b-5a02ba6814b2"
      }
    }

    Example2 Querying the configurations of cloud disks that can work with S3 models in Guangzhou Zone 2

    This example shows you how to query the configurations of cloud disks that can work with specified instance models. If the value of Available is true in the response, it means a cloud disk type is available; if its value is false, it means a cloud disk type is sold out.

    Input Example

    https://cbs.tencentcloudapi.com/?Action=DescribeDiskConfigQuota
    &InquiryType=INQUIRY_CVM_CONFIG
    &Zones.0=ap-guangzhou-2
    &InstanceFamilies.0=S3
    &<Common request parameter>

    Output Example

    {
      "Response": {
        "DiskConfigSet": [
          {
            "Available": true,
            "MaxDiskSize": 16000,
            "Zone": "ap-guangzhou-2",
            "InstanceFamily": "S3",
            "DiskType": "CLOUD_BASIC",
            "DeviceClass": "VSELF_3",
            "DiskUsage": "DATA_DISK",
            "MinDiskSize": 10,
            "DiskChargeType": "POSTPAID_BY_HOUR"
          },
          {
            "Available": true,
            "MaxDiskSize": 500,
            "Zone": "ap-guangzhou-2",
            "InstanceFamily": "S3",
            "DiskType": "CLOUD_BASIC",
            "DeviceClass": "VSELF_3",
            "DiskUsage": "SYSTEM_DISK",
            "MinDiskSize": 50,
            "DiskChargeType": "POSTPAID_BY_HOUR"
          },
          {
            "Available": true,
            "MaxDiskSize": 16000,
            "Zone": "ap-guangzhou-2",
            "InstanceFamily": "S3",
            "DiskType": "CLOUD_SSD",
            "DeviceClass": "VSELF_3",
            "DiskUsage": "DATA_DISK",
            "MinDiskSize": 100,
            "DiskChargeType": "POSTPAID_BY_HOUR"
          },
          {
            "Available": true,
            "MaxDiskSize": 500,
            "Zone": "ap-guangzhou-2",
            "InstanceFamily": "S3",
            "DiskType": "CLOUD_SSD",
            "DeviceClass": "VSELF_3",
            "DiskUsage": "SYSTEM_DISK",
            "MinDiskSize": 50,
            "DiskChargeType": "POSTPAID_BY_HOUR"
          }
        ],
        "RequestId": "55db49cf-b9d7-da27-825b-5a02ba6814b2"
      }
    }

    5. Developer Resources

    API Explorer

    This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using TencentCloud APIs.

    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
    InvalidParameterValue Invalid parameter value. Parameter value format error or parameter value not supported.
    MissingParameter Missing parameter. Request does not include the required parameter.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help