Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

HashiCorp Nomad Nodes API

Manage and query client nodes in the cluster.

HashiCorp Nomad Nodes API is one of 8 APIs that HashiCorp Nomad publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Nodes. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, and a getting-started guide.

This API exposes 7 operations across 7 paths. It is described by OpenAPI 3.1.0, at version 1.8.

Requests are made against 2 base URLs: http://127.0.0.1:4646/v1, https://{nomad_host}:{port}/v1.

7 operations 7 paths 0 schemas 3 GET4 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.8
Servers
http://127.0.0.1:4646/v1
https://{nomad_host}:{port}/v1
Authentication
API Key, HTTP Bearer
Contact
Resource Areas
1

Authentication & Security 2

HashiCorp Nomad Nodes API declares 2 security schemes for authenticating requests. An API key is passed in the header as X-Nomad-Token (NomadToken). It accepts HTTP bearer tokens (BearerAuth). By default, every request must be authenticated.

Paths & Operations 7

Across 7 paths, the API surfaces 7 operations — 3 GET, 4 POST. Each is listed below with its method, path, parameters, and response codes.

Nodes 7

Manage and query client nodes in the cluster.

GET
/nodes
List nodes
1 param → 200
GET
/node/{node_id}
Read node
1 param → 200
GET
/node/{node_id}/allocations
List node allocations
1 param → 200
POST
/node/{node_id}/evaluate
Create node evaluation
1 param → 200
POST
/node/{node_id}/drain
Toggle node drain
1 param → 200
POST
/node/{node_id}/purge
Purge node
1 param → 200
POST
/node/{node_id}/eligibility
Toggle node eligibility
1 param → 200

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

hashicorp-nomad-nodes-api-openapi.yml Raw ↑

Other APIs HashiCorp Nomad publishes across the network.

HashiCorp Nomad ACL API
HashiCorp Nomad Allocations API
HashiCorp Nomad Deployments API
HashiCorp Nomad Evaluations API
HashiCorp Nomad Jobs API
HashiCorp Nomad Namespaces API
HashiCorp Nomad System API