Last active
May 28, 2020 13:42
-
-
Save infamousjoeg/60f8e46149ad550b3240f0d48e974404 to your computer and use it in GitHub Desktop.
AIM CCP REST - Bash Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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