Skip to content

Instantly share code, notes, and snippets.

@infamousjoeg
Last active May 28, 2020 13:42
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 infamousjoeg/60f8e46149ad550b3240f0d48e974404 to your computer and use it in GitHub Desktop.
Save infamousjoeg/60f8e46149ad550b3240f0d48e974404 to your computer and use it in GitHub Desktop.
AIM CCP REST - Bash Example
#!/bin/bash
BASEURL="https://pvwa.cyberark.local"
APPID="RESTExamples"
SAFE="T-APP-CYBR-RESTAPI"
FOLDER="Root"
OBJECTNAME="Database-MicrosoftSQLServer-sql01.cyberark.local-Svc_BambooHR"
PASSWORD = wget --quiet \
--method GET \
--header 'content-type: application/json' \
--header 'cache-control: no-cache' \
'$BASEURL/AIMWebService/api/Accounts?AppID=$APPID&Safe=$SAFE&Folder=$FOLDER&Object=$OBJECTNAME'
echo "The password is: ${PASSWORD}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment