Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 23 Next »

The platform can import hardware profile prices from public cloud for use in pricing. The prices are for Linux instances and for AWS the only currency available is US dollars.

Before you begin:

  1. Check that there is a public cloud region for the provider. See Create a public cloud region.
  2. Check that the tenant has a pricing model assigned. See Create a new pricing model
    1. For Amazon regions, we recommend that you use US Dollars as the currency for the regions in the pricing model 
  3. Obtain credentials to retrieve pricing information from the provider
    1. For AWS pricing, an IAMs user must have the AWSPriceListServiceFullAccess permission. You can add the permission to the regular public cloud user account or create a separate user. See Obtain AWS credentials
    2. For Azure, see Obtain Azure ARM credentials.

      Tenant typeFormat_of_Access_ Key_ID_for Pricing_____Secret access keyNotes

      Standard account

      normal#subscription-id#app-id#tenant-id#offer-durable-id
      OR
      subscription-id#app-id#tenant-id#offer-durable-id
      Application secret keyAdd the text string "normal#" as a prefix to the pricing credentials. To facilitate upgrades, existing credentials will remain valid
      CSP account ownercsp#tenantId#accessToken#refreshTokenApplication secret keyYou MUST add the text string "csp#" as a prefix to the credentials
      Customer of CSP--Do not enter credentials because the platform will use the CSP credentials

To retrieve the hardware profile prices:

  1. Add pricing credentials for the tenant from the username menu or go to Users → edit enterprise. 
  2. Go to Credentials → Public (for combined credentials) or Pricing (for separate credentials) and enter the credentials
  3. When your tenant hierarchy contains resellers and key nodes, you may add enterprise properties to apply discounts and price factors, with the following formula:

    (provider_price / (1 - discount)) * price_factor

    The properties must use the following format:

    provider_type.to_lower_case + property_suffix

    For example:

    azurecompute-arm_discount=0.2
    azurecompute-arm_price_factor=1.25
    amazon_discount=0
    amazon_price_factor=1.17

    It is also possible to configure the suffix of these properties. See Abiquo Configuration Properties#enterprise.

    The platform will search for discount and price factor properties with the priority:

    1. Key node enterprise properties.
    2. Reseller enterprise properties.
    3. Default values that won't modify the original price (0 for discount and 1 for price factor)

    Note that CSP Accounts already return the price with the discount applied, so the plugin does not apply it again.

  4. When you save the tenant, if the pricing credentials are present, the platform will retrieve the prices. 

To display the prices:

  1. Go to Pricing → Pricing models → edit pricing model.
  2. Go to Resource Prices → select the provider 
  3. Adjust the prices as required
  4. Click Save

The platform will update the hardware profile prices from the public cloud provider every 24 hours, or at the interval set in the abiquo.properties file. See Abiquo Configuration Properties#pricing

  • No labels