Dormeto

Docs

dormeto aws api

Any route of the manager's API, called with your profile's signature.

1 min read

api

Calls a route of the manager's API, signed, and prints its answer.

dormeto aws api <method> <path> [--data <json>|@<file>|-] [-q|--query key=value]...
OptionValuesDefaultEffect
<method>GET, POST, PUT or DELETErequiredThe request's method.
<path>a path under /iamrequiredThe route, such as /workloads; a leading /iam is dropped.
--dataJSON, @<file> or -—The request's body.
--querykey=value, repeatable—A query parameter; -q for short.
dormeto aws api GET /health
{
  "status": "ok",
  "version": "0.24.0"
}
  • An answer other than 2xx prints HTTP <status> on stderr: exit 1.
  • A GET answered 429 or 5xx is tried 3 times.
  • A list, read with its query: dormeto aws api GET /workloads -q state=ASLEEP -q limit=10.