@muhlba91/pulumi-proxmoxve
Version:
A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.
115 lines • 3.34 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Retrieves information about a specific Proxmox VE node.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
*
* const example = proxmoxve.getNodeLegacy({
* nodeName: "pve",
* });
* export const dataProxmoxVirtualEnvironmentNode = {
* cpuCores: example.then(example => example.cpuCores),
* cpuCount: example.then(example => example.cpuCount),
* cpuSockets: example.then(example => example.cpuSockets),
* cpuModel: example.then(example => example.cpuModel),
* memoryTotal: example.then(example => example.memoryTotal),
* uptime: example.then(example => example.uptime),
* };
* ```
*/
export declare function getNodeLegacy(args: GetNodeLegacyArgs, opts?: pulumi.InvokeOptions): Promise<GetNodeLegacyResult>;
/**
* A collection of arguments for invoking getNodeLegacy.
*/
export interface GetNodeLegacyArgs {
/**
* The node name
*/
nodeName: string;
}
/**
* A collection of values returned by getNodeLegacy.
*/
export interface GetNodeLegacyResult {
/**
* The total number of physical CPU cores on the node
*/
readonly cpuCores: number;
/**
* The total number of logical CPUs on the node (sockets * cores * threads)
*/
readonly cpuCount: number;
/**
* The CPU model on the node
*/
readonly cpuModel: string;
/**
* The number of CPU sockets on the node
*/
readonly cpuSockets: number;
/**
* The CPU utilization on the node (a value between `0.0` and `1.0`)
*/
readonly cpuUtilization: number;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The available memory in bytes on the node
*/
readonly memoryAvailable: number;
/**
* The total memory in bytes on the node
*/
readonly memoryTotal: number;
/**
* The used memory in bytes on the node
*/
readonly memoryUsed: number;
/**
* The node name
*/
readonly nodeName: string;
/**
* The uptime in seconds on the node
*/
readonly uptime: number;
}
/**
* Retrieves information about a specific Proxmox VE node.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
*
* const example = proxmoxve.getNodeLegacy({
* nodeName: "pve",
* });
* export const dataProxmoxVirtualEnvironmentNode = {
* cpuCores: example.then(example => example.cpuCores),
* cpuCount: example.then(example => example.cpuCount),
* cpuSockets: example.then(example => example.cpuSockets),
* cpuModel: example.then(example => example.cpuModel),
* memoryTotal: example.then(example => example.memoryTotal),
* uptime: example.then(example => example.uptime),
* };
* ```
*/
export declare function getNodeLegacyOutput(args: GetNodeLegacyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNodeLegacyResult>;
/**
* A collection of arguments for invoking getNodeLegacy.
*/
export interface GetNodeLegacyOutputArgs {
/**
* The node name
*/
nodeName: pulumi.Input<string>;
}
//# sourceMappingURL=getNodeLegacy.d.ts.map