Background Information
If you want to know the basics of running API queries via curl in Self-Service Manager, follow the steps below.
Answer:
You can Authenticate first following the query below. You can substitute the correct value for your RightScale Credentials such as the Email, Password, Account ID and the shard where your account belongs (either US-3 or US-4)
curl -vsi –S -H X_API_VERSION:1.5 -c cookie -X POST -d email='me@rightscale.com' -d password='my_password' -d account_href=/api/accounts/Account_ID https://us-3.rightscale.com/api/session
After you are authenticated, you may now run a simple API query to get started. To view all your CloudApps, you can run the following query.
curl -v -G https://selfservice-3.rightscale.com/api/manager/projects/7911/executions -H "X-Api-Version:1.0" -b cookie
To view a specific CloudApp, you can run the following query.
curl -v -G https://selfservice-3.rightscale.com/api/manager/projects/7900/executions/57035ebf1e0dfb00670b1111 -H "X-Api-Version:1.0" -b cookie