Skip to content

API design: Upcoming activities: Run scripts on online/offline hosts#15931

Merged
noahtalerman merged 22 commits intomainfrom
api-design-upcoming-scripts
Feb 5, 2024
Merged

API design: Upcoming activities: Run scripts on online/offline hosts#15931
noahtalerman merged 22 commits intomainfrom
api-design-upcoming-scripts

Conversation

@noahtalerman
Copy link
Copy Markdown
Member

@noahtalerman noahtalerman commented Jan 5, 2024

API changes for the "Upcoming activities: Run scripts on online/offline hosts" (#15529) story

Changes:

  • Script endpoints are available in Fleet Free and Fleet Premium
  • Update POST /scripts/run to add a script to the bottom of the upcoming activities (scripts are the only activity for now)
    • The new script will run after other upcoming activities
    • Failure of one activity won't cancel other activities
    • Remove validation for host is online
    • Remove validation for host is already running a script
    • Add validation for host already has the saved script as an upcoming activity. Can't add the same saved script to the queue
  • Update POST /scripts/run/sync
    • Add validation and error if the target host has any upcoming (queued) activities
  • Add GET /hosts/:id/activities to show past activity feed
  • Add GET /hosts/:id/activities/upcoming to show upcoming activity feed
  • Move docs for GET /hosts/:id/scripts to a new "Get host's scripts section" under "Hosts"

Comment thread docs/REST API/rest-api.md Outdated
Comment thread docs/REST API/rest-api.md Outdated
Comment thread docs/REST API/rest-api.md Outdated
Comment thread docs/REST API/rest-api.md Outdated
Comment thread docs/REST API/rest-api.md Outdated
Comment thread docs/REST API/rest-api.md Outdated
Comment thread docs/REST API/rest-api.md
Comment thread docs/REST API/rest-api.md Outdated
Comment thread docs/REST API/rest-api.md Outdated
Comment thread docs/REST API/rest-api.md
noahtalerman and others added 6 commits January 22, 2024 15:00
Co-authored-by: Martin Angers <martin.n.angers@gmail.com>
Co-authored-by: Martin Angers <martin.n.angers@gmail.com>
Co-authored-by: Martin Angers <martin.n.angers@gmail.com>
…t into api-design-upcoming-scripts

Merge in main.
@noahtalerman noahtalerman marked this pull request as ready for review January 29, 2024 18:07
@noahtalerman
Copy link
Copy Markdown
Member Author

Marking this PR as ready for review because we are about to ship the "Upcoming activities: Run scripts on online/offline hosts" (#15529) story

@noahtalerman noahtalerman merged commit 7fdda53 into main Feb 5, 2024
@noahtalerman noahtalerman deleted the api-design-upcoming-scripts branch February 5, 2024 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants