This page describes how to create a customer tenant under a reseller in the cloud broker.
To create a scope in the API, get public cloud regions and datacenters (as required)
Tip API:
- Create the scope for the customer
- Go to Users → Scopes
- Click the + button
- Enter the Name, which will be the customer name
- As the Parent scope, select the BU scope
- In the Datacenters column, select the providers or regions as required
Tip API: https://wiki.abiquo.com/api/latest/ScopesResource.html#create-a-scope
Create the customer enterprise
Tip General how-to: Create Tenants via API
At the top of the Enterprises list, click the + button to add an enterprise
On the General tab- Enter the customer name
- As the Default scope, set the customer scope
- For the customer headquarters, select Key node
Tip API: https://wiki.abiquo.com/api/latest/EnterprisesResource.html#create-an-enterprise
On the Datacenters tab, drag and drop providers. For example, Amazon. Select and edit providers (or regions) and datacenters to set the default VDC role for each provider for the enterprise.
Tip This is a separate request in the API. For each region or datacenter, create a datacenter limit.
API: https://wiki.abiquo.com/api/latest/EnterpriseLimitsByDatacentersResource.html#create-a-datacenter-limit- On the Properties tab, enter the appropriate properties for the customer type as described in the following tables
For each property, enter a Key and Value, and click Add
Cloud provider reseller
Property key Example value Used by Provider Notes OfferDurableID CSP_ID_4caba317 Billing dashboard Azure Must match the CSP tenant key value in the billing script configuration file CSP_discount 0.15 Currency USD Locale en-US RegionInfo US billing_bucket reseller_4a7a3850 Billing dashboard Amazon Must match the reseller tenant key value in the billing script configuration file azurecompute-arm_discount 0.2 Price list synchronization Azure The value returned by the provider already has the discount applied amazon_discount 0 Price list synchronization Amazon Customer of CSPThe customer must have their own compute credentials
Property key Example value Used by Provider Notes CSP_PriceFactor 1 Billing dashboard Azure AWS_PriceFactor 1 Billing dashboard Amazon Account_id X123456789ABC Reseller azurecompute-arm_price_factor 1.25 Price list synchronization Azure amazon_price_factor
1.17 Price list synchronization Amazon Standard customer
Property key Example value Used by Provider Notes OfferDurableID MS-AZR-0003P Billing dashboard Azure Currency USD Locale en-US RegionInfo US billing_bucket programmaticbilling Billing dashboard Amazon
Click Save
Tip This is a separate request in the API. When you update properties you will overwrite any existing properties
API: https://wiki.abiquo.com/api/latest/EnterprisesResource.html#update-enterprise-properties - Add the customer enterprise to the customer scope
- Go to Users → Scopes --> select the scope
- Click the pencil button to edit
Select the customer enterprise in the Enterprises list
Tip API: https://wiki.abiquo.com/api/latest/ScopesResource.html#update-a-scope
Add a basic link to the scope with a "rel" value of "ENTERPRISE".
- Create a pricing template
- Go to Pricing → Pricing models
Click + and enter details
Tip API: https://wiki.abiquo.com/api/latest/PricingTemplatesResource.html#create-a-pricing-template
- Go to Pricing → Pricing models
- API step Get the enterprise
- Assign the pricing model to the enterprise.
- Go to Pricing → Enterprise associations
- Select the pricing model
- Find the enterprise in the list and select the pricing model from the pull-down list beside the enterprise name
Tip API: https://wiki.abiquo.com/api/latest/EnterprisesResource.html#upate-an-enterprise
Update the enterprise to add a link to the pricing model with a "rel" value of "pricingtemplate". - Create a customer administrator user
- Go to Users → Select enterprise → Users
- Click the + button to add a user
(Note the screenshot does not show the enterprise filter) - On the General tab, select the following values
- Role: CUSTOMER_ADMIN
- Scope: Customer scope (enterprise scope)
Tip API: https://wiki.abiquo.com/api/latest/UsersResource.html#create-a-user-in-an-enterprise
...