Skip to content

Instantly share code, notes, and snippets.

@rsenden
Last active March 25, 2020 11:37
Show Gist options
  • Save rsenden/e6398d68d77e29ad95d6786ab93a2f30 to your computer and use it in GitHub Desktop.
Save rsenden/e6398d68d77e29ad95d6786ab93a2f30 to your computer and use it in GitHub Desktop.
Useful Fortify commands

SSC

Bash: Delete all project versions within id range

For example useful if you are testing some integration that automatically created application versions.

export SSC_UNIFIEDLOGINTOKEN=NTM0M2ViODAtNjM0Ni00Njg1LTg5M2UtNzI4ZTUyN2Q0NWIy
export SSC_BASEURL=http://localhost:1920/ssc
for i in {351..414}; do curl -X DELETE -H "Accept: application/json" -H "Authorization: FortifyToken $SSC_UNIFIEDLOGINTOKEN" $SSC_BASEURL/api/v1/projectVersions/$i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment