Cluster API Nodes
Cluster API documentation for nodes
Nodes
- GET /nodes
Get the list of all nodes registered with Nomad
Example response:
[ { "Address": "", "ID": "cf93d6f6-5aa4-45d2-9bab-0f91e162eec5", "Datacenter": "default", "Name": "game-1", "NodeClass": "game", "Version": "", "Drain": false, "SchedulingEligibility": "", "Status": "ready", "StatusDescription": "", "Drivers": null, "CreateIndex": 20, "ModifyIndex": 21 }, { "Address": "", "ID": "ec202b68-3bc0-bdc8-acc6-b953becc7300", "Datacenter": "default", "Name": "public-1", "NodeClass": "public", "Version": "", "Drain": false, "SchedulingEligibility": "", "Status": "ready", "StatusDescription": "", "Drivers": null, "CreateIndex": 11, "ModifyIndex": 49 }, { "Address": "", "ID": "ec2e1ce6-bc4c-2a30-6f82-184bea7bf477", "Datacenter": "default", "Name": "internal-1", "NodeClass": "internal", "Version": "", "Drain": false, "SchedulingEligibility": "", "Status": "ready", "StatusDescription": "", "Drivers": null, "CreateIndex": 9, "ModifyIndex": 44 }, { "Address": "", "ID": "ec2df070-5557-46bd-6f92-8bfb1a320ac4", "Datacenter": "default", "Name": "encoding-1", "NodeClass": "encoding", "Version": "", "Drain": false, "SchedulingEligibility": "", "Status": "ready", "StatusDescription": "", "Drivers": null, "CreateIndex": 7, "ModifyIndex": 63 }, { "Address": "", "ID": "ec2d880d-5a47-c0c8-2693-346f02d134ce", "Datacenter": "default", "Name": "server-1", "NodeClass": "server", "Version": "", "Drain": false, "SchedulingEligibility": "", "Status": "ready", "StatusDescription": "", "Drivers": null, "CreateIndex": 5, "ModifyIndex": 6 } ]
- GET /node/{nodeID}
Status of a client node. For more details. For more information, visit https://www.nomadproject.io/api/nodes.html#read-node
- Parameters:
nodeID – The node’s id
Example response:
{ "ID": "ec257753-0a6c-9e0f-539e-9b411b2e7c35", "Datacenter": "default", "Name": "server-1", "HTTPAddr": "10.0.104.162:4646", "TLSEnabled": false, "Attributes": { "consul.datacenter": "default", "consul.revision": "5174058f+CHANGES", "consul.server": "true", "consul.version": "1.1.0", "cpu.arch": "amd64", "cpu.frequency": "2400", "cpu.modelname": "Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz", "cpu.numcores": "1", "cpu.totalcompute": "2400", "driver.docker": "1", "driver.docker.version": "18.03.1-ce", "driver.docker.volumes.enabled": "1", "driver.exec": "1", "kernel.name": "linux", "kernel.version": "4.9.0-6-amd64", "memory.totalbytes": "2099875840", "nomad.revision": "4cd2cf1c3c9ed6dbd0b8261f9bad0e375c182d7f+CHANGES", "nomad.version": "0.5.6", "os.name": "debian", "os.signals": "SIGTERM,SIGKILL,SIGSYS,SIGTSTP,SIGTTOU,SIGXFSZ,SIGABRT,SIGINT,SIGALRM,SIGCHLD,SIGFPE,SIGHUP,SIGSEGV,SIGBUS,SIGIOT,SIGTRAP,SIGPROF,SIGQUIT,SIGTTIN,SIGUSR2,SIGIO,SIGSTOP,SIGXCPU,SIGCONT,SIGILL,SIGPIPE,SIGURG,SIGUSR1", "os.version": "9.4", "platform.aws.instance-type": "t2.small", "platform.aws.placement.availability-zone": "us-east-1b", "unique.cgroup.mountpoint": "/sys/fs/cgroup", "unique.consul.name": "server-1", "unique.hostname": "ip-10-0-104-162", "unique.network.ip-address": "10.0.104.162", "unique.platform.aws.ami-id": "ami-dcf2a6a3", "unique.platform.aws.hostname": "ip-10-0-104-162.ec2.internal", "unique.platform.aws.instance-id": "i-08d60e0f8dd383e1d", "unique.platform.aws.local-hostname": "ip-10-0-104-162.ec2.internal", "unique.platform.aws.local-ipv4": "10.0.104.162", "unique.platform.aws.public-hostname": "ec2-54-157-50-21.compute-1.amazonaws.com", "unique.platform.aws.public-ipv4": "54.157.50.21", "unique.storage.bytesfree": "5996400640", "unique.storage.bytestotal": "8386961408", "unique.storage.volume": "/dev/xvda1" }, "Resources": { "CPU": 2400, "MemoryMB": 2002, "DiskMB": 5718, "IOPS": 0, "Networks": [ { "Public": false, "CIDR": "10.0.104.162/32", "ReservedPorts": null, "DynamicPorts": null, "IP": "10.0.104.162", "MBits": 125 } ] }, "Reserved": { "CPU": 0, "MemoryMB": 0, "DiskMB": 0, "IOPS": 0, "Networks": null }, "Links": { "aws.ec2": "us-east-1b.i-08d60e0f8dd383e1d", "consul": "default.server-1" }, "Meta": null, "NodeClass": "server", "Drain": false, "Status": "ready", "StatusDescription": "", "StatusUpdatedAt": 1531402700, "CreateIndex": 5, "ModifyIndex": 23 }