PublicCloudCredentialsListResource


Create a set of public cloud credentials


Add a set of credentials for an enterprise and a remote provider. The credentials must be valid and the enterprise cannot have more than one set of credentials for the same provider. The credentials must be unique in the system, so two enterprises cannot share the same access and key pair for the same provider. In order for an enterprise to use a region, the administrator must also create a DatacenterLimit for the enterprise

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

Roles : [ROLE_USERS_MANAGE_ENTERPRISE, ROLE_USERS_MANAGE_USERS]

Error Codes

  • CONSTR-REQUIRED - The property 'key' must have a value.
  • CPP-1 - remote service not found
  • GEN-5 - Invalid credentials
  • HYPERVISOR_TYPE-2 - Invalid hypervisor type link
  • 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
  • PUBLIC-14 - The supplied public cloud credentials are already in use.
  • PUBLIC-16 - A link to a public cloud region or a provider type must be provided
  • PUBLIC-3 - The requested provider already has credentials assigned.
  • PUBLIC-4 - The requested provider is not supported.
  • RS-2 - The remote service does not exist
  • VSM-7 - VSM service unavailable; check the URL of the service.

Example

List public cloud credentials of an enterprise


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

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

Roles : [ROLE_USERS_MANAGE_ENTERPRISE, ROLE_USERS_MANAGE_USERS]

Example

Delete a set of public cloud credentials


Remove credentials for a provider. This action won't affect other resources, like virtual datacenters, or VMs, which won't be deleted in Abiquo or the remote provider. After you remove the credentials, you will only be able to delete resources in Abiquo, without affecting the provider.

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

Roles : [ROLE_USERS_MANAGE_ENTERPRISE, ROLE_USERS_MANAGE_USERS]

Example

Get a set of public cloud credentials


Retrieve the credentials of an enterprise for a single remote provider.

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

Roles : [ROLE_USERS_MANAGE_ENTERPRISE, ROLE_USERS_MANAGE_USERS]

Error Codes

  • PUBLIC-1 - The requested credentials do not exist

Example

Update a set of public cloud credentials


Modify the credentials of an enterprise for a provider. The new credentials must be valid.

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

Roles : [ROLE_USERS_MANAGE_ENTERPRISE, ROLE_USERS_MANAGE_USERS]

Error Codes

  • CONSTR-REQUIRED - The property 'key' must have a value.
  • CPP-1 - remote service not found
  • GEN-5 - Invalid credentials
  • PUBLIC-1 - The requested credentials do not exist
  • PUBLIC-14 - The supplied public cloud credentials are already in use.
  • PUBLIC-17 - The public cloud region of a public cloud credential cannot be modified
  • PUBLIC-7 - The provider field of public cloud credentials cannot be modified
  • RS-2 - The remote service does not exist
  • VSM-7 - VSM service unavailable; check the URL of the service.

Example