JOC API

Version 2.9.0

Download RAML
JOC API
/agent/log/download
POST

Provides Agent log as download


Parameters in the POST body schema

Name Type Description Example Default
controllerId required, string Controller ID myController
agentId required, string Agent ID
subagentId optional, string Subagent ID of a Subagent
This parameter is required for an Agent cluster.
level required, string log level
Possible values:
  • DEBUG
  • INFO
  • WARN
DEBUG INFO
dateFrom required, string The value has multiple formats
  • Filters items starting from a date.
  • an ISO 8601 date format with the time offset and milliseconds being optional, e.g.
    • YYYY-MM-DDThh:mm:ss[.s][Z (Z means +00)]
    • YYYY-MM-DDThh:mm:ss[.s][+01:00]
    • YYYY-MM-DDThh:mm:ss[.s][+0100]
    • YYYY-MM-DDThh:mm:ss[.s][+01]
  • a format for a period relative to the current time, e.g. 6h, 12h, 1d, 1w that specifies the quantity followed by a qualifier:
    • s (seconds)
    • m (minutes)
    • h (hours)
    • d (days)
    • w (weeks)
    • M (months)
    • y (years)
  • a time offset is optional (e.g. 2d+02:00)
    • it can also be specified with the parameter timeZone
    • if timeZone is undefined then UTC is used
  • the value 0 indicates the current time
1d
dateTo optional, string The value has multiple formats similiar to the dateFrom parameter
  • Filters items ending before a date.
0
timeZone optional, string
  • If this parameter is set then it beats the time offset in dateFrom and dateTo
  • See the list for available time zones.
Europe/Berlin
numOfLines optional, integer Limits the number of log lines 2500