tencent cloud

DescribeBandwidthPackages
最后更新时间:2025-11-13 20:43:48
DescribeBandwidthPackages
最后更新时间: 2025-11-13 20:43:48

1. API Description

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

This API is used to query bandwidth package information, including the unique ID of the bandwidth package, the type, the billing mode, the name, and the resource information.

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: DescribeBandwidthPackages.
Version Yes String Common Params. The value used for this API: 2017-03-12.
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.
BandwidthPackageIds.N No Array of String The unique ID list of bandwidth packages.
Filters.N No Array of Filter Each request can have up to 10 Filters. parameters do not support specifying BandwidthPackageIds and Filters at the same time. detailed filter criteria are as follows:.
  • bandwidth-package-id - String - required: no - (filter condition) filter by the unique id of the bandwidth package.
  • .
  • bandwidth-package-name - String - required: no - (filter criteria) filter by bandwidth package name. fuzzy filtering is not supported.
  • .
  • network-type - String - required: no - (filter condition) filter by bandwidth package type. network type can be found in BandwidthPackage.
  • .
  • - charge-type - String - required: no - (filter condition) filter by the billing type of the bandwidth package. the billing type can be found in BandwidthPackage (https://www.tencentcloud.com/document/api/215/15824?from_cn_redirect=1#BandwidthPackage).
  • .
  • resource.resource-type - String - required: no - (filter criteria) filter by bandwidth package resource type. resource types include 'Address' and 'LoadBalance'.
  • .
  • resource.resource-id - String - required: no - (filter criteria) filter by bandwidth package resource id. resource id is in the format of 'eip-xxxx','lb-xxxx'.
  • .
  • resource.address-ip - String - required: no - filter by bandwidth package resource ip.
  • .
  • tag-key - String - required: no - (filter condition) filter according to the tag key.
  • .
  • tag-value - String - Optional - Filter by the tag value.


  • tag:tag-key - String - required: no - (filter condition) filter by tag key-value pair. replace tag-key with a specific tag key.
  • .
    Offset No Integer Offset. This value defaults to 0. For more information on Offset, see the relevant section in the API Introduction.
    Limit No Integer Number of bandwidth packages returned. This value defaults to 20. The maximum is 100. For more information on Limit, see the relevant section in the API Introduction.

    3. Output Parameters

    Parameter Name Type Description
    TotalCount Integer The number of eligible bandwidth packages.
    BandwidthPackageSet Array of BandwidthPackage Detail information of the bandwidth package.
    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 Bandwidth Package Resources

    Input Example

    POST / HTTP/1.1
    Host: vpc.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeBandwidthPackages
    <Common request parameters>
    
    {
        "Filters": [
            {
                "Values": [
                    "BGP"
                ],
                "Name": "network-type"
            }
        ]
    }

    Output Example

    {
        "Response": {
            "TotalCount": 1,
            "BandwidthPackageSet": [
                {
                    "BandwidthPackageId": "bwp-p6am50q0",
                    "BandwidthPackageName": "gongxiang1",
                    "Status": "CREATED",
                    "NetworkType": "BGP",
                    "Egress": "center_egress1",
                    "ChargeType": "FIXED_PREPAID_BY_MONTH",
                    "CreatedTime": "2019-12-31T16:48:49Z",
                    "ResourceSet": [
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-hbhcbwci",
                            "AddressIp": "134.175.210.185"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-bksqvcue",
                            "AddressIp": "193.112.158.4"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-rlwrl9zg",
                            "AddressIp": "193.112.128.149"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-0a0z6e86",
                            "AddressIp": "193.112.214.231"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-loq78a2u",
                            "AddressIp": "193.112.214.146"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-9b23ko6g",
                            "AddressIp": "193.112.195.106"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-l3utrirm",
                            "AddressIp": "193.112.214.252"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-biawxrrg",
                            "AddressIp": "193.112.161.62"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-gm8dcbmw",
                            "AddressIp": "129.204.145.2"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-f3yjemhw",
                            "AddressIp": "134.175.169.60"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-oahxub36",
                            "AddressIp": "106.53.87.77"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-ej9oasck",
                            "AddressIp": "193.112.186.94"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-iivgnxr6",
                            "AddressIp": "106.52.155.79"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-9pva2ne6",
                            "AddressIp": "106.52.167.45"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-fqexkiku",
                            "AddressIp": "129.204.251.201"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-dorh1ejy",
                            "AddressIp": "106.55.92.150"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-pdxzxuzs",
                            "AddressIp": "42.194.204.43"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-26tl14zo",
                            "AddressIp": "106.52.248.58"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-1n624fs0",
                            "AddressIp": "106.55.63.197"
                        },
                        {
                            "ResourceType": "Address",
                            "ResourceId": "eip-j4s0mcug",
                            "AddressIp": "106.55.92.154"
                        }
                    ],
                    "Bandwidth": 500
                }
            ],
            "RequestId": "e0ee5afd-a684-4a4c-9fff-ef5d626aed46"
        }
    }

    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
    InvalidParameter.InvalidFilter The filter rule is invalid.
    InvalidParameterValue The parameter value is invalid.
    InvalidParameterValue.BandwidthPackageIdMalformed Incorrect bandwidth package ID.
    InvalidParameterValue.InvalidBandwidthPackageChargeType Invalid billing mode of bandwidth package
    UnsupportedOperation Unsupported operation.
    本页内容是否解决了您的问题?
    您也可以 联系销售 提交工单 以寻求帮助。

    文档反馈