tencent cloud

APIs

DescribeResourcePackageList

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-10-28 10:17:13

1. API Description

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

This API is used to query the resource package list.

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: DescribeResourcePackageList.
Version Yes String Common Params. The value used for this API: 2019-01-07.
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-shenzhen-fsi, ap-singapore, ap-tokyo, eu-frankfurt, na-ashburn, na-siliconvalley, sa-saopaulo.
PackageId.N No Array of String Unique ID of the resource package
PackageName.N No Array of String Resource package name.
PackageType.N No Array of String Resource package type
CCU: compute resource package. DISK: storage resource package.
PackageRegion.N No Array of String Region of use for the resource package
china: common in the Chinese mainland; overseas: common in Hong Kong (China), Macao (China), Taiwan (China), and overseas regions
Status.N No Array of String Resource pack status
creating
using: in use;
expired
normal_finish: used up;
apply_refund: refund requested.
refund: refunded.
OrderBy.N No Array of String Sort condition. Supported sort condition: startTime - effective time.
expireTime: expiration time, packageUsedSpec: used capacity, packageTotalSpec: total storage capacity.
Sequential arrangement by array.
OrderDirection No String Sorting method. DESC: descending order. ASC: ascending order.
Offset No Integer Offset.
Limit No Integer Limit

3. Output Parameters

Parameter Name Type Description
Total Integer Total number of resource packages.
Detail Array of Package Resource pack details
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 resource package list

Inquire about the resource package list

Input Example

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

{
    "PackageId": [
        "package-bst68sh3"
    ],
    "PackageName": [
        "Custom resource package name-1"
    ],
    "PackageType": [
        "CCU"
    ],
    "PackageRegion": [
        "chineseMainland"
    ],
    "Status": [
        "using"
    ],
    "OrderBy": [
        "createTime"
    ],
    "OrderDirection": "desc",
    "Offset": 0,
    "Limit": 20
}

Output Example

{
    "Response": {
        "Total": 20,
        "Detail": [
            {
                "AppId": 12387234,
                "PackageId": "package-cbhsyegx",
                "PackageName": "MyPackageName",
                "PackageType": "CCU",
                "PackageRegion": "chineseMainland",
                "Status": "using",
                "PackageTotalSpec": 10000000,
                "PackageUsedSpec": 2394.3,
                "HasQuota": true,
                "BindInstanceInfos": [
                    {
                        "InstanceId": "cynosdbpg-ins-bzkxxrmt",
                        "InstanceRegion": "ap-guangzhou",
                        "InstanceType": "cynosdb-serverless"
                    }
                ],
                "StartTime": "2023-12-10 00:00:00",
                "ExpireTime": "2025-11-10 00:00:00",
                "PackageVersion": "common"
            }
        ],
        "RequestId": "e0c28bb4-a0f2-4194-a646-b8bcf777b5ce"
    }
}

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.DatabaseAccessError Database access failed. Try again later. If the issue persists, contact customer service.
FailedOperation.QuerySourcePackageError Failed to query the resource package
InternalError.DbOperationFailed Query database failed.
InternalError.SystemError Internal system error.
InvalidParameterValue.InvalidParameterValueError Parameter value is invalid.
UnauthorizedOperation.PermissionDenied CAM authentication failed.

Ajuda e Suporte

Esta página foi útil?

comentários