Last modified October 31, 2024
listLogs
This function lists all Log Objects.
Parameter name | Type | Description | Possible Values | Example |
---|---|---|---|---|
logs | List [] | List of all Log Objects. | ||
sort | List[] | The value you want to sort by. |
|
|
find | List[] | Find specific objects you want to filter. |
|
|
skip | Integer | Skip the specified number of records returned. | skip=100 |
|
total | Integer | Total number of Log Objects. |
Example Call JETAPI
jetbackup5api -F listLogs -D "find[type]=1&skip=100&find[info.ID]={$BACKUP_JOB_ID}&sort[start_time]=1"
success: 1
message:
system:
version: 5.3.3
version_panel: 5.3.3
tier: EDGE
type: cPanel
retry_ms: 0
disableui:
dr:
agreement_panel:
agreement:
licenseIssue:
data:
logs:
0:
_id: 6508e8f1bd155427ab017ca5
start_time: 2023-09-19T00:18:57+00:00
end_time: 2023-09-19T00:18:58+00:00
execution_time: 1
actual_time: 0
info:
Destination: Local
status: 1
type: 5
file: /usr/local/jetapps/var/log/jetbackup5/queue/8_6508e8f1d49adbd1660f06d6.log
items: /usr/local/jetapps/var/log/jetbackup5/queue/8_6508e8f1d49adbd1660f06d6.items
1:
_id: 6508e9aee2238a334103e472
start_time: 2023-09-19T00:22:06+00:00
end_time: 2023-09-19T00:22:22+00:00
execution_time: 16
actual_time: 16
info:
Account: example
Priority: 50
status: 1
type: 2
file: /usr/local/jetapps/var/log/jetbackup5/queue/4_6508e9aed49adbd1660f06d9.log
items: /usr/local/jetapps/var/log/jetbackup5/queue/4_6508e9aed49adbd1660f06d9.items
2:
_id: 6508f21e2f624c95fe0f1c72
start_time: 2023-09-19T00:58:06+00:00
end_time: 2023-09-19T00:58:22+00:00
execution_time: 16
actual_time: 16
info:
Account: example
Priority: 50
status: 2
type: 2
file: /usr/local/jetapps/var/log/jetbackup5/queue/4_6508f21ed49adbd1660f06dc.log
items: /usr/local/jetapps/var/log/jetbackup5/queue/4_6508f21ed49adbd1660f06dc.items
total: 3
Example Call HTTP
https://hostname.example.com:2087/cpsess##########/cgi/addons/jetbackup5/api.cgi?function=listLogs&find[type]=1&find[info.ID]={$BACKUP_JOB_ID}&sort[start_time]=1
- To view available listing parameters, please visit List Parameters.
- API List calls have a default limit of 100 items.
- Please utilize the
skip
parameter if you wish to list items more than 100 records
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.