All Downloads are FREE. Search and download functionalities are using the official Maven repository.

brooklyn.storage.softlayer.slapi.sh Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
#!/bin/sh
APIUSER='shwetas'
APIKEY='12345'
APIENDPOINT='api.softlayer.com/rest/v3'

# 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 -s --max-time 40 -H 'Accept: application/json' https://$APIUSER:$APIKEY@$APIENDPOINT/SoftLayer_$ARGS | python -m json.tool




© 2015 - 2024 Weber Informatics LLC | Privacy Policy