Retrieve an Ad Hoc Command Event
get
/api/v2/ad_hoc_command_events/{id}/
Make GET request to this resource to retrieve a single ad hoc command event record containing the following fields:
id: Database ID for this ad hoc command event. (integer)type: Data type for this ad hoc command event. (choice)url: URL for this ad hoc command event. (string)related: Data structure with URLs of related resources. (object)summary_fields: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object)created: Timestamp when this ad hoc command event was created. (datetime)modified: Timestamp when this ad hoc command event was last modified. (datetime)ad_hoc_command: (id)event: (choice)runner_on_failed: Host Failedrunner_on_ok: Host OKrunner_on_unreachable: Host Unreachablerunner_on_skipped: Host Skippeddebug: Debugverbose: Verbosedeprecated: Deprecatedwarning: Warningsystem_warning: System Warningerror: Error
counter: (integer)event_display: (string)event_data: (json)failed: (boolean)changed: (boolean)uuid: (string)host: (id)host_name: (string)stdout: (string)start_line: (integer)end_line: (integer)verbosity: (integer)
Request
Supported Media Types
- application/json
Path Parameters
Back to Top
Response
Supported Media Types
- application/json
200 Response
Root Schema : AdHocCommandEvent
Type:
Show Source
object-
ad_hoc_command:
string
Title:
Ad hoc commandRead Only:true -
changed:
boolean
Title:
ChangedRead Only:true -
counter:
integer
Title:
CounterRead Only:trueMinimum Value:0 -
created:
string
Title:
CreatedRead Only:true -
end_line:
integer
Title:
End lineRead Only:trueMinimum Value:0 -
event(required):
string
Title:
EventAllowed Values:[ "runner_on_failed", "runner_on_ok", "runner_on_unreachable", "runner_on_skipped", "debug", "verbose", "deprecated", "warning", "system_warning", "error" ] -
event_data:
object Event data
Title:
Event data -
event_display:
string
Title:
Event displayRead Only:trueMinimum Length:1 -
failed:
boolean
Title:
FailedRead Only:true -
host:
integer
Title:
HostRead Only:true -
host_name:
string
Title:
Host nameRead Only:trueMinimum Length:1 -
id:
integer
Title:
IDRead Only:true -
modified:
string
Title:
ModifiedRead Only:true - related: string
-
start_line:
integer
Title:
Start lineRead Only:trueMinimum Value:0 -
stdout:
string
Title:
StdoutRead Only:trueMinimum Length:1 -
summary_fields:
string
Title:
Summary fieldsRead Only:true -
type:
string
Title:
TypeRead Only:true -
url:
string
Title:
UrlRead Only:true -
uuid:
string
Title:
UuidRead Only:trueMinimum Length:1 -
verbosity:
integer
Title:
VerbosityRead Only:trueMinimum Value:0
Nested Schema : Event data
Type:
objectTitle:
Event data