Viewing docs for Nomad v2.6.1
published on Tuesday, Apr 21, 2026 by Pulumi
published on Tuesday, Apr 21, 2026 by Pulumi
Viewing docs for Nomad v2.6.1
published on Tuesday, Apr 21, 2026 by Pulumi
published on Tuesday, Apr 21, 2026 by Pulumi
Get information about a specific Nomad node by its ID.
Note: All node attribute values can change if the node is restarted and its fingerprint changes. In particular, the
drain,status,statusDescription, andschedulingEligibilityfields are ephemeral and can change at any time without an agent restart.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nomad from "@pulumi/nomad";
const myNode = nomad.getNode({
nodeId: "abc123",
});
import pulumi
import pulumi_nomad as nomad
my_node = nomad.get_node(node_id="abc123")
package main
import (
"github.com/pulumi/pulumi-nomad/sdk/v2/go/nomad"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := nomad.GetNode(ctx, &nomad.GetNodeArgs{
NodeId: "abc123",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nomad = Pulumi.Nomad;
return await Deployment.RunAsync(() =>
{
var myNode = Nomad.Index.GetNode.Invoke(new()
{
NodeId = "abc123",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nomad.NomadFunctions;
import com.pulumi.nomad.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 myNode = NomadFunctions.getNode(GetNodeArgs.builder()
.nodeId("abc123")
.build());
}
}
variables:
myNode:
fn::invoke:
function: nomad:getNode
arguments:
nodeId: abc123
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_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNodeResult
def get_node_output(node_id: pulumi.Input[Optional[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)
public static Output<GetNodeResult> getNode(GetNodeArgs args, InvokeOptions options)
fn::invoke:
function: nomad:index/getNode:getNode
arguments:
# arguments dictionaryThe following arguments are supported:
- Node
Id string (string: <required>)- The ID of the node to look up.
- Node
Id string (string: <required>)- The ID of the node to look up.
- node
Id String (string: <required>)- The ID of the node to look up.
- node
Id string (string: <required>)- The ID of the node to look up.
- node_
id str (string: <required>)- The ID of the node to look up.
- node
Id String (string: <required>)- The ID of the node to look up.
getNode Result
The following output properties are available:
- Attributes Dictionary<string, string>
(map of string)- Driver-specific attributes.- Datacenter string
(string)- The datacenter of the node.- Drain bool
(bool)- Whether the node is in drain mode. This value is ephemeral and can change without an agent restart.- Drivers
List<Get
Node Driver> (list)- A list of driver information for the node.- Host
Volumes List<GetNode Host Volume> (list)- A list of host volumes on the node.- Http
Addr string (string)- The HTTP address of the node.- Id string
- The provider-assigned unique ID for this managed resource.
- Meta Dictionary<string, string>
(map of string)- A map of metadata for the node.- Name string
(string)- The device name.- Node
Class string (string)- The node class of the node.- Node
Id string - Node
Pool string (string)- The node pool of the node.- Node
Resources List<GetNode Node Resource> (list)- Resources available on the node.- Reserved
Resources List<GetNode Reserved Resource> (list)- Resources reserved on the node.- Scheduling
Eligibility string (string)- The scheduling eligibility of the node. This value is ephemeral and can change without an agent restart.- Status string
(string)- The status of the node. This value is ephemeral and can change without an agent restart.- Status
Description string (string)- The status description of the node. This value is ephemeral and can change without an agent restart.
- Attributes map[string]string
(map of string)- Driver-specific attributes.- Datacenter string
(string)- The datacenter of the node.- Drain bool
(bool)- Whether the node is in drain mode. This value is ephemeral and can change without an agent restart.- Drivers
[]Get
Node Driver (list)- A list of driver information for the node.- Host
Volumes []GetNode Host Volume (list)- A list of host volumes on the node.- Http
Addr string (string)- The HTTP address of the node.- Id string
- The provider-assigned unique ID for this managed resource.
- Meta map[string]string
(map of string)- A map of metadata for the node.- Name string
(string)- The device name.- Node
Class string (string)- The node class of the node.- Node
Id string - Node
Pool string (string)- The node pool of the node.- Node
Resources []GetNode Node Resource (list)- Resources available on the node.- Reserved
Resources []GetNode Reserved Resource (list)- Resources reserved on the node.- Scheduling
Eligibility string (string)- The scheduling eligibility of the node. This value is ephemeral and can change without an agent restart.- Status string
(string)- The status of the node. This value is ephemeral and can change without an agent restart.- Status
Description string (string)- The status description of the node. This value is ephemeral and can change without an agent restart.
- attributes Map<String,String>
(map of string)- Driver-specific attributes.- datacenter String
(string)- The datacenter of the node.- drain Boolean
(bool)- Whether the node is in drain mode. This value is ephemeral and can change without an agent restart.- drivers
List<Get
Node Driver> (list)- A list of driver information for the node.- host
Volumes List<GetNode Host Volume> (list)- A list of host volumes on the node.- http
Addr String (string)- The HTTP address of the node.- id String
- The provider-assigned unique ID for this managed resource.
- meta Map<String,String>
(map of string)- A map of metadata for the node.- name String
(string)- The device name.- node
Class String (string)- The node class of the node.- node
Id String - node
Pool String (string)- The node pool of the node.- node
Resources List<GetNode Node Resource> (list)- Resources available on the node.- reserved
Resources List<GetNode Reserved Resource> (list)- Resources reserved on the node.- scheduling
Eligibility String (string)- The scheduling eligibility of the node. This value is ephemeral and can change without an agent restart.- status String
(string)- The status of the node. This value is ephemeral and can change without an agent restart.- status
Description String (string)- The status description of the node. This value is ephemeral and can change without an agent restart.
- attributes {[key: string]: string}
(map of string)- Driver-specific attributes.- datacenter string
(string)- The datacenter of the node.- drain boolean
(bool)- Whether the node is in drain mode. This value is ephemeral and can change without an agent restart.- drivers
Get
Node Driver[] (list)- A list of driver information for the node.- host
Volumes GetNode Host Volume[] (list)- A list of host volumes on the node.- http
Addr string (string)- The HTTP address of the node.- id string
- The provider-assigned unique ID for this managed resource.
- meta {[key: string]: string}
(map of string)- A map of metadata for the node.- name string
(string)- The device name.- node
Class string (string)- The node class of the node.- node
Id string - node
Pool string (string)- The node pool of the node.- node
Resources GetNode Node Resource[] (list)- Resources available on the node.- reserved
Resources GetNode Reserved Resource[] (list)- Resources reserved on the node.- scheduling
Eligibility string (string)- The scheduling eligibility of the node. This value is ephemeral and can change without an agent restart.- status string
(string)- The status of the node. This value is ephemeral and can change without an agent restart.- status
Description string (string)- The status description of the node. This value is ephemeral and can change without an agent restart.
- attributes Mapping[str, str]
(map of string)- Driver-specific attributes.- datacenter str
(string)- The datacenter of the node.- drain bool
(bool)- Whether the node is in drain mode. This value is ephemeral and can change without an agent restart.- drivers
Sequence[Get
Node Driver] (list)- A list of driver information for the node.- host_
volumes Sequence[GetNode Host Volume] (list)- A list of host volumes on the node.- http_
addr str (string)- The HTTP address of the node.- id str
- The provider-assigned unique ID for this managed resource.
- meta Mapping[str, str]
(map of string)- A map of metadata for the node.- name str
(string)- The device name.- node_
class str (string)- The node class of the node.- node_
id str - node_
pool str (string)- The node pool of the node.- node_
resources Sequence[GetNode Node Resource] (list)- Resources available on the node.- reserved_
resources Sequence[GetNode Reserved Resource] (list)- Resources reserved on the node.- scheduling_
eligibility str (string)- The scheduling eligibility of the node. This value is ephemeral and can change without an agent restart.- status str
(string)- The status of the node. This value is ephemeral and can change without an agent restart.- status_
description str (string)- The status description of the node. This value is ephemeral and can change without an agent restart.
- attributes Map<String>
(map of string)- Driver-specific attributes.- datacenter String
(string)- The datacenter of the node.- drain Boolean
(bool)- Whether the node is in drain mode. This value is ephemeral and can change without an agent restart.- drivers List<Property Map>
(list)- A list of driver information for the node.- host
Volumes List<Property Map> (list)- A list of host volumes on the node.- http
Addr String (string)- The HTTP address of the node.- id String
- The provider-assigned unique ID for this managed resource.
- meta Map<String>
(map of string)- A map of metadata for the node.- name String
(string)- The device name.- node
Class String (string)- The node class of the node.- node
Id String - node
Pool String (string)- The node pool of the node.- node
Resources List<Property Map> (list)- Resources available on the node.- reserved
Resources List<Property Map> (list)- Resources reserved on the node.- scheduling
Eligibility String (string)- The scheduling eligibility of the node. This value is ephemeral and can change without an agent restart.- status String
(string)- The status of the node. This value is ephemeral and can change without an agent restart.- status
Description String (string)- The status description of the node. This value is ephemeral and can change without an agent restart.
Supporting Types
GetNodeDriver
- Attributes Dictionary<string, string>
(map of string)- Driver-specific attributes.- Detected bool
(bool)- Whether the driver is detected.- Healthy bool
(bool)- Whether the driver is healthy.- Name string
(string)- The device name.
- Attributes map[string]string
(map of string)- Driver-specific attributes.- Detected bool
(bool)- Whether the driver is detected.- Healthy bool
(bool)- Whether the driver is healthy.- Name string
(string)- The device name.
- attributes Map<String,String>
(map of string)- Driver-specific attributes.- detected Boolean
(bool)- Whether the driver is detected.- healthy Boolean
(bool)- Whether the driver is healthy.- name String
(string)- The device name.
- attributes {[key: string]: string}
(map of string)- Driver-specific attributes.- detected boolean
(bool)- Whether the driver is detected.- healthy boolean
(bool)- Whether the driver is healthy.- name string
(string)- The device name.
- attributes Mapping[str, str]
(map of string)- Driver-specific attributes.- detected bool
(bool)- Whether the driver is detected.- healthy bool
(bool)- Whether the driver is healthy.- name str
(string)- The device name.
- attributes Map<String>
(map of string)- Driver-specific attributes.- detected Boolean
(bool)- Whether the driver is detected.- healthy Boolean
(bool)- Whether the driver is healthy.- name String
(string)- The device name.
GetNodeHostVolume
GetNodeNodeResource
- Cpus
List<Get
Node Node Resource Cpus> (list)- Reserved CPU resources.- Devices
List<Get
Node Node Resource Device> (list)- Device resources on the node (GPUs, etc.).- Disks
List<Get
Node Node Resource Disk> (list)- Reserved disk resources.- Max
Dynamic intPort (int)- Maximum dynamic port for this node.- Memories
List<Get
Node Node Resource Memory> (list)- Reserved memory resources.- Min
Dynamic intPort (int)- Minimum dynamic port for this node.- Networks
List<Get
Node Node Resource Network> (map of string)- Reserved network resources.
- Cpus
[]Get
Node Node Resource Cpus (list)- Reserved CPU resources.- Devices
[]Get
Node Node Resource Device (list)- Device resources on the node (GPUs, etc.).- Disks
[]Get
Node Node Resource Disk (list)- Reserved disk resources.- Max
Dynamic intPort (int)- Maximum dynamic port for this node.- Memories
[]Get
Node Node Resource Memory (list)- Reserved memory resources.- Min
Dynamic intPort (int)- Minimum dynamic port for this node.- Networks
[]Get
Node Node Resource Network (map of string)- Reserved network resources.
- cpus
List<Get
Node Node Resource Cpus> (list)- Reserved CPU resources.- devices
List<Get
Node Node Resource Device> (list)- Device resources on the node (GPUs, etc.).- disks
List<Get
Node Node Resource Disk> (list)- Reserved disk resources.- max
Dynamic IntegerPort (int)- Maximum dynamic port for this node.- memories
List<Get
Node Node Resource Memory> (list)- Reserved memory resources.- min
Dynamic IntegerPort (int)- Minimum dynamic port for this node.- networks
List<Get
Node Node Resource Network> (map of string)- Reserved network resources.
- cpus
Get
Node Node Resource Cpus[] (list)- Reserved CPU resources.- devices
Get
Node Node Resource Device[] (list)- Device resources on the node (GPUs, etc.).- disks
Get
Node Node Resource Disk[] (list)- Reserved disk resources.- max
Dynamic numberPort (int)- Maximum dynamic port for this node.- memories
Get
Node Node Resource Memory[] (list)- Reserved memory resources.- min
Dynamic numberPort (int)- Minimum dynamic port for this node.- networks
Get
Node Node Resource Network[] (map of string)- Reserved network resources.
- cpus
Sequence[Get
Node Node Resource Cpus] (list)- Reserved CPU resources.- devices
Sequence[Get
Node Node Resource Device] (list)- Device resources on the node (GPUs, etc.).- disks
Sequence[Get
Node Node Resource Disk] (list)- Reserved disk resources.- max_
dynamic_ intport (int)- Maximum dynamic port for this node.- memories
Sequence[Get
Node Node Resource Memory] (list)- Reserved memory resources.- min_
dynamic_ intport (int)- Minimum dynamic port for this node.- networks
Sequence[Get
Node Node Resource Network] (map of string)- Reserved network resources.
- cpus List<Property Map>
(list)- Reserved CPU resources.- devices List<Property Map>
(list)- Device resources on the node (GPUs, etc.).- disks List<Property Map>
(list)- Reserved disk resources.- max
Dynamic NumberPort (int)- Maximum dynamic port for this node.- memories List<Property Map>
(list)- Reserved memory resources.- min
Dynamic NumberPort (int)- Minimum dynamic port for this node.- networks List<Property Map>
(map of string)- Reserved network resources.
GetNodeNodeResourceCpus
- int
(int)- Reserved CPU shares.- Reservable
Cpu List<int>Cores (list of int)- List of reservable CPU core IDs.- Total
Cpu intCores (int)- Total number of CPU cores.
- int
(int)- Reserved CPU shares.- Reservable
Cpu []intCores (list of int)- List of reservable CPU core IDs.- Total
Cpu intCores (int)- Total number of CPU cores.
- Integer
(int)- Reserved CPU shares.- reservable
Cpu List<Integer>Cores (list of int)- List of reservable CPU core IDs.- total
Cpu IntegerCores (int)- Total number of CPU cores.
- number
(int)- Reserved CPU shares.- reservable
Cpu number[]Cores (list of int)- List of reservable CPU core IDs.- total
Cpu numberCores (int)- Total number of CPU cores.
- int
(int)- Reserved CPU shares.- reservable_
cpu_ Sequence[int]cores (list of int)- List of reservable CPU core IDs.- total_
cpu_ intcores (int)- Total number of CPU cores.
- Number
(int)- Reserved CPU shares.- reservable
Cpu List<Number>Cores (list of int)- List of reservable CPU core IDs.- total
Cpu NumberCores (int)- Total number of CPU cores.
GetNodeNodeResourceDevice
GetNodeNodeResourceDisk
- Disk
Mb int (int)- Reserved disk space in MB.
- Disk
Mb int (int)- Reserved disk space in MB.
- disk
Mb Integer (int)- Reserved disk space in MB.
- disk
Mb number (int)- Reserved disk space in MB.
- disk_
mb int (int)- Reserved disk space in MB.
- disk
Mb Number (int)- Reserved disk space in MB.
GetNodeNodeResourceMemory
- Memory
Mb int (int)- Reserved memory in MB.
- Memory
Mb int (int)- Reserved memory in MB.
- memory
Mb Integer (int)- Reserved memory in MB.
- memory
Mb number (int)- Reserved memory in MB.
- memory_
mb int (int)- Reserved memory in MB.
- memory
Mb Number (int)- Reserved memory in MB.
GetNodeNodeResourceNetwork
GetNodeReservedResource
- Cpus
List<Get
Node Reserved Resource Cpus> (list)- Reserved CPU resources.- Disks
List<Get
Node Reserved Resource Disk> (list)- Reserved disk resources.- Memories
List<Get
Node Reserved Resource Memory> (list)- Reserved memory resources.- Networks Dictionary<string, string>
(map of string)- Reserved network resources.
- Cpus
[]Get
Node Reserved Resource Cpus (list)- Reserved CPU resources.- Disks
[]Get
Node Reserved Resource Disk (list)- Reserved disk resources.- Memories
[]Get
Node Reserved Resource Memory (list)- Reserved memory resources.- Networks map[string]string
(map of string)- Reserved network resources.
- cpus
List<Get
Node Reserved Resource Cpus> (list)- Reserved CPU resources.- disks
List<Get
Node Reserved Resource Disk> (list)- Reserved disk resources.- memories
List<Get
Node Reserved Resource Memory> (list)- Reserved memory resources.- networks Map<String,String>
(map of string)- Reserved network resources.
- cpus
Get
Node Reserved Resource Cpus[] (list)- Reserved CPU resources.- disks
Get
Node Reserved Resource Disk[] (list)- Reserved disk resources.- memories
Get
Node Reserved Resource Memory[] (list)- Reserved memory resources.- networks {[key: string]: string}
(map of string)- Reserved network resources.
- cpus
Sequence[Get
Node Reserved Resource Cpus] (list)- Reserved CPU resources.- disks
Sequence[Get
Node Reserved Resource Disk] (list)- Reserved disk resources.- memories
Sequence[Get
Node Reserved Resource Memory] (list)- Reserved memory resources.- networks Mapping[str, str]
(map of string)- Reserved network resources.
- cpus List<Property Map>
(list)- Reserved CPU resources.- disks List<Property Map>
(list)- Reserved disk resources.- memories List<Property Map>
(list)- Reserved memory resources.- networks Map<String>
(map of string)- Reserved network resources.
GetNodeReservedResourceCpus
- int
(int)- Reserved CPU shares.
- int
(int)- Reserved CPU shares.
- Integer
(int)- Reserved CPU shares.
- number
(int)- Reserved CPU shares.
- int
(int)- Reserved CPU shares.
- Number
(int)- Reserved CPU shares.
GetNodeReservedResourceDisk
- Disk
Mb int (int)- Reserved disk space in MB.
- Disk
Mb int (int)- Reserved disk space in MB.
- disk
Mb Integer (int)- Reserved disk space in MB.
- disk
Mb number (int)- Reserved disk space in MB.
- disk_
mb int (int)- Reserved disk space in MB.
- disk
Mb Number (int)- Reserved disk space in MB.
GetNodeReservedResourceMemory
- Memory
Mb int (int)- Reserved memory in MB.
- Memory
Mb int (int)- Reserved memory in MB.
- memory
Mb Integer (int)- Reserved memory in MB.
- memory
Mb number (int)- Reserved memory in MB.
- memory_
mb int (int)- Reserved memory in MB.
- memory
Mb Number (int)- Reserved memory in MB.
Package Details
- Repository
- HashiCorp Nomad pulumi/pulumi-nomad
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nomadTerraform Provider.
Viewing docs for Nomad v2.6.1
published on Tuesday, Apr 21, 2026 by Pulumi
published on Tuesday, Apr 21, 2026 by Pulumi
