AIM CCP REST - Korn Shell Example
#!/bin/ksh
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' \
--output-document \
- '$BASEURL/AIMWebService/api/Accounts?AppID=$APPID&Safe=$SAFE&Folder=$FOLDER&Object=$OBJECTNAME'
print "The password is: $PASSWORD"