UNPKG

@muhlba91/pulumi-proxmoxve

Version:

A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.

87 lines (86 loc) 2.32 kB
import * as pulumi from "@pulumi/pulumi"; /** * Retrieves information about a specific PVE metric server. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * * const example = proxmoxve.Metrics.getServer({ * name: "example_influxdb", * }); * export const dataProxmoxVirtualEnvironmentMetricsServer = { * server: example.then(example => example.server), * port: example.then(example => example.port), * }; * ``` */ export declare function getServer(args: GetServerArgs, opts?: pulumi.InvokeOptions): Promise<GetServerResult>; /** * A collection of arguments for invoking getServer. */ export interface GetServerArgs { /** * Unique name that will be ID of this metric server in PVE. */ name: string; } /** * A collection of values returned by getServer. */ export interface GetServerResult { /** * Indicates if the metric server is disabled. */ readonly disable: boolean; /** * The unique identifier of this resource. */ readonly id: string; /** * Unique name that will be ID of this metric server in PVE. */ readonly name: string; /** * Server network port. */ readonly port: number; /** * Server dns name or IP address. */ readonly server: string; /** * Plugin type. Either `graphite` or `influxdb`. */ readonly type: string; } /** * Retrieves information about a specific PVE metric server. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * * const example = proxmoxve.Metrics.getServer({ * name: "example_influxdb", * }); * export const dataProxmoxVirtualEnvironmentMetricsServer = { * server: example.then(example => example.server), * port: example.then(example => example.port), * }; * ``` */ export declare function getServerOutput(args: GetServerOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServerResult>; /** * A collection of arguments for invoking getServer. */ export interface GetServerOutputArgs { /** * Unique name that will be ID of this metric server in PVE. */ name: pulumi.Input<string>; }