tencent cloud

云硬盘

新手指引
产品公告
腾讯云云硬盘快照正式商业化计费公告
腾讯云云硬盘快照跨地域复制功能正式商业化计费公告
产品简介
产品概述
产品优势
应用场景
地域和可用区
云硬盘实例
云硬盘快照
访问管理
相关产品
上一代产品
Service Regions and Service Providers
产品计费
计费概述
价格总览
购买指引
续费指引
欠费说明
快速入门
步骤1:创建云硬盘
步骤2:挂载云硬盘
步骤3:初始化云硬盘
用户指南
操作总览
使用限制
创建云硬盘
挂载云硬盘
初始化云硬盘
扩容云硬盘
卸载云硬盘
销毁云硬盘
查看云硬盘信息
调整云硬盘类型
调整云硬盘性能
云硬盘数据防护配置
云硬盘数据备份点
管理快照
监控与告警
实践教程
如何衡量云硬盘的性能
多块弹性云硬盘构建 LVM 逻辑卷
MBR 分区云硬盘扩容至大于 2TB
故障处理
Windows 云服务器无法卸载云硬盘
Linux 云服务器重启后云硬盘未自动挂载
API 文档
History
Introduction
API Category
Making API Requests
Snapshot APIs
Cloud Disk APIs
Data Types
Error Codes
常见问题
功能相关问题
计费相关问题
性能相关问题
快照相关问题
使用相关问题
服务等级协议
联系我们
词汇表

InquiryPriceCreateDisks

PDF
聚焦模式
字号
最后更新时间: 2026-02-27 17:42:57

1. API Description

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

This API is used to query the price of creating cloud disks.

  • You can query the price of creating multiple cloud disks in a single request. In this case, the price returned will be the total price.

A maximum of 20 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: InquiryPriceCreateDisks.
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. This API only supports: ap-bangkok, ap-beijing, ap-chengdu, ap-chongqing, ap-guangzhou, ap-hongkong, ap-jakarta, ap-nanjing, ap-seoul, ap-shanghai, ap-shanghai-fsi, ap-shenzhen-fsi, ap-singapore, ap-tokyo, eu-frankfurt, na-ashburn, na-siliconvalley, sa-saopaulo.
DiskChargeType Yes String Cloud disk billing mode.

  • PREPAID: Prepaid by month.
  • POSTPAID_BY_HOUR: Hourly pay-as-you-go.
  • DiskType Yes String Hard disk media type. valid values:
    • CLOUD_PREMIUM: high-performance CLOUD block storage
    • CLOUD_SSD: SSD CLOUD disk
    • CLOUD_HSSD: enhanced SSD CLOUD disk
    • CLOUD_TSSD: ultra-fast SSD cbs
    .
    DiskSize Yes Integer Specifies the disk capacity in GiB. for the cloud disk size range, please refer to the product type of cloud block storage (https://www.tencentcloud.com/document/product/362/2353?from_cn_redirect=1).
    ProjectId No Integer cloud disk project ID. obtain this parameter by calling the projectId field in the return value of DescribeProject. default to the default project.
    DiskCount No Integer Specifies the number of cloud block storage (cbs) disks to purchase. defaults to 1 if left blank.
    ThroughputPerformance No Integer Specifies the additional performance value of the CBS disk in MiB/s. extra performance is only supported for enhanced SSD (CLOUD_HSSD) and ultra-fast SSD (CLOUD_TSSD) CBS disks exceeding 460GiB in size.
    DiskChargePrepaid No DiskChargePrepaid Prepaid mode, that is, the settings for the monthly subscription-related parameters. through this parameter, you can specify the purchase duration of the monthly subscribed cloud disk, whether to enable auto-renewal, and other attributes. this parameter is required for creating a prepaid cloud disk, but no need to specify it when creating an hourly postpaid cloud disk.
    DiskBackupQuota No Integer Specifies the cloud disk backup point quota.

    3. Output Parameters

    Parameter Name Type Description
    DiskPrice Price Describes the price of newly purchased cloud disks.
    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 Querying the Price of Hourly Postpaid Cloud Disk Purchase

    This example shows you how to query the price of purchasing a 100GB high-performance cloud block storage with hourly postpaid billing type.

    Input Example

    https://cbs.intl.tencentcloudapi.com/?Action=InquiryPriceCreateDisks
    &DiskType=CLOUD_PREMIUM
    &DiskSize=100
    &DiskCount=1
    &DiskChargeType=POSTPAID_BY_HOUR
    &<Common request parameters>

    Output Example

    {
        "Response": {
            "RequestId": "55e84d71-26f1-4b7c-8dc4-6bc26d0a2411",
            "DiskPrice": {
                "DiscountPrice": null,
                "UnitPrice": 0.04,
                "UnitPriceHigh": "0.042",
                "OriginalPriceHigh": null,
                "OriginalPrice": null,
                "UnitPriceDiscount": 0.04,
                "UnitPriceDiscountHigh": "0.042",
                "DiscountPriceHigh": null,
                "ChargeUnit": "HOUR"
            }
        }
    }

    Example2 Querying Purchase of 1-Month 500G TSSD with 100M Additional Performance Inquiry

    This example shows you how to query the price of purchasing an hourly pay-as-you-go 100 GB premium cloud disk.

    Input Example

    https://cbs.intl.tencentcloudapi.com/?Action=InquiryPriceCreateDisks
    &DiskType=CLOUD_TSSD
    &DiskCount=1
    &DiskSize=500
    &DiskChargeType=PREPAID
    &DiskChargePrepaid.Period=1
    &ThroughputPerformance=100
    &<Common request parameters>

    Output Example

    {
        "Response": {
            "RequestId": "55e84d71-26f1-4b7c-8dc4-6bc2611d0a2411",
            "DiskPrice": {
                "DiscountPrice": 800.0,
                "UnitPriceHigh": null,
                "OriginalPriceHigh": "800",
                "OriginalPrice": 800.0,
                "UnitPriceDiscount": null,
                "UnitPriceDiscountHigh": null,
                "DiscountPriceHigh": "800",
                "UnitPrice": null,
                "ChargeUnit": null
            }
        }
    }

    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
    InvalidParameterValue Invalid parameter value.
    MissingParameter Missing parameter.

    帮助和支持

    本页内容是否解决了您的问题?

    填写满意度调查问卷,共创更好文档体验。

    文档反馈