Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API endpoint to re-run an existing script on a single host #9998

Open
1 task
lukeheath opened this issue Feb 21, 2023 · 1 comment
Open
1 task

Add API endpoint to re-run an existing script on a single host #9998

lukeheath opened this issue Feb 21, 2023 · 1 comment
Labels
~backend Backend-related issue. #g-mdm MDM product group ~sub-task A technical sub-task that is part of a story. (Not QA'd. Not estimated.)

Comments

@lukeheath
Copy link
Member

lukeheath commented Feb 21, 2023

Tasks

  • Create POST endpoint to run a script on a single host.
  1. POST /mdm/apple/scripts/{id}/run
  • Fleet Premium feature
  • Required host_id query parameter accepts a single integer.
  • If the host doesn't belong to the same team (or no team) as the script, return this error: Error: The targeted host isn't assigned to the same team as the script. Please provide a host id that is assigned to the same team.

Parameters

Name Type In Description
host_id integer query The host id to run the script on.

Example response

{
    "script_id": 1337
    "team_id": 0,
    "name": "Example script"
}
@lukeheath lukeheath added the :product Product Design department (shows up on 🦢 Drafting board) label Feb 21, 2023
@lukeheath lukeheath changed the title Add API endpoint to re-run an existing script Add API endpoint to re-run an existing script on a single host Feb 21, 2023
@lukeheath lukeheath added #g-mdm MDM product group ~backend Backend-related issue. ~sub-task A technical sub-task that is part of a story. (Not QA'd. Not estimated.) labels Feb 21, 2023
@lukeheath
Copy link
Member Author

Hey team! Please add your planning poker estimate with Zenhub @gillespi314 @mna @roperzh

@noahtalerman noahtalerman removed the :product Product Design department (shows up on 🦢 Drafting board) label Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
~backend Backend-related issue. #g-mdm MDM product group ~sub-task A technical sub-task that is part of a story. (Not QA'd. Not estimated.)
Development

No branches or pull requests

2 participants