List of archive fragments
List of archive fragments
GET /api/admin/v1/downloads |
Method parameters
string
from, starting date from which the archive will be generated
string
to, ending date until which the archive will be generated
int
per_page, number of items per page for pagination. Default is 25
int
page, page number for pagination
string
search, search is performed based on the server name and IP address
200 |
Successful response
JSON
|
401 |
Authorization token is not provided or is invalid. Obtaining a token |
cURL
BASH
curl -k --request POST \
--url 'https://your-domain/api/admin/v1/downloads' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"from": "string",
"to": "string",
"per_page": 0,
"page": 0,
"search": "string"
}'
PHP
PHP
$data = array (
'from' => 'string',
'to' => 'string',
'per_page' => 0,
'page' => 0,
'search' => 'string',
);
$context = stream_context_create([
'ssl'=>['verify_peer' => false],
'http' => [
'method' => 'GET',
'header' => "Content-Type: application/json\r
Accept: application/json",
'content'=>json_encode($data)
]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/downloads', false, $context);