APIv15 provides the Application API facade for version 15.

Hierarchy

  • default

Implements

Constructors

Properties

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

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>

  • Leader returns the unit name of the leader for the given application.

    Parameters

    Returns Promise<StringResult>

  • ResolveUnitErrors marks errors on the specified units as resolved.

    Parameters

    Returns Promise<ErrorResults>

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

    Parameters

    Returns Promise<any>

  • SetConfigs implements the server side of Application.SetConfig. Both application and charm config are set. It does not unset values in Config map that are set to an empty string. Unset should be used for that.

    Parameters

    Returns Promise<ErrorResults>

  • 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>

  • UnitsInfo returns unit information for the given entities (units or applications).

    Parameters

    Returns Promise<UnitInfoResults>

Generated using TypeDoc