Create log

Initiates the creation of a library service log or drive service log.

It can take 20 minutes or longer to create a library service log. Progress can be monitored with the GET /v1/logs or GET /v1/tasks command. Log creation is complete when the state attribute changes from inProgress to complete.

The creation of a drive service log is almost immediate and thus is not tracked via a task.

Request syntax

POST /v1/logs {"location": <location>}
Initiates the creation of a log. This immediately returns the file name of the log.

Request body parameters

location (string, optional)

The location of the resource to take logs for. Values include library which exports a library service log or a drive location that exports the drive service log for that drive. This defaults to library.


> POST /v1/logs
HTTP/1.1 201 Created
Location: /v1/logs/
Content-Type: application/json
Content-Length: 51 

{"filename": ""}