Resuming Billing for BCC in Recycle Bin
Updated at:2025-10-20
This API is used to restore pay-as-you-go (postpaid) BCC instances from the recycle bin and resume their billing.
Request structure
Plain Text
1POST /v{version}/instance/recovery?clientToken={clientToken} HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: authorization
4{
5 "instanceIds": [
6 {
7 "instanceId": "instanceId"
8 },
9 {
10 "instanceId": "instanceId"
11 }
12 ]
13}
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. |
| clientToken | String | Yes | Query | Idempotence Token, which is an ASCII string with a length not exceeding 64 bits. For details, see the [Idempotence ](BCC/API Reference/General Description.md#Idempotence). |
| instanceIds | List | Yes | RequestBody | Provides a list of instance IDs, supporting up to 100 IDs at once. |
Response headers
There are no special headers required beyond the common headers.
Response parameters
Request example
Plain Text
1POST http://bcc.bj.baidubce.com/v2/instance/recovery?clientToken=3A8d84403d-a94b-40ce-9d6a-f6225dd26676
2Host: bcc.bj.baidubce.com
3Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
4{
5 instanceIds: [
6 {
7 "instanceId": "i-v7f9jfdu"
8 },
9 {
10 "instanceId": "i-9tv4qak"
11 }
12 ]
13}
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3Date: Wed, 03 Dec 2014 06:42:19 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
