**This document is a part of the Cloud Control Setup Glossary. Targeting Public Cloud providers is available with the Cloud Native License. Please reach out to email@example.com for more information.**
In this document we'll cover how to setup a budget for your cloud users in Turbonomic. This ensures Turbonomic takes into account your cloud cost constraints in its analysis. A budget is the amount of money the user can spend per hour ($/hour).
How to Define a Budget
1) First, we'll need to figure out the UUIDs for the public cloud targets you would like in your business account. Run the following API call:
3) Locate your UUIDs of your cloud targets. If you have a variety of targets, locate the entries where creationClassName matches:
Here's an example of the entries you are looking for.
4) Record the UUID(s) for your Cloud target(s)
5) We'll now use the Turbonomic API to create the business account, define which targets should be included, and define the budget.
If you have just one Cloud target, you can run the following command in an SSH session on the Turbonomic instance or terminal. Where NAME is the name of your business account, BUDGET is the $ amount per hour the account can spend, CLOUD_UUID is the UUID of the Cloud target (determined in step 3), USERNAME is the Turbonomic GUI username, PASSWORD is the Turbonomic GUI password.
curl -v -X POST -d "name=NAME&budget=BUDGET&targets=CLOUD_UUID" http://USERNAME:PASSWORD@localhost/vmturbo/api/accounts
Example for an environment with just one Cloud target (my AWS target):
curl -v -X POST -d "name=Development&budget=20&targets=_bDUEgJ6yEea4QPy2Z-6LNg" http://MyUsername:MyPassword@localhost/vmturbo/api/accounts
If you have multiple Cloud targets, you can run the following command in an SSH session on the Turbonomic instance. Where NAME is the name of your business account, BUDGET is the $ amount per hour the account can spend, and CLOUD_UUID is the UUID of the Cloud target (determined in step 3).
curl -v -X POST -d "name=NAME&budget=BUDGET&targets=CLOUD_UUID&targets=CLOUD_UUID&targets=CLOUD_UUID" http://USERNAME:PASSWORD@localhost/vmturbo/api/accounts
Example of multi-target post (referencing my AWS, Azure, and Softlayer targets)
curl -v -X POST -d "name=AllClouds&budget=50&targets=_bDUEgJ6yEea4QPy2Z-6LNg&targets=_lSH4cJ0eEeaw3tUhd5DH2g&targets=_mj9FAJ0kEeaw3tUhd5DH2g" http://MyUsername:MyPassword@localhost/vmturbo/api/accounts
Now, Turbonomic will display cost when making placement and sizing decisions.
Here are some useful API calls for managing Business Accounts.
Viewing active business accounts:
View details of specific business account
Deleting an existing business account: