tencent cloud



Last updated: 2022-09-26 17:00:15

1. API Description

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

This API is used to query the information of a package.

A maximum of 5 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: DescribeBundles.
Version Yes String Common Params. The value used for this API: 2020-03-24.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
BundleIds.N No Array of String Package ID list.
Offset No Integer Offset. Default value: 0. For more information on Offset, please see the relevant section in Overview.
Limit No Integer Number of returned results. Default value: 20. Maximum value: 100. For more information on Limit, please see the relevant section in the API Overview.
Filters.N No Array of Filter Filter list.
  • bundle-id
  • Filter by package ID.
    Type: String
    Required: no
  • support-platform-type
  • Filter by system type.
    Valid values: LINUX_UNIX (Linux/Unix), WINDOWS ( Windows)
    Type: String
    Required: no
    Each request can contain up to 10 Filters and 5 Filter.Values. You cannot specify both BundleIds and Filters at the same time.
    Zones.N No Array of String AZ list, which contains all AZs by default.

    3. Output Parameters

    Parameter Name Type Description
    BundleSet Array of Bundle List of package details.
    TotalCount Integer Total number of eligible packages, which is used for pagination.
    RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

    4. Example

    Example1 Querying package (with success returned)

    Input Example

    &<Common request parameters>

    Output Example

        "Response": {
            "BundleSet": [
                    "BundleId": "bundle_bw_small1_1",
                    "CPU": 1,
                    "Memory": 1,
                    "SystemDiskType": "CLOUD_SSD",
                    "SystemDiskSize": 20,
                    "InternetMaxBandwidthOut": 1,
                    "InternetChargeType": "BANDWIDTH_POSTPAID_BY_HOUR",
                    "MonthlyTraffic": 1,
                    "Price": {
                        "InstancePrice": {
                            "OriginalBundlePrice": 60,
                            "OriginalPrice": 60,
                            "Discount": 65,
                            "DiscountPrice": 39
                    "SupportLinuxUnixPlatform": true,
                    "SupportWindowsPlatform": false,
                    "BundleType": "GENERAL_BUNDLE",
                    "BundleSalesState": "AVAILABLE",
                    "BundleDisplayLabel": "NORMAL"
                    "BundleId": "bundle_ntp_small1_500",
                    "CPU": 1,
                    "Memory": 1,
                    "SystemDiskType": "CLOUD_SSD",
                    "SystemDiskSize": 40,
                    "InternetMaxBandwidthOut": 3,
                    "InternetChargeType": "TRAFFIC_POSTPAID_BY_HOUR",
                    "MonthlyTraffic": 500,
                    "Price": {
                        "InstancePrice": {
                            "OriginalBundlePrice": 90,
                            "OriginalPrice": 90,
                            "Discount": 65,
                            "DiscountPrice": 58.5
                    "SupportLinuxUnixPlatform": true,
                    "SupportWindowsPlatform": true,
                    "BundleType": "GENERAL_BUNDLE",
                    "BundleSalesState": "AVAILABLE",
                    "BundleDisplayLabel": "NORMAL"
            "TotalCount": 2,
            "RequestId": "6d4c966d-bc42-4425-8c98-a39f36c7ad1b"

    5. Developer Resources


    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
    InternalError.InvalidCommandNotFound The command DescribeInstanceLoginKeyPair could not be found.
    InternalError.RequestError There was an error in the request.
    InternalError.TradeGetPriceFailed Failed to get the price.
    InvalidParameter.BundleIdNotFound Undefined service package ID.
    InvalidParameter.FilterValueLimitExceeded Invalid parameter: the number of Values in the Filter parameter exceeds the allowed maximum number.
    InvalidParameter.InvalidFilter Invalid parameter: the Filter parameter is invalid.
    InvalidParameter.InvalidFilterInvalidKey Invalid parameter: the value of Name in the Filter parameter is invalid.
    InvalidParameter.InvalidFilterInvalidNameNotStr Invalid parameter: the value of Name in the Filter parameter is not a string.
    InvalidParameter.InvalidFilterNotDict Invalid parameter: the Filter parameter is not a dictionary.
    InvalidParameter.InvalidFilterNotSupportedName Invalid parameter: there are unsupported Name values in the Filter parameter.
    InvalidParameter.ParameterConflict Invalid parameter: the parameters conflict.
    InvalidParameterValue.Duplicated Invalid parameter value: duplicate values are not allowed.
    InvalidParameterValue.InvalidBlueprintPlatformType The type of the image OS is invalid.
    InvalidParameterValue.InvalidConsoleDisplayTypes The console display type is invalid.
    InvalidParameterValue.InvalidZone Invalid Zone value.
    InvalidParameterValue.LimitExceeded Invalid parametric value: the number of parameter values exceeds the upper limit.
    InvalidParameterValue.Negative Invalid parametric value: it cannot be negative.
    InvalidParameterValue.OutOfRange Invalid parametric value: it is not within the valid range.
    InvalidParameterValue.ZoneInvalid Invalid AZ.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support