LianaAutomation REST API documentation

search/request

POST
https://rest.automation.lianacloud.com/api/v1
/database/search/request

Make a database search request

search/request › Request Body

channels
​string[]

Channels to search from

verbs
​string[]

Event types to search for

from
​string · date-time

Event is newer than

to
​string · date-time

Event is older than

include_data
​boolean

Include event data in response

limit
​integer

Limit event count in result. Maximum is 10000

Default: 10000
offset
​integer

Offset for traversing large event counts

​object[]

Persons to search for

search/request › Responses

OK

handle
​string

The handle returned as response from the initial request

Example: 1234

search/ready

POST
https://rest.automation.lianacloud.com/api/v1
/database/search/ready

Check if a requested database search is completed. If the job failed, the response also has error: stop polling and make a new request. Results and errors are kept for about an hour. After that, and for an unknown handle, ready is false without error, so set an overall deadline for polling.

search/ready › Request Body

handle
​string

The handle returned as response from the initial request

Example: 1234

search/ready › Responses

OK

ready
​boolean
error
​string

Why the job failed. Only database searches, deletes and exports return it. A failed automation report is ready, and its result has the error.


search/result

POST
https://rest.automation.lianacloud.com/api/v1
/database/search/result

Fetch search results of a finished request

search/result › Request Body

handle
​string

The handle returned as response from the initial request

Example: 1234

search/result › Responses

OK

​object[]
at
​string · date-time
verb
​string
channel
​integer
​object
​object

delete/request

POST
https://rest.automation.lianacloud.com/api/v1
/database/delete/request

Request data to be deleted from database.

delete/request › Request Body

channels
​string[]

Channels to delete from

​object[]

Persons to delete

delete/request › Responses

OK

handle
​string

The handle returned as response from the initial request

Example: 1234

delete/ready

POST
https://rest.automation.lianacloud.com/api/v1
/database/delete/ready

Check if a delete request is finished. If the job failed, the response also has error: stop polling and make a new request. Results and errors are kept for about an hour. After that, and for an unknown handle, ready is false without error, so set an overall deadline for polling.

delete/ready › Request Body

handle
​string

The handle returned as response from the initial request

Example: 1234

delete/ready › Responses

OK

ready
​boolean
error
​string

Why the job failed. Only database searches, deletes and exports return it. A failed automation report is ready, and its result has the error.


delete/result

POST
https://rest.automation.lianacloud.com/api/v1
/database/delete/result

Returns LianaAutomation system id of the deleted items.

delete/result › Request Body

handle
​string

The handle returned as response from the initial request

Example: 1234

delete/result › Responses

OK

deleted
​integer[]