CloudAPIV5 provides a way to wrap the different calls between version 5 and version 6 of the cloud API.

Hierarchy

  • default

Implements

Constructors

Properties

NAME: string = "Cloud"
VERSION: number = 5
_transport: Transport
NAME: string = "Cloud"
VERSION: number = 5

Methods

  • AddCloud adds a new cloud, different from the one managed by the controller.

    Parameters

    Returns Promise<any>

  • AddCredentials adds new credentials. In contrast to UpdateCredentials() below, the new credentials can be for a cloud that the controller does not manage (this is required for CAAS models)

    Parameters

    Returns Promise<ErrorResults>

  • CheckCredentialsModels validates supplied cloud credentials' content against models that currently use these credentials. If there are any models that are using a credential and these models or their cloud instances are not going to be accessible with corresponding credential, there will be detailed validation errors per model. There's no Juju API client which uses this, but JAAS does,

    Parameters

    Returns Promise<UpdateCredentialResults>

  • Cloud returns the cloud definitions for the specified clouds.

    Parameters

    Returns Promise<CloudResults>

  • Clouds returns the definitions of all clouds supported by the controller that the logged in user can see.

    Parameters

    • params: any

    Returns Promise<CloudsResult>

  • CredentialContents returns the specified cloud credentials, including the secrets if requested. If no specific credential name/cloud was passed in, all credentials for this user are returned. Only credential owner can see its contents as well as what models use it. Controller admin has no special superpowers here and is treated the same as all other users.

    Parameters

    Returns Promise<CredentialContentResults>

  • RemoveClouds removes the specified clouds from the controller. If a cloud is in use (has models deployed to it), the removal will fail.

    Parameters

    Returns Promise<ErrorResults>

  • RevokeCredentialsCheckModels revokes a set of cloud credentials. If the credentials are used by any of the models, the credential deletion will be aborted. If credential-in-use needs to be revoked nonetheless, this method allows the use of force.

    Parameters

    Returns Promise<ErrorResults>

  • UpdateCredentialsCheckModels updates a set of cloud credentials' content. If there are any models that are using a credential and these models are not going to be visible with updated credential content, there will be detailed validation errors per model. Controller admins can 'force' an update of the credential regardless of whether it is deemed valid or not.

    Parameters

    Returns Promise<UpdateCredentialResults>

Generated using TypeDoc