Skip to content

Instantly share code, notes, and snippets.

@random-robbie
Created May 18, 2020 13:12
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 random-robbie/7cc82983e35f5ec39b4b533dad7f4a99 to your computer and use it in GitHub Desktop.
Save random-robbie/7cc82983e35f5ec39b4b533dad7f4a99 to your computer and use it in GitHub Desktop.
revoke binaryedge jobs via api using a text file of job id's
#!/bin/bash
for job in `cat $1`; do
curl -XPOST https://api.binaryedge.io/v1/tasks/$job/revoke -H 'X-Token:YOURBINARYEDGETOKEN'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment