Last modified October 31, 2024

listLogItems

This function lists all Log Item Objects.
Parameters
Parameter name Type Description Possible Values Example
log_id String REQUIRED The Log ID you would like to list items from.   log_id=5f890a19e55cf262863522f2
Returns
Parameter name Type Description Possible Values Example
items List [] List of all Log Item Objects.    
total Integer Total number of Log Item Objects.    

Example Call JETAPI

jetbackup5api -F listLogItems -D "log_id={$LOG_ID}"
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: items: 0: _id: 65091b55d49adbd1660f06e9 owner: 6503eba4c6477f48c309376f owner_name: example created: 2023-09-19T03:53:57+00:00 started: 2023-09-19T03:53:58+00:00 ended: 2023-09-19T03:54:06+00:00 execution_time: 8 type: 1 group_id: 65091b55d49adbd1660f06e8 priority: 50 status: 100 message: Backup completed successfully progress_id: 65091b55d49adbd1660f06eb progress: _id: 65091b55d49adbd1660f06eb group_id: 65091b55d49adbd1660f06e8 item_id: 65091b55d49adbd1660f06e9 name: total: 11 completed: 11 subtotal: 0 subcompleted: 0 name_files: Local total_files: 0 completed_files: 0 percentage: 100 percentage_sub: 0 percentage_files: 0 file: /usr/local/jetapps/var/log/jetbackup5/queue/1_65091b55d49adbd1660f06e8/65091b55d49adbd1660f06e9.log data: _id: 65091af275e69fa2b808c0e2 manually: 1 snapshot: account: example account_nickname: example destinations: 0: 6508e8f1bd155427ab017ca2 1: _id: 65091b55d49adbd1660f06ea owner: 65091b2a3f17831bb00f06e1 owner_name: example2 created: 2023-09-19T03:53:57+00:00 started: 2023-09-19T03:53:58+00:00 ended: 2023-09-19T03:54:06+00:00 execution_time: 8 type: 1 group_id: 65091b55d49adbd1660f06e8 priority: 50 status: 100 message: Backup completed successfully progress_id: 65091b55d49adbd1660f06ec progress: _id: 65091b55d49adbd1660f06ec group_id: 65091b55d49adbd1660f06e8 item_id: 65091b55d49adbd1660f06ea name: total: 11 completed: 11 subtotal: 0 subcompleted: 0 name_files: Local total_files: 0 completed_files: 0 percentage: 100 percentage_sub: 0 percentage_files: 0 file: /usr/local/jetapps/var/log/jetbackup5/queue/1_65091b55d49adbd1660f06e8/65091b55d49adbd1660f06ea.log data: _id: 65091af275e69fa2b808c0e2 manually: 1 snapshot: account: example2 account_nickname: example2 destinations: 0: 6508e8f1bd155427ab017ca2 total: 2

Example Call HTTP

https://hostname.example.com:2087/cpsess##########/cgi/addons/jetbackup5/api.cgi?function=listLogItems&log_id={$LOG_ID}