So it has been a little while since I last posted something. Recently I have been learning the openstack API in cloud environments at Rackspace. We had a customer who wanted to check the servers in an autoscaling group. This is really easy and API is not as difficult as it may sound, and it was simply by running a:
curl -X GET "X-Auth-Token: $token" https://lon.autoscale.api.rackspacecloud.com/v1.0/$ddi/groups/$uuid | python -mjson.tool
What the above command does is simply provide the header X-Auth-Token, which is the users API Key from the control panel, or an impersonation key. You can set the $token, $ddi and $uuid variables used by the command, where the $ddi is the Rackspace customer account number and $uuid is the id of the autoscaler.
All the API calls are pretty much as simple as that! Nothing too crazy hard, simples!