Open the running log
Last Updated:2021-04-13
Open the running log
Open the running log service for specified instance.
Description
- Running log service should be opened for instance in the Running status only.
Request structure
PUT /v{version}/instance/{dbInstanceId}?startLogging HTTP/1.1
HOST: mongodb.bj.baidubce.com
Authorization: authorization string
{
"type": type
}
Request header files
There is no other special header field except the common header fields.
Request parameters
Name | Type | Required or not | Position | Description |
---|---|---|---|---|
version | string | Yes | URL parameters | API version No. |
dbInstanceId | string | Yes | URL parameters | Specify the instance Id |
type | string | No | RequestBody parameters | Type of log service, default to “running”, i.e. running log |
Return header fields
There is no other special header field except the common header fields.
Return parameters
There is no special return parameters
Examples of request
PUT /v1/instance/m-qNlWTz?startLogging HTTP/1.1
HOST: mongodb.bj.baidubce.com
Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2017-11-21T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
{
"type": "running"
}
Examples of return
HTTP/1.1 200 OK
x-bce-request-id: 7869616F-7A68-6977-656E-406261696475
Content-Type: application/json
Content-Length: 0