UNPKG

@pulumi/nomad

Version:

A Pulumi package for creating and managing nomad cloud resources.

48 lines (47 loc) 1.38 kB
import * as pulumi from "@pulumi/pulumi"; /** * Retrieve a list of deployments in Nomad. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nomad from "@pulumi/nomad"; * * const example = nomad.getDeployments({}); * ``` */ export declare function getDeployments(opts?: pulumi.InvokeOptions): Promise<GetDeploymentsResult>; /** * A collection of values returned by getDeployments. */ export interface GetDeploymentsResult { /** * `list of maps` a list of deployments in the cluster. * * `ID`: `string` Deployment ID. * * `JobID`: `string` Job ID associated with the deployment. * * `JobVersion`: `string` Job version. * * `Status`: `string` Deployment status. * * `StatusDescription`: `string` Detailed description of the deployment's status. */ readonly deployments: { [key: string]: string; }[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; } /** * Retrieve a list of deployments in Nomad. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nomad from "@pulumi/nomad"; * * const example = nomad.getDeployments({}); * ``` */ export declare function getDeploymentsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDeploymentsResult>;