@muhlba91/pulumi-proxmoxve
Version:
A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.
150 lines • 4.28 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Retrieves information about all containers in the Proxmox cluster.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
*
* const ubuntuContainers = proxmoxve.getContainersLegacy({
* tags: ["ubuntu"],
* });
* const ubuntuTemplates = proxmoxve.getContainersLegacy({
* tags: [
* "template",
* "latest",
* ],
* filters: [
* {
* name: "template",
* values: ["true"],
* },
* {
* name: "status",
* values: ["stopped"],
* },
* {
* name: "name",
* regex: true,
* values: ["^ubuntu-20.*$"],
* },
* {
* name: "node_name",
* regex: true,
* values: [
* "node_us_[1-3]",
* "node_eu_[1-3]",
* ],
* },
* ],
* });
* ```
*/
export declare function getContainersLegacy(args?: GetContainersLegacyArgs, opts?: pulumi.InvokeOptions): Promise<GetContainersLegacyResult>;
/**
* A collection of arguments for invoking getContainersLegacy.
*/
export interface GetContainersLegacyArgs {
/**
* Filter blocks. The container must satisfy all filter blocks to be included in the result.
*/
filters?: inputs.GetContainersLegacyFilter[];
/**
* The node name. All cluster nodes will be queried in case this is omitted
*/
nodeName?: string;
/**
* A list of tags to filter the containers. The container must have all
* the tags to be included in the result.
*/
tags?: string[];
}
/**
* A collection of values returned by getContainersLegacy.
*/
export interface GetContainersLegacyResult {
/**
* The containers list.
*/
readonly containers: outputs.GetContainersLegacyContainer[];
readonly filters?: outputs.GetContainersLegacyFilter[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The node name.
*/
readonly nodeName?: string;
/**
* A list of tags of the container.
*/
readonly tags?: string[];
}
/**
* Retrieves information about all containers in the Proxmox cluster.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
*
* const ubuntuContainers = proxmoxve.getContainersLegacy({
* tags: ["ubuntu"],
* });
* const ubuntuTemplates = proxmoxve.getContainersLegacy({
* tags: [
* "template",
* "latest",
* ],
* filters: [
* {
* name: "template",
* values: ["true"],
* },
* {
* name: "status",
* values: ["stopped"],
* },
* {
* name: "name",
* regex: true,
* values: ["^ubuntu-20.*$"],
* },
* {
* name: "node_name",
* regex: true,
* values: [
* "node_us_[1-3]",
* "node_eu_[1-3]",
* ],
* },
* ],
* });
* ```
*/
export declare function getContainersLegacyOutput(args?: GetContainersLegacyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetContainersLegacyResult>;
/**
* A collection of arguments for invoking getContainersLegacy.
*/
export interface GetContainersLegacyOutputArgs {
/**
* Filter blocks. The container must satisfy all filter blocks to be included in the result.
*/
filters?: pulumi.Input<pulumi.Input<inputs.GetContainersLegacyFilterArgs>[] | undefined>;
/**
* The node name. All cluster nodes will be queried in case this is omitted
*/
nodeName?: pulumi.Input<string | undefined>;
/**
* A list of tags to filter the containers. The container must have all
* the tags to be included in the result.
*/
tags?: pulumi.Input<pulumi.Input<string>[] | undefined>;
}
//# sourceMappingURL=getContainersLegacy.d.ts.map