brooklyn.storage.softlayer.slapi_get_access_creds.sh Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brooklyn-clocker-docker Show documentation
Show all versions of brooklyn-clocker-docker Show documentation
Clocker Brooklyn entities and locations for Docker integration.
#!/bin/sh
APIUSER='shwetas'
APIKEY='1234'
APIENDPOINT='api.softlayer.com/rest/v3'
STORAGEID=$1
# escape brackets from bash for object masks
ARGS=$(echo "$@" | sed -e "s/\[/\\\[/g" -e "s/\]/\\\]/g")
# When passing values with POST, the json must look like the following:
# '{"parameters": [THINGS]}'
curl -g "https://$APIUSER:$APIKEY@$APIENDPOINT/SoftLayer_Network_Storage_Iscsi/$STORAGEID/getObject.xml?objectMask=mask[storageGroups[allowedHosts[credential]]]"
curl -g "https://$APIUSER:$APIKEY@$APIENDPOINT/SoftLayer_Network_Storage/$STORAGEID/getNetworkConnectionDetails"