History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
Domain name for API request: lighthouse.intl.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.
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. This API only supports: ap-bangkok, ap-beijing, ap-chengdu, ap-guangzhou, ap-hongkong, ap-jakarta, ap-nanjing, ap-seoul, ap-shanghai, ap-singapore, ap-tokyo, eu-frankfurt, na-ashburn, na-siliconvalley, sa-saopaulo. |
| BundleIds.N | No | Array of String | List of bundle ids. the maximum is 100 per request for batch packages. you can get the BundleId in the return value from the API DescribeBundles. |
| 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. Type: String. Required: No support-platform-typeValue: LINUX_UNIX (LINUX/UNIX system); WINDOWS (WINDOWS systems). Type: String. Required: No Valid values: GENERAL_BUNDLE (GENERAL BUNDLE); STORAGE_BUNDLE (STORAGE BUNDLE); ENTERPRISE_BUNDLE (ENTERPRISE BUNDLE); EXCLUSIVE_BUNDLE (dedicated BUNDLE); BEFAST_BUNDLE (SPEED BUNDLE); STARTER_BUNDLE (STARTER BUNDLE); CAREFREE_BUNDLE (CAREFREE BUNDLE); RAZOR_SPEED_BUNDLE (RAZOR SPEED BUNDLE). Type: String. Required: No Valid values: ONLINE, OFFLINE. Type: String. Required: No The maximum number of Filters per request is 10, and the maximum number of Filter.Values is 5. the parameter does not support specifying both BundleIds and Filters. |
| Zones.N | No | Array of String | AZ list. default to all availability zones. |
| 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, 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 information of specific bundles.
POST / HTTP/1.1
Host: lighthouse.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeBundles
<Common request parameters>
{
"BundleIds": [
"bundle_ntp_small1_500",
"bundle_bw_small1_1"
]
}
{
"Response": {
"BundleSet": [
{
"BundleId": "bundle2022_gen_02",
"CPU": 2,
"Memory": 2,
"SystemDiskType": "CLOUD_SSD",
"SystemDiskSize": 50,
"InternetMaxBandwidthOut": 5,
"InternetChargeType": "TRAFFIC_POSTPAID_BY_HOUR",
"MonthlyTraffic": 500,
"Price": {
"InstancePrice": {
"Currency": "USD",
"OriginalBundlePrice": 60.0,
"OriginalPrice": 60.0,
"Discount": 66.229933,
"DiscountPrice": 39.74
}
},
"SupportLinuxUnixPlatform": true,
"SupportWindowsPlatform": true,
"BundleType": "GENERAL_BUNDLE",
"BundleTypeDescription": "Standard",
"BundleSalesState": "AVAILABLE",
"BundleDisplayLabel": "NORMAL"
}
],
"TotalCount": 1,
"RequestId": "b2563b1d-e93f-4e05-9c6f-096e0c403add"
}
}
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 | Operation failed. |
| FailedOperation.DescribeBundlesFailed | Query package failed. |
| FailedOperation.RequestError | A request error occurred. |
| FailedOperation.TradeGetPriceFailed | Failed to query the price. |
| InternalError.InvalidCommandNotFound | The command is not found. |
| InternalError.RequestError | There was an error in the request. |
| InternalError.TradeGetPriceFailed | Failed to get the price. |
| InvalidParameter.BundleIdNotFound | Undefined service package ID. |
| InvalidParameter.Conflict | Parameters conflicted. |
| 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. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan