nomex v0.0.4 Nomex.Nodes

Methods in this module are used to interact with Nomad’s Nodes HTTP API. More information here:

https://www.nomadproject.io/api/nodes.html

Link to this section Summary

Functions

issues a GET request to <NOMAD_HOST>/v1/node

issues a GET request to <NOMAD_HOST>/v1/node

issues a GET request to <NOMAD_HOST>/v1/nodes

issues a GET request to <NOMAD_HOST>/v1/nodes?prefix=<prefix>

issues a GET request to <NOMAD_HOST>/v1/nodes

issues a GET request to <NOMAD_HOST>/v1/nodes?prefix=<prefix>

Link to this section Functions

Link to this function allocations(node_id)
Link to this function allocations!(node_id)

issues a GET request to <NOMAD_HOST>/v1/node

returns a tuple with status (:ok, :error) and the %Nomex.Response{}

issues a GET request to <NOMAD_HOST>/v1/node

returns a %Nomex.Response{} or raises exception

issues a GET request to <NOMAD_HOST>/v1/nodes

returns a tuple with status (:ok, :error) and the %Nomex.Response{}

issues a GET request to <NOMAD_HOST>/v1/nodes?prefix=<prefix>

returns a tuple with status (:ok, :error) and the %Nomex.Response{}

issues a GET request to <NOMAD_HOST>/v1/nodes

returns a %Nomex.Response{} or raises exception

Link to this function nodes!(prefix)
nodes!(String.t()) :: Nomex.Response.t()

issues a GET request to <NOMAD_HOST>/v1/nodes?prefix=<prefix>

returns a %Nomex.Response{} or raises exception