PricingCredentialsListResource


Add pricing credentials


Adds a credentials for billing purposes.

POST https://example.com/api/admin/enterprises/{enterprise}/pricingcredentials

Roles : [ROLE_MANAGE_PRICING_CREDENTIALS]

Content-Type : pricingcredentials Accept : pricingcredentials

Error Codes

  • PRICING-CREDS-4 - The fields acces and keys of credentials are required
  • PRICING-CREDS-6 - hypervisortype or publiccloudregions links are required
  • PUBLIC-13 - The given credentials could not be validated. At least one public cloud region of the same provider type must be allowed for this enterprise in order to verify the credentials

Example

List pricing credentials of an enterprise


Retrieve the credentials of an enterprise, for all existing providers.

GET https://example.com/api/admin/enterprises/{enterprise}/pricingcredentials

Roles : [ROLE_MANAGE_PRICING_CREDENTIALS]

Example

Delete pricing credentials


Removes an existing pricing credentials

DELETE https://example.com/api/admin/enterprises/{enterprise}/pricingcredentials/{credentials}

Roles : [ROLE_MANAGE_PRICING_CREDENTIALS]

Example

Get pricing credentials


Retrieves the pricing credentials used by the given enterprise to access the pricing API of a provider.

GET https://example.com/api/admin/enterprises/{enterprise}/pricingcredentials/{credentials}

Roles : [ROLE_MANAGE_PRICING_CREDENTIALS]

Error Codes

  • PRICING-CREDS-1 - The requested pricing credentials do not exist

Example

Update pricing credentials


Updates the access and key of existing pricing credentials. Provider type cannot be modified.

PUT https://example.com/api/admin/enterprises/{enterprise}/pricingcredentials/{credentials}

Roles : [ROLE_MANAGE_PRICING_CREDENTIALS]

Content-Type : pricingcredentials Accept : pricingcredentials

Error Codes

  • PRICING-CREDS-4 - The fields acces and keys of credentials are required
  • PRICING-CREDS-5 - Cannot update the provider of existing pricing credentials
  • PRICING-CREDS-6 - hypervisortype or publiccloudregions links are required
  • PUBLIC-13 - The given credentials could not be validated. At least one public cloud region of the same provider type must be allowed for this enterprise in order to verify the credentials

Example