Last modified October 31, 2024

getLog

This function prints the objects data given its Log ID.
Parameters
Parameter name Type Description Possible Values Example
_id String REQUIRED The Log ID.   _id=5f890a19e55cf262863522f2
content Boolean Flag to print contents of requested log 1/0 content=1

Example Call JETAPI

jetbackup5api -F getLog -D "_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:
  _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

Example Call HTTP

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