BLB - Resize
Updated at:2025-10-16
Resize API
Description
The Resize API allows you to adjust the performance specifications of LB instances.
- Prepaid instances support configuration upgrades.
- Postpaid instances can be resized freely. Only the performance specifications of postpaid instances in pay-as-you-go mode can be adjusted to unlimited speed ("unlimited").
Request structure
Text
1POST /v{version}/blb/{blbId}?action=RESIZE&clientToken={clientToken}
2Host: blb.bj.baidubce.com
3Authorization: authorization string
4{
5 "performanceLevel":"medium1"
6}
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Types | Required or not | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number, current value is 1.| |
| blbId | String | Yes | URL parameter | LoadBalancer identifier |
| clientToken | String | Yes | Query | Idempotency Token, with length no more than 64 characters. |
| action | String | Yes | Query | Current value "RESIZE" |
| performanceLevel | String | No | Request Body parameters | Performance specifications are categorized as follows: "small1" Standard 1, "small2" Standard 2, "medium1" Enhance 1, "medium2" Enhance 2, "large1" Extra Large 1, "large2" Extra Large 2, and "large3" Extra Large 3. Only postpaid instances in pay-as-you-go mode can be resized to unlimited speed ("unlimited"). |
Response Status Code
Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](BLB/API Reference/Error code.md)
Response headers
No special headers beyond common headers.
Response parameters
| Parameter name | Types | Description |
|---|---|---|
| orderId | String | Resizing order IDs |
Request example
Text
1POST /v1/blb/lb-6x7atqxl/charge?action=RESIZE&clientToken=0fc2497e-6216-4702-a841-e5f2f6e366ce
2Host: blb.bj.baidubce.com
3Authorization: authorization string
4{
5 "performanceLevel":"medium1"
6}
Response example
Text
1HTTP/1.1 200 OK
2x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3Date: Fri, 16 Aug 2024 06:29:48 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
6{
7 "orderId": "05182695159a4924a473d1c21be921c7"
8}
