Skip to content

Instantly share code, notes, and snippets.

@ollyg
Last active April 27, 2023 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ollyg/af55f3c3b2eecc2d2114e1d1a3af78e3 to your computer and use it in GitHub Desktop.
Save ollyg/af55f3c3b2eecc2d2114e1d1a3af78e3 to your computer and use it in GitHub Desktop.
PUT http://localhost:5000/api/v1/object/device/192.0.2.1/nodes
# GET/DELETE methods take query string params to filter:
# device, port, action, status, username, userip, backend
# list of jobs in the queue
# accepts LIMIT option
GET http://localhost:5000/api/v1/queue/jobs
# submit one or more new jobs
POST http://localhost:5000/api/v1/queue/jobs
# empty the queue and skiplist hints
DELETE http://localhost:5000/api/v1/queue/jobs
# remove jobs for a device and clear skiplist hint
DELETE http://localhost:5000/api/v1/object/device/192.0.2.1/jobs
# get the names of backend running
GET http://localhost:5000/api/v1/queue/backends
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment