libvirt 0.8.3 published on Tuesday, Mar 4, 2025 by dmacvicar
libvirt.getNodeInfo
Explore with Pulumi AI
Retrieve information about the current node
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as libvirt from "@pulumi/libvirt";
const node = libvirt.getNodeInfo({});
import pulumi
import pulumi_libvirt as libvirt
node = libvirt.get_node_info()
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/libvirt/libvirt"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := libvirt.GetNodeInfo(ctx, &libvirt.GetNodeInfoArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Libvirt = Pulumi.Libvirt;
return await Deployment.RunAsync(() => 
{
    var node = Libvirt.GetNodeInfo.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.libvirt.LibvirtFunctions;
import com.pulumi.libvirt.inputs.GetNodeInfoArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var node = LibvirtFunctions.getNodeInfo();
    }
}
variables:
  node:
    fn::invoke:
      function: libvirt:getNodeInfo
      arguments: {}
Using getNodeInfo
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNodeInfo(args: GetNodeInfoArgs, opts?: InvokeOptions): Promise<GetNodeInfoResult>
function getNodeInfoOutput(args: GetNodeInfoOutputArgs, opts?: InvokeOptions): Output<GetNodeInfoResult>def get_node_info(id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetNodeInfoResult
def get_node_info_output(id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetNodeInfoResult]func GetNodeInfo(ctx *Context, args *GetNodeInfoArgs, opts ...InvokeOption) (*GetNodeInfoResult, error)
func GetNodeInfoOutput(ctx *Context, args *GetNodeInfoOutputArgs, opts ...InvokeOption) GetNodeInfoResultOutput> Note: This function is named GetNodeInfo in the Go SDK.
public static class GetNodeInfo 
{
    public static Task<GetNodeInfoResult> InvokeAsync(GetNodeInfoArgs args, InvokeOptions? opts = null)
    public static Output<GetNodeInfoResult> Invoke(GetNodeInfoInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNodeInfoResult> getNodeInfo(GetNodeInfoArgs args, InvokeOptions options)
public static Output<GetNodeInfoResult> getNodeInfo(GetNodeInfoArgs args, InvokeOptions options)
fn::invoke:
  function: libvirt:index/getNodeInfo:getNodeInfo
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
 
- Id string
 
- id String
 
- id string
 
- id str
 
- id String
 
getNodeInfo Result
The following output properties are available:
- Cpu
Cores doublePer Socket  - Number of CPU cores per each socket
 - Cpu
Cores doubleTotal  - Number of CPU cores in total
 - Cpu
Model string - CPU Architecture, usually 
x86_64 - Cpu
Sockets double - How many CPU sockets are present
 - Cpu
Threads doublePer Core  - How many CPU Threads are available per each CPU core
 - Id string
 - Memory
Total doubleKb  - The amount of memory installed, in KiB
 - Numa
Nodes double - How many NUMA nodes/cells are available.
 
- Cpu
Cores float64Per Socket  - Number of CPU cores per each socket
 - Cpu
Cores float64Total  - Number of CPU cores in total
 - Cpu
Model string - CPU Architecture, usually 
x86_64 - Cpu
Sockets float64 - How many CPU sockets are present
 - Cpu
Threads float64Per Core  - How many CPU Threads are available per each CPU core
 - Id string
 - Memory
Total float64Kb  - The amount of memory installed, in KiB
 - Numa
Nodes float64 - How many NUMA nodes/cells are available.
 
- cpu
Cores DoublePer Socket  - Number of CPU cores per each socket
 - cpu
Cores DoubleTotal  - Number of CPU cores in total
 - cpu
Model String - CPU Architecture, usually 
x86_64 - cpu
Sockets Double - How many CPU sockets are present
 - cpu
Threads DoublePer Core  - How many CPU Threads are available per each CPU core
 - id String
 - memory
Total DoubleKb  - The amount of memory installed, in KiB
 - numa
Nodes Double - How many NUMA nodes/cells are available.
 
- cpu
Cores numberPer Socket  - Number of CPU cores per each socket
 - cpu
Cores numberTotal  - Number of CPU cores in total
 - cpu
Model string - CPU Architecture, usually 
x86_64 - cpu
Sockets number - How many CPU sockets are present
 - cpu
Threads numberPer Core  - How many CPU Threads are available per each CPU core
 - id string
 - memory
Total numberKb  - The amount of memory installed, in KiB
 - numa
Nodes number - How many NUMA nodes/cells are available.
 
- cpu_
cores_ floatper_ socket  - Number of CPU cores per each socket
 - cpu_
cores_ floattotal  - Number of CPU cores in total
 - cpu_
model str - CPU Architecture, usually 
x86_64 - cpu_
sockets float - How many CPU sockets are present
 - cpu_
threads_ floatper_ core  - How many CPU Threads are available per each CPU core
 - id str
 - memory_
total_ floatkb  - The amount of memory installed, in KiB
 - numa_
nodes float - How many NUMA nodes/cells are available.
 
- cpu
Cores NumberPer Socket  - Number of CPU cores per each socket
 - cpu
Cores NumberTotal  - Number of CPU cores in total
 - cpu
Model String - CPU Architecture, usually 
x86_64 - cpu
Sockets Number - How many CPU sockets are present
 - cpu
Threads NumberPer Core  - How many CPU Threads are available per each CPU core
 - id String
 - memory
Total NumberKb  - The amount of memory installed, in KiB
 - numa
Nodes Number - How many NUMA nodes/cells are available.
 
Package Details
- Repository
 - libvirt dmacvicar/terraform-provider-libvirt
 - License
 - Notes
 - This Pulumi package is based on the 
libvirtTerraform Provider.