Domain name for API request: redis.tencentcloudapi.com.
This API is used to query the price for scaling an instance.
A maximum of 20 requests can be initiated per second for this API.
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: InquiryPriceUpgradeInstance. |
Version | Yes | String | Common Params. The value used for this API: 2018-04-12. |
Region | No | String | Common Params. This parameter is not required for this API. |
InstanceId | Yes | String | Instance ID. |
MemSize | Yes | Integer | Shard size in MB. |
RedisShardNum | No | Integer | Number of shards. This parameter can be left blank for Redis 2.8 in standard architecture, CKV in standard architecture, and Redis 2.8 in standalone architecture. |
RedisReplicasNum | No | Integer | Number of replicas. This parameter can be left blank for Redis 2.8 in standard architecture, CKV in standard architecture, and Redis 2.8 in standalone architecture. |
Parameter Name | Type | Description |
---|---|---|
Price | Float | Price. Unit: USD Note: this field may return null , indicating that no valid values can be obtained. |
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. |
https://redis.tencentcloudapi.com/?Action=InquiryPriceUpgradeInstance
&<Common request parameters>
&InstanceId=crs-xjhsdjcxjd
&MemSize=4096
{
"Response": {
"Price": 30400,
"RequestId": "0115d979-2c38-4ad2-b282-bec09d5b4c01"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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. |
InvalidParameter.InvalidParameter | Invalid service parameter. |
InvalidParameter.PermissionDenied | The API has no CAM permissions. |
InvalidParameterValue.ReduceCapacityNotAllowed | The request capacity is too small. Capacity reduction is not supported. |
InvalidParameterValue.SpecNotExist | The instance specification doesn’t exist. |
LimitExceeded.MemSizeNotInRange | The requested capacity is out of the purchasable capacity range. |
ResourceUnavailable.InstanceStateError | Instance status error. |
ResourceUnavailable.InstanceStatusError | Operation unsupported: the instance is exceptional. |
Was this page helpful?