@pulumi/libvirt
Version:
A Pulumi package for creating and managing libvirt cloud resources.
65 lines (64 loc) • 1.61 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Retrieve information about the current node
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as libvirt from "@pulumi/libvirt";
*
* const node = libvirt.getNodeInfo({});
* ```
*/
export declare function getNodeInfo(opts?: pulumi.InvokeOptions): Promise<GetNodeInfoResult>;
/**
* A collection of values returned by getNodeInfo.
*/
export interface GetNodeInfoResult {
/**
* Number of CPU cores per each socket
*/
readonly cpuCoresPerSocket: number;
/**
* Number of CPU cores in total
*/
readonly cpuCoresTotal: number;
/**
* CPU Architecture, usually `x8664`
*/
readonly cpuModel: string;
/**
* How many CPU sockets are present
*/
readonly cpuSockets: number;
/**
* How many CPU Threads are available per each CPU core
*/
readonly cpuThreadsPerCore: number;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The amount of memory installed, in KiB
*/
readonly memoryTotalKb: number;
/**
* How many NUMA nodes/cells are available.
*/
readonly numaNodes: number;
}
/**
* Retrieve information about the current node
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as libvirt from "@pulumi/libvirt";
*
* const node = libvirt.getNodeInfo({});
* ```
*/
export declare function getNodeInfoOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNodeInfoResult>;