BLB Charge Shift - Cancel Prepay to Postpay
Updated at:2025-10-16
Cancel Postpay to Prepay API
Description
When converting from prepay to postpay, the prepay instance will not switch to postpay until its expiration. During this time, resizing and other order-related operations are not allowed for the instance. This API can be used to cancel the prepay-to-postpay conversion.
Request structure
Text
1POST /v{version}/blb/{blbId}/charge?action=CANCEL_TO_POSTPAY&clientToken={clientToken}
2Host: blb.bj.baidubce.com
3Authorization: authorization string
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 "CANCEL_TO_POSTPAY" |
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
None
Request example
Text
1POST /v1/blb/lb-6x7atqxl/charge?action=CANCEL_TO_POSTPAY&clientToken=0fc2497e-6216-4702-a841-e5f2f6e366ce
2Host: blb.bj.baidubce.com
3Authorization:bce-auth-v1/a43eea003308400587496785f7f5d9ee/2022-04-28T11:06:00Z/3600/host;x-bce-date/25ec3d4baba54ad7397cb31c96cb5e364088ff79f9b853ffb8dc6c11ebcdcf16
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
