1. Packages
  2. Proxmox Virtual Environment (Proxmox VE)
  3. API Docs
  4. Cluster
  5. getNodes
Proxmox Virtual Environment (Proxmox VE) v6.15.3 published on Monday, Nov 11, 2024 by Daniel Muehlbachler-Pietrzykowski

proxmoxve.Cluster.getNodes

Explore with Pulumi AI

proxmoxve logo
Proxmox Virtual Environment (Proxmox VE) v6.15.3 published on Monday, Nov 11, 2024 by Daniel Muehlbachler-Pietrzykowski

    Retrieves information about all available nodes.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as proxmoxve from "@pulumi/proxmoxve";
    
    const availableNodes = proxmoxve.Cluster.getNodes({});
    
    import pulumi
    import pulumi_proxmoxve as proxmoxve
    
    available_nodes = proxmoxve.Cluster.get_nodes()
    
    package main
    
    import (
    	"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/Cluster"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Cluster.GetNodes(ctx, map[string]interface{}{}, 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 availableNodes = ProxmoxVE.Cluster.GetNodes.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.proxmoxve.Cluster.ClusterFunctions;
    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 availableNodes = ClusterFunctions.getNodes();
    
        }
    }
    
    variables:
      availableNodes:
        fn::invoke:
          Function: proxmoxve:Cluster:getNodes
          Arguments: {}
    

    Using getNodes

    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 getNodes(opts?: InvokeOptions): Promise<GetNodesResult>
    function getNodesOutput(opts?: InvokeOptions): Output<GetNodesResult>
    def get_nodes(opts: Optional[InvokeOptions] = None) -> GetNodesResult
    def get_nodes_output(opts: Optional[InvokeOptions] = None) -> Output[GetNodesResult]
    func GetNodes(ctx *Context, opts ...InvokeOption) (*GetNodesResult, error)
    func GetNodesOutput(ctx *Context, opts ...InvokeOption) GetNodesResultOutput

    > Note: This function is named GetNodes in the Go SDK.

    public static class GetNodes 
    {
        public static Task<GetNodesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetNodesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNodesResult> getNodes(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: proxmoxve:Cluster/getNodes:getNodes
      arguments:
        # arguments dictionary

    getNodes Result

    The following output properties are available:

    CpuCounts List<int>
    The CPU count for each node.
    CpuUtilizations List<double>
    The CPU utilization on each node.
    Id string
    The provider-assigned unique ID for this managed resource.
    MemoryAvailables List<int>
    The memory available on each node.
    MemoryUseds List<int>
    The memory used on each node.
    Names List<string>
    The node names.
    Onlines List<bool>
    Whether a node is online.
    SslFingerprints List<string>
    The SSL fingerprint for each node.
    SupportLevels List<string>
    The support level for each node.
    Uptimes List<int>
    The uptime in seconds for each node.
    CpuCounts []int
    The CPU count for each node.
    CpuUtilizations []float64
    The CPU utilization on each node.
    Id string
    The provider-assigned unique ID for this managed resource.
    MemoryAvailables []int
    The memory available on each node.
    MemoryUseds []int
    The memory used on each node.
    Names []string
    The node names.
    Onlines []bool
    Whether a node is online.
    SslFingerprints []string
    The SSL fingerprint for each node.
    SupportLevels []string
    The support level for each node.
    Uptimes []int
    The uptime in seconds for each node.
    cpuCounts List<Integer>
    The CPU count for each node.
    cpuUtilizations List<Double>
    The CPU utilization on each node.
    id String
    The provider-assigned unique ID for this managed resource.
    memoryAvailables List<Integer>
    The memory available on each node.
    memoryUseds List<Integer>
    The memory used on each node.
    names List<String>
    The node names.
    onlines List<Boolean>
    Whether a node is online.
    sslFingerprints List<String>
    The SSL fingerprint for each node.
    supportLevels List<String>
    The support level for each node.
    uptimes List<Integer>
    The uptime in seconds for each node.
    cpuCounts number[]
    The CPU count for each node.
    cpuUtilizations number[]
    The CPU utilization on each node.
    id string
    The provider-assigned unique ID for this managed resource.
    memoryAvailables number[]
    The memory available on each node.
    memoryUseds number[]
    The memory used on each node.
    names string[]
    The node names.
    onlines boolean[]
    Whether a node is online.
    sslFingerprints string[]
    The SSL fingerprint for each node.
    supportLevels string[]
    The support level for each node.
    uptimes number[]
    The uptime in seconds for each node.
    cpu_counts Sequence[int]
    The CPU count for each node.
    cpu_utilizations Sequence[float]
    The CPU utilization on each node.
    id str
    The provider-assigned unique ID for this managed resource.
    memory_availables Sequence[int]
    The memory available on each node.
    memory_useds Sequence[int]
    The memory used on each node.
    names Sequence[str]
    The node names.
    onlines Sequence[bool]
    Whether a node is online.
    ssl_fingerprints Sequence[str]
    The SSL fingerprint for each node.
    support_levels Sequence[str]
    The support level for each node.
    uptimes Sequence[int]
    The uptime in seconds for each node.
    cpuCounts List<Number>
    The CPU count for each node.
    cpuUtilizations List<Number>
    The CPU utilization on each node.
    id String
    The provider-assigned unique ID for this managed resource.
    memoryAvailables List<Number>
    The memory available on each node.
    memoryUseds List<Number>
    The memory used on each node.
    names List<String>
    The node names.
    onlines List<Boolean>
    Whether a node is online.
    sslFingerprints List<String>
    The SSL fingerprint for each node.
    supportLevels List<String>
    The support level for each node.
    uptimes List<Number>
    The uptime in seconds for each node.

    Package Details

    Repository
    proxmoxve muhlba91/pulumi-proxmoxve
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the proxmox Terraform Provider.
    proxmoxve logo
    Proxmox Virtual Environment (Proxmox VE) v6.15.3 published on Monday, Nov 11, 2024 by Daniel Muehlbachler-Pietrzykowski