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 command
Read Only:true
-
changed:
boolean
Title:
Changed
Read Only:true
-
counter:
integer
Title:
Counter
Read Only:true
Minimum Value:0
-
created:
string
Title:
Created
Read Only:true
-
end_line:
integer
Title:
End line
Read Only:true
Minimum Value:0
-
event(required):
string
Title:
Event
Allowed 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 display
Read Only:true
Minimum Length:1
-
failed:
boolean
Title:
Failed
Read Only:true
-
host:
integer
Title:
Host
Read Only:true
-
host_name:
string
Title:
Host name
Read Only:true
Minimum Length:1
-
id:
integer
Title:
ID
Read Only:true
-
modified:
string
Title:
Modified
Read Only:true
- related: string
-
start_line:
integer
Title:
Start line
Read Only:true
Minimum Value:0
-
stdout:
string
Title:
Stdout
Read Only:true
Minimum Length:1
-
summary_fields:
string
Title:
Summary fields
Read Only:true
-
type:
string
Title:
Type
Read Only:true
-
url:
string
Title:
Url
Read Only:true
-
uuid:
string
Title:
Uuid
Read Only:true
Minimum Length:1
-
verbosity:
integer
Title:
Verbosity
Read Only:true
Minimum Value:0
Nested Schema : Event data
Type:
object
Title:
Event data