Domain name for API request: sqlserver.intl.tencentcloudapi.com.
This API is used to query the status information on specifications, including the sales status and reference price. (The actual price is subject to the result returned by price querying APIs.)
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: DescribeSpecSellStatus. |
| Version | Yes | String | Common Params. The value used for this API: 2018-03-28. |
| 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. |
| Zone | Yes | String | AZ ID. For example, ap-guangzhou-3. |
| SpecIdSet.N | Yes | Array of Integer | Instance specification ID, which can be obtained by calling the DescribeProductConfig API. |
| DBVersion | Yes | String | Database version, which can be obtained by calling the DescribeProductConfig API. |
| Pid | Yes | Integer | Product ID, which can be obtained by calling the DescribeProductConfig API. |
| PayMode | Yes | String | Payment mode. POST: pay-as-you-go; PRE: monthly subscription. |
| Currency | Yes | String | Currency. CNY; USD. |
| Parameter Name | Type | Description |
|---|---|---|
| DescribeSpecSellStatusSet | Array of SpecSellStatus | Status set of specifications in different regions. |
| 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. |
This example shows you how to query the reference price of a specification.
POST / HTTP/1.1
Host: sqlserver.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeSpecSellStatus
<Common request parameters>
{
"Currency": "CNY",
"DBVersion": "2016SP1",
"PayMode": "POST",
"Pid": 1003456,
"SpecIdSet": [
62
],
"Zone": "ap-guangzhou-3"
}{
"Response": {
"DescribeSpecSellStatusSet": [
{
"Architecture": "SINGLE",
"Id": "11000036233",
"InstanceType": "SI",
"MultiZonesStatus": "Invalid",
"PayModeStatus": "ALL",
"Price": {
"PostpaidPrice": 47,
"PostpaidPriceUnit": "H",
"PrepaidPrice": 26000,
"PrepaidPriceUnit": "M"
},
"SpecId": 62,
"Status": 1,
"Style": "EXCLUSIVE",
"Version": "2016SP1",
"ZoneStatusSet": [
{
"Region": "ap-guangzhou",
"Status": 1,
"Zone": "ap-guangzhou-3"
},
{
"Region": "ap-guangzhou",
"Status": 3,
"Zone": "ap-guangzhou-4"
},
{
"Region": "ap-guangzhou",
"Status": 1,
"Zone": "ap-guangzhou-6"
},
{
"Region": "ap-singapore",
"Status": 1,
"Zone": "ap-singapore-2"
},
{
"Region": "ap-singapore",
"Status": 1,
"Zone": "ap-singapore-1"
},
{
"Region": "ap-hongkong",
"Status": 1,
"Zone": "ap-hongkong-2"
},
{
"Region": "ap-shanghai",
"Status": 1,
"Zone": "ap-shanghai-2"
},
{
"Region": "ap-shanghai",
"Status": 1,
"Zone": "ap-shanghai-3"
},
{
"Region": "ap-shanghai",
"Status": 1,
"Zone": "ap-shanghai-4"
},
{
"Region": "ap-shanghai",
"Status": 1,
"Zone": "ap-shanghai-5"
},
{
"Region": "ap-beijing",
"Status": 1,
"Zone": "ap-beijing-2"
},
{
"Region": "ap-beijing",
"Status": 1,
"Zone": "ap-beijing-3"
},
{
"Region": "ap-beijing",
"Status": 1,
"Zone": "ap-beijing-5"
},
{
"Region": "ap-beijing",
"Status": 1,
"Zone": "ap-beijing-6"
},
{
"Region": "ap-beijing",
"Status": 1,
"Zone": "ap-beijing-7"
},
{
"Region": "ap-nanjing",
"Status": 1,
"Zone": "ap-nanjing-1"
},
{
"Region": "ap-nanjing",
"Status": 1,
"Zone": "ap-nanjing-2"
}
]
}
],
"RequestId": "df9508b2-db7c-43ac-91dc-3ba19433ae09"
}
}
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 |
|---|---|
| InternalError.SystemError | System error. |
| InvalidParameterValue.IllegalRegion | Invalid region. |
| InvalidParameterValue.IllegalZone | Incorrect AZ ID. |
| UnauthorizedOperation.PermissionDenied | CAM authentication error. |
Feedback