tencent cloud

Application Load Balancer

AssociateBandwidthPackageWithLoadBalancer

Download
Focus Mode
Font Size
Last updated: 2026-09-28 14:17:21

1. API Description

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

Bind a Bandwidth Package to an application CLB instance.

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: AssociateBandwidthPackageWithLoadBalancer.
Version Yes String Common Params. The value used for this API: 2025-10-30.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
BandwidthPackageId Yes String Bandwidth package ID.
LoadBalancerId Yes String CLB instance ID. The format is alb- followed by 8 alphanumeric characters.
ClientToken No String Client Token, used for ensuring the idempotency of requests.

Generate a parameter value from your client to underwrite the uniqueness of the value for different requests. ClientToken supports only ASCII characters.

> If not specified, the system automatically uses the RequestId of the API request as the ClientToken ID. The RequestId of each API request may not be the same.
DryRun No Boolean Whether to only precheck this request. Values:
- true: Send a check request without binding the Bandwidth Package to the load balancing instance. Check items include whether required parameters are filled in, request format, and service limits. If the check fails, return the corresponding error. If the check passes, return the error code DryRunOperation.
- false (default value): Send a normal request. After the check is passed, return an HTTP 2xx status code and directly perform the operation.

3. Output Parameters

Parameter Name Type Description
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 Associating an instance with a Bandwidth Package

Input Example

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

{
    "LoadBalancerId": "alb-f8q2xk9m",
    "BandwidthPackageId": "bwp-q8m2x4pa"
}

Output Example

{
    "Response": {
        "RequestId": "aa1ca3f7-f928-4cb3-b6e1-a75b684225ab"
    }
}

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

There is no error code related to the API business logic. For other error codes, please see Common Error Codes.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback