Proxmox Virtual Environment (Proxmox VE) v6.14.0 published on Monday, Sep 9, 2024 by Daniel Muehlbachler-Pietrzykowski
proxmoxve.getNode
Explore with Pulumi AI
Proxmox Virtual Environment (Proxmox VE) v6.14.0 published on Monday, Sep 9, 2024 by Daniel Muehlbachler-Pietrzykowski
Retrieves information about node.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@pulumi/proxmoxve";
const node = proxmoxve.getNode({});
import pulumi
import pulumi_proxmoxve as proxmoxve
node = proxmoxve.get_node()
package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := proxmoxve.GetNode(ctx, nil, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ProxmoxVE = Pulumi.ProxmoxVE;
return await Deployment.RunAsync(() =>
{
var node = ProxmoxVE.GetNode.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.proxmoxve.ProxmoxveFunctions;
import com.pulumi.proxmoxve.inputs.GetNodeArgs;
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 = ProxmoxveFunctions.getNode();
}
}
variables:
node:
fn::invoke:
Function: proxmoxve:getNode
Arguments: {}
Using getNode
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 getNode(args: GetNodeArgs, opts?: InvokeOptions): Promise<GetNodeResult>
function getNodeOutput(args: GetNodeOutputArgs, opts?: InvokeOptions): Output<GetNodeResult>
def get_node(node_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNodeResult
def get_node_output(node_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNodeResult]
func GetNode(ctx *Context, args *GetNodeArgs, opts ...InvokeOption) (*GetNodeResult, error)
func GetNodeOutput(ctx *Context, args *GetNodeOutputArgs, opts ...InvokeOption) GetNodeResultOutput
> Note: This function is named GetNode
in the Go SDK.
public static class GetNode
{
public static Task<GetNodeResult> InvokeAsync(GetNodeArgs args, InvokeOptions? opts = null)
public static Output<GetNodeResult> Invoke(GetNodeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNodeResult> getNode(GetNodeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: proxmoxve:index/getNode:getNode
arguments:
# arguments dictionary
The following arguments are supported:
- Node
Name string - The node name.
- Node
Name string - The node name.
- node
Name String - The node name.
- node
Name string - The node name.
- node_
name str - The node name.
- node
Name String - The node name.
getNode Result
The following output properties are available:
- Cpu
Count int - The CPU count on the node.
- Cpu
Model string - The CPU model on the node.
- Cpu
Sockets int - The CPU utilization on the node.
- Id string
- The provider-assigned unique ID for this managed resource.
- Memory
Available int - The memory available on the node.
- Memory
Total int - The total memory on the node.
- Memory
Used int - The memory used on the node.
- Node
Name string - Uptime int
- The uptime in seconds on the node.
- Cpu
Count int - The CPU count on the node.
- Cpu
Model string - The CPU model on the node.
- Cpu
Sockets int - The CPU utilization on the node.
- Id string
- The provider-assigned unique ID for this managed resource.
- Memory
Available int - The memory available on the node.
- Memory
Total int - The total memory on the node.
- Memory
Used int - The memory used on the node.
- Node
Name string - Uptime int
- The uptime in seconds on the node.
- cpu
Count Integer - The CPU count on the node.
- cpu
Model String - The CPU model on the node.
- cpu
Sockets Integer - The CPU utilization on the node.
- id String
- The provider-assigned unique ID for this managed resource.
- memory
Available Integer - The memory available on the node.
- memory
Total Integer - The total memory on the node.
- memory
Used Integer - The memory used on the node.
- node
Name String - uptime Integer
- The uptime in seconds on the node.
- cpu
Count number - The CPU count on the node.
- cpu
Model string - The CPU model on the node.
- cpu
Sockets number - The CPU utilization on the node.
- id string
- The provider-assigned unique ID for this managed resource.
- memory
Available number - The memory available on the node.
- memory
Total number - The total memory on the node.
- memory
Used number - The memory used on the node.
- node
Name string - uptime number
- The uptime in seconds on the node.
- cpu_
count int - The CPU count on the node.
- cpu_
model str - The CPU model on the node.
- cpu_
sockets int - The CPU utilization on the node.
- id str
- The provider-assigned unique ID for this managed resource.
- memory_
available int - The memory available on the node.
- memory_
total int - The total memory on the node.
- memory_
used int - The memory used on the node.
- node_
name str - uptime int
- The uptime in seconds on the node.
- cpu
Count Number - The CPU count on the node.
- cpu
Model String - The CPU model on the node.
- cpu
Sockets Number - The CPU utilization on the node.
- id String
- The provider-assigned unique ID for this managed resource.
- memory
Available Number - The memory available on the node.
- memory
Total Number - The total memory on the node.
- memory
Used Number - The memory used on the node.
- node
Name String - uptime Number
- The uptime in seconds on the node.
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmox
Terraform Provider.
Proxmox Virtual Environment (Proxmox VE) v6.14.0 published on Monday, Sep 9, 2024 by Daniel Muehlbachler-Pietrzykowski