UNPKG

@pulumi/hcloud

Version:

A Pulumi package for creating and managing hcloud cloud resources.

70 lines (69 loc) 2.3 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const s3 = hcloud.getServers({ * withSelector: "key=value", * }); * ``` */ export declare function getServers(args?: GetServersArgs, opts?: pulumi.InvokeOptions): Promise<GetServersResult>; /** * A collection of arguments for invoking getServers. */ export interface GetServersArgs { /** * Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector). */ withSelector?: string; /** * List only servers with the specified status, could contain `initializing`, `starting`, `running`, `stopping`, `off`, `deleting`, `rebuilding`, `migrating`, `unknown`. */ withStatuses?: string[]; } /** * A collection of values returned by getServers. */ export interface GetServersResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * (list) List of all matching servers. See `data.hcloud_server` for schema. */ readonly servers: outputs.GetServersServer[]; readonly withSelector?: string; readonly withStatuses?: string[]; } /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const s3 = hcloud.getServers({ * withSelector: "key=value", * }); * ``` */ export declare function getServersOutput(args?: GetServersOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServersResult>; /** * A collection of arguments for invoking getServers. */ export interface GetServersOutputArgs { /** * Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector). */ withSelector?: pulumi.Input<string>; /** * List only servers with the specified status, could contain `initializing`, `starting`, `running`, `stopping`, `off`, `deleting`, `rebuilding`, `migrating`, `unknown`. */ withStatuses?: pulumi.Input<pulumi.Input<string>[]>; }