tencent cloud

文档反馈

DescribeProductConfig

最后更新时间:2023-09-18 11:41:44

1. API Description

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

This API is used to query purchasable specification configuration.

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: DescribeProductConfig.
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.
Zone Yes String AZ ID in the format of ap-guangzhou-1
InstanceType No String The type of instances to be purchased. Valid values: HA (High-Availability Edition, including dual-server high availability and AlwaysOn cluster), RO (read-only replica), SI (Basic Edition)

3. Output Parameters

Parameter Name Type Description
SpecInfoList Array of SpecInfo Specification information array
TotalCount Integer Number of date entries returned
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Querying the purchasable specifications of High-Availability Edition instances in Guangzhou Zone 2

Input Example

https://sqlserver.tencentcloudapi.com/?Action=DescribeProductConfig
&Zone=ap-guangzhou-2
&InstanceType=HA
&<Common request parameters>

Output Example

{
    "Response": {
        "RequestId": "2a91dd2e-f237-4c78-b06c-348a12b04a46",
        "SpecInfoList": [
            {
                "CPU": 16,
                "InstanceType": "HA",
                "MachineType": "TS85",
                "MachineTypeName": "High IO",
                "MaxStorage": 3000,
                "Memory": 128,
                "MinStorage": 10,
                "MultiZonesStatus": "ALL",
                "PayModeStatus": "ALL",
                "Pid": 10908,
                "PostPid": [
                    10908
                ],
                "QPS": 61000,
                "SpecId": 22,
                "SuitInfo": "Large applications with tens of millions of unique users",
                "Version": "2008R2",
                "VersionName": "SQL Server 2008 Enterprise"
            },
            {
                "CPU": 1,
                "InstanceType": "HA",
                "MachineType": "TS85",
                "MachineTypeName": "High IO",
                "MaxStorage": 3000,
                "Memory": 8,
                "MinStorage": 10,
                "MultiZonesStatus": "ALL",
                "PayModeStatus": "ALL",
                "Pid": 10908,
                "PostPid": [
                    10908
                ],
                "QPS": 6500,
                "SpecId": 17,
                "SuitInfo": "Small applications with thousands of unique users",
                "Version": "2012SP3",
                "VersionName": "SQL Server 2012 Enterprise"
            },
            {
                "CPU": 24,
                "InstanceType": "HA",
                "MachineType": "TS85",
                "MachineTypeName": "High IO",
                "MaxStorage": 3000,
                "Memory": 192,
                "MinStorage": 10,
                "MultiZonesStatus": "ALL",
                "PayModeStatus": "ALL",
                "Pid": 10908,
                "PostPid": [
                    10908
                ],
                "QPS": 234000,
                "SpecId": 34,
                "SuitInfo": "Large applications with hundreds of millions of unique users",
                "Version": "2012SP3",
                "VersionName": "SQL Server 2012 Enterprise"
            },
            {
                "CPU": 16,
                "InstanceType": "HA",
                "MachineType": "TS85",
                "MachineTypeName": "High IO",
                "MaxStorage": 3000,
                "Memory": 128,
                "MinStorage": 10,
                "MultiZonesStatus": "ALL",
                "PayModeStatus": "ALL",
                "Pid": 10908,
                "PostPid": [
                    10908
                ],
                "QPS": 61000,
                "SpecId": 22,
                "SuitInfo": "Large applications with tens of millions of unique users",
                "Version": "2016SP1",
                "VersionName": "SQL Server 2016 Enterprise"
            }
        ],
        "TotalCount": 4
    }
}

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.DBError Database error.
FailedOperation.GcsError The operation failed or the network timed out.
InternalError.SystemError System error.
InvalidParameter.InputIllegal Input error.
InvalidParameter.ParamsAssertFailed An error occurred while converting parameter assertion.
InvalidParameterValue.IllegalRegion Invalid region.
InvalidParameterValue.IllegalZone Incorrect AZ ID.
UnauthorizedOperation.PermissionDenied CAM authentication error.