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]...
| Option | Values | Default | Effect |
|---|---|---|---|
<method> | GET, POST, PUT or DELETE | required | The request's method. |
<path> | a path under /iam | required | The route, such as /workloads; a leading /iam is dropped. |
--data | JSON, @<file> or - | — | The request's body. |
--query | key=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
GETanswered 429 or 5xx is tried 3 times. - A list, read with its query:
dormeto aws api GET /workloads -q state=ASLEEP -q limit=10.