Skip to content

API: Call to view script results #13306

@georgekarrv

Description

@georgekarrv

GET /api/v1/fleet/scripts/results/{uuid}
example response

{
    "host_id": 1227,
    "execution_id": "e797d6c6-3aae-11ee-be56-0242ac120002",    
    "script_contents": "...",
    "exit_code": null | 0,
    "output": "...",
    "message": "...",
    "runtime": 14,
    "host_timeout": false,
    "host_name": "..."
}
  • If the script is still running, exit_code is set to null and host_timeout is set to false.
  • If we haven't heard back from the host (1m timeout error), exit_code is set to null and host_timeout is set to true.
  • If scripts are disabled for the host then exit_code is -2 and host_timeout is set to false.

See the linked Figma here for the message in each of these cases.

Metadata

Metadata

Assignees

Labels

#g-mdmMDM product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.~sub-taskA technical sub-task that is part of a story. (Not QA'd. Not estimated.)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions