tencent cloud

APIs

InquiryPriceCreateInstance

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-08-14 16:52:55

1. API Description

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

This API is used to query the price of new instances.

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: InquiryPriceCreateInstance.
Version Yes String Common Params. The value used for this API: 2018-04-12.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
TypeId Yes Integer

Instance type. - 2: Redis 2.8 memory edition (standard architecture). - 6: Redis 4.0 memory edition (standard architecture). - 7: Redis 4.0 memory edition (cluster architecture). - 8: Redis 5.0 memory edition (standard architecture). - 9: Redis 5.0 memory edition (cluster architecture). - 15: Redis 6.2 memory edition (standard architecture). - 16: Redis 6.2 memory edition (cluster architecture). - 17: Redis 7.0 memory edition (standard architecture). - 18: Redis 7.0 memory edition (cluster architecture). - 200: Memcached 1.6 memory edition (cluster architecture).

MemSize Yes Integer

Memory capacity, measured in MB, must be a multiple of 1024. For specific specifications, refer to the specifications returned by query product sales specifications. When TypeId is standard architecture, MemSize is the total memory capacity of the instance. When TypeId is cluster architecture, MemSize is the sharded memory capacity.

GoodsNum Yes Integer

Instance count. The number of instances to purchase at a time is subject to the specifications returned by query product sales specifications.

Period Yes Integer

Purchase period needs to be filled in when creating an annual and monthly subscription instance. For pay-as-you-go instances, just fill in 1. Unit: month. Value ranges from 1 to 36 [1,2,3,4,5,6,7,8,9,10,11,12,24,36].

BillingMode Yes Integer

Payment method. - 0: Pay-As-You-Go. - 1: Monthly Subscription.

ZoneId No Integer

ID of the AZ to which the instance belongs. See Regions and AZs.Note: Please specify at least one parameter in ZoneId and ZoneName.

RedisShardNum No Integer

Number of instance shards. - The shard number should be set to 1 for the standard architecture. - The number of shards can be set to 1, 3, 5, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, or 128 for the cluster architecture.

RedisReplicasNum No Integer

Number of instance replicas. Valid values: 1, 2, 3, 4, and 5.

ReplicasReadonly No Boolean

Whether replica read-only is supported. For Redis 2.8 standard architecture and CKV standard architecture, this parameter is not required. - true: replica read-only not required. - false: read-only replica supported.

ZoneName No String

Name of the availability zone to which the instance belongs. See Regions and Availability Zones. Description: Please specify at least one parameter in ZoneId and ZoneName.

ProductVersion No String

Deployment method. - local: local disk, defaults to local. - cloud: cloud disk. - cdc: dedicated cluster edition.

3. Output Parameters

Parameter Name Type Description
Price Float

Discounted price.

HighPrecisionPrice Float

High-precision discounted price

OriginalPrice Float

Original price

HighPrecisionOriginalPrice Float

High-precision original price

Currency String

Currency

AmountUnit String

Price amount unit

  • pent: cent
  • microPent: microcent
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 Example

Input Example

POST / HTTP/1.1
Host: redis.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: InquiryPriceCreateInstance
<Common request parameters>

{
    "TypeId": 9,
    "MemSize": 4096,
    "GoodsNum": 3,
    "Period": 1,
    "BillingMode": 0,
    "ZoneId": 100002,
    "RedisShardNum": 1,
    "RedisReplicasNum": 1
}

Output Example

{
    "Response": {
        "AmountUnit": "pent",
        "Currency": "CNY",
        "HighPrecisionOriginalPrice": 280.0224,
        "HighPrecisionPrice": 280.0224,
        "OriginalPrice": 280,
        "Price": 280,
        "RequestId": "e250b8cf-6beb-462f-aa17-34b08ed6c164"
    }
}

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
FailedOperation.SystemError Internal system error, which is irrelevant to the business.
InternalError.InternalError Internal error.
InvalidParameter.PermissionDenied The API has no CAM permissions.
InvalidParameterValue.SpecNotExist The instance specification doesn’t exist.
UnauthorizedOperation.NoCAMAuthed No CAM permissions.
UnauthorizedOperation.UserNotInWhiteList The user is not in the allowlist.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백