libvirt v0.5.0 published on Wednesday, Sep 25, 2024 by Pulumi
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-libvirt/sdk/go/libvirt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := libvirt.GetNodeInfo(ctx, nil, 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 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(opts?: InvokeOptions): Promise<GetNodeInfoResult>
function getNodeInfoOutput(opts?: InvokeOptions): Output<GetNodeInfoResult>
def get_node_info(opts: Optional[InvokeOptions] = None) -> GetNodeInfoResult
def get_node_info_output(opts: Optional[InvokeOptions] = None) -> Output[GetNodeInfoResult]
func GetNodeInfo(ctx *Context, opts ...InvokeOption) (*GetNodeInfoResult, error)
func GetNodeInfoOutput(ctx *Context, opts ...InvokeOption) GetNodeInfoResultOutput
> Note: This function is named GetNodeInfo
in the Go SDK.
public static class GetNodeInfo
{
public static Task<GetNodeInfoResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetNodeInfoResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetNodeInfoResult> getNodeInfo(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: libvirt:index/getNodeInfo:getNodeInfo
arguments:
# arguments dictionary
getNodeInfo Result
The following output properties are available:
- Cpu
Cores intPer Socket - Number of CPU cores per each socket
- Cpu
Cores intTotal - Number of CPU cores in total
- Cpu
Model string - CPU Architecture, usually
x86_64
- Cpu
Sockets int - How many CPU sockets are present
- Cpu
Threads intPer Core - How many CPU Threads are available per each CPU core
- Id string
- The provider-assigned unique ID for this managed resource.
- Memory
Total intKb - The amount of memory installed, in KiB
- Numa
Nodes int - How many NUMA nodes/cells are available.
- Cpu
Cores intPer Socket - Number of CPU cores per each socket
- Cpu
Cores intTotal - Number of CPU cores in total
- Cpu
Model string - CPU Architecture, usually
x86_64
- Cpu
Sockets int - How many CPU sockets are present
- Cpu
Threads intPer Core - How many CPU Threads are available per each CPU core
- Id string
- The provider-assigned unique ID for this managed resource.
- Memory
Total intKb - The amount of memory installed, in KiB
- Numa
Nodes int - How many NUMA nodes/cells are available.
- cpu
Cores IntegerPer Socket - Number of CPU cores per each socket
- cpu
Cores IntegerTotal - Number of CPU cores in total
- cpu
Model String - CPU Architecture, usually
x86_64
- cpu
Sockets Integer - How many CPU sockets are present
- cpu
Threads IntegerPer Core - How many CPU Threads are available per each CPU core
- id String
- The provider-assigned unique ID for this managed resource.
- memory
Total IntegerKb - The amount of memory installed, in KiB
- numa
Nodes Integer - 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
- The provider-assigned unique ID for this managed resource.
- memory
Total numberKb - The amount of memory installed, in KiB
- numa
Nodes number - How many NUMA nodes/cells are available.
- cpu_
cores_ intper_ socket - Number of CPU cores per each socket
- cpu_
cores_ inttotal - Number of CPU cores in total
- cpu_
model str - CPU Architecture, usually
x86_64
- cpu_
sockets int - How many CPU sockets are present
- cpu_
threads_ intper_ core - How many CPU Threads are available per each CPU core
- id str
- The provider-assigned unique ID for this managed resource.
- memory_
total_ intkb - The amount of memory installed, in KiB
- numa_
nodes int - 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
- The provider-assigned unique ID for this managed resource.
- memory
Total NumberKb - The amount of memory installed, in KiB
- numa
Nodes Number - How many NUMA nodes/cells are available.
Package Details
- Repository
- libvirt pulumi/pulumi-libvirt
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
libvirt
Terraform Provider.