getBillingUsage
CODE
#!/bin/bash
#
# This script is an "out of the box" script that goes through
# Login and GET /billing-usage with the authentication
# token from Login
#
source apiHostInfo
eval $(cat loginCredentials)
source helpers
login
START_DATE=yyyy-mm-dd
END_DATE=yyyy-mm-dd
echo "* GET /billing-usage for date range $START_DATE - $END_DATE from $EXPORT_ENGINE"
EXPORT_RESPONSE=$(curl $SSL_CERT -X GET -H ''"$AUTH_HEADER"'' -H 'Accept: application/json' $MASKING_ENGINE/billing-usage?start_date=$START_DATE\&end_date=$END_DATE) || die "curl failed with exit code $?"
echo $EXPORT_RESPONSE