AgentAPIV2 implements the version 2 of the API provided to an agent.

Hierarchy

  • default

Implements

Constructors

Properties

NAME: string = "Agent"
VERSION: number = 2
_transport: Transport
NAME: string = "Agent"
VERSION: number = 2

Methods

  • ClearReboot will clear the reboot flag on provided machines, if it exists.

    Parameters

    Returns Promise<ErrorResults>

  • ControllerConfig returns the controller's configuration.

    Parameters

    • params: any

    Returns Promise<ControllerConfigResult>

  • GetCloudSpec constructs the CloudSpec for a validated and authorized model.

    Parameters

    Returns Promise<CloudSpecResult>

  • Parameters

    • params: any

    Returns Promise<IsMasterResult>

  • ModelConfig returns the current model's configuration.

    Parameters

    • params: any

    Returns Promise<ModelConfigResult>

  • WatchForModelConfigChanges returns a NotifyWatcher that observes changes to the model configuration. Note that although the NotifyWatchResult contains an Error field, it's not used because we are only returning a single watcher, so we use the regular error return.

    Parameters

    • params: any

    Returns Promise<NotifyWatchResult>

Generated using TypeDoc