Billing Related Interfaces
Last Updated:2020-07-20
Renew the Instance
To renew a specified prepaid instance by extending the expiration of that instance.
Notes
- The postpaid instance cannot be renewed
- The instance in the middle of a configuration or creation cannot be renewed.
- The instance that has been expired and changed to the postpaid mode cannot be renewed.
Request Structure
PUT /v{version}/instance/{dbInstanceId}?renew&clientToken={clientToken} HTTP/1.1
HOST: mongodb.bj.baidubce.com
Authorization: authorization string
{
"billing":{
"reservation": {
"reservationLength": 1
}
}
}
Request Header Field
There are no other special header fields except the common header field.
Request Parameter
Parameter Name | Type | Required | Parameter Position | Description |
---|---|---|---|---|
version | string | Yes | URL Parameter | API Version Number |
dbInstanceId | string | Yes | URL Parameter | Specified instacne Id |
clientToken | string | Yes | Query parameter | Idempotent Token is an ASCII character string with a length not exceeding 64 bits. |
billing | Billing | Yes | RequestBody parameter | Renewal information (only renewal time is offered) |
Return Header Field
There are no other special header fields except the common header field.
Return Parameter
No Special Return Parameters
Request examples
PUT /v{version}/instance/mgo-sjfie3i3n?renew&clientToken=be31b98c-5e41-4838-9830-9be700de5a20 HTTP/1.1
HOST: mongodb.bj.baidubce.com
Authorization: bce-auth-v1/rdsak/2016-07-03T06:13:13Z/1800/x-bce-date/{signature}
{
"billing":{
"reservation": {
"reservationLength": 1
}
}
}
Return Example
HTTP/1.1 200 OK
x-bce-request-id: 7869616F-7A68-6977-656E-406261696475
Content-Type: application/json
Content-Length: 0