APIv12 provides the Application API facade for version 12. It adds the UnitsInfo method.

Hierarchy

  • default

Implements

Constructors

Properties

NAME: string = "Application"
VERSION: number = 12
_transport: Transport
NAME: string = "Application"
VERSION: number = 12

Methods

  • Destroy destroys a given application, local or remote.

    NOTE(axw) this exists only for backwards compatibility, for API facade versions 1-3; clients should prefer its successor, DestroyApplication, below. Until all consumers have been updated, or we bump a major version, we can't drop this.

    TODO(axw) 2017-03-16 #1673323 Drop this in Juju 3.0.

    Parameters

    Returns Promise<any>

  • DestroyRelation removes the relation between the specified endpoints or an id.

    Parameters

    Returns Promise<any>

  • DestroyUnits removes a given set of application units.

    NOTE(axw) this exists only for backwards compatibility, for API facade versions 1-3; clients should prefer its successor, DestroyUnit, below. Until all consumers have been updated, or we bump a major version, we can't drop this.

    TODO(axw) 2017-03-16 #1673323 Drop this in Juju 3.0.

    Parameters

    Returns Promise<any>

  • Expose changes the juju-managed firewall to expose any ports that were also explicitly marked by units as open.

    Parameters

    Returns Promise<any>

  • ResolveUnitErrors marks errors on the specified units as resolved.

    Parameters

    Returns Promise<ErrorResults>

  • Set implements the server side of Application.Set. It does not unset values that are set to an empty string. Unset should be used for that.

    Parameters

    Returns Promise<any>

  • SetApplicationsConfig implements the server side of Application.SetApplicationsConfig. It does not unset values that are set to an empty string. Unset should be used for that.

    Parameters

    Returns Promise<ErrorResults>

  • SetCharm sets the charm for a given for the application.

    Parameters

    Returns Promise<any>

  • SetConstraints sets the constraints for a given application.

    Parameters

    Returns Promise<any>

  • Unexpose changes the juju-managed firewall to unexpose any ports that were also explicitly marked by units as open.

    Parameters

    Returns Promise<any>

  • Unset implements the server side of Client.Unset.

    Parameters

    Returns Promise<any>

  • Update updates the application attributes, including charm URL, minimum number of units, charm config and constraints. All parameters in params.ApplicationUpdate except the application name are optional.

    Parameters

    Returns Promise<any>

  • UpdateApplicationSeries updates the application series. Series for subordinates updated too.

    Parameters

    Returns Promise<ErrorResults>

Generated using TypeDoc