Jq Examples

From NovaOrdis Knowledge Base
Revision as of 22:28, 10 April 2019 by Ovidiu (talk | contribs) (→‎Organizatorium)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Organizatorium

Get the ID of a Amazon API Gateway API with a certain name:

aws apigateway get-rest-apis | jq -r '.items[] | select(.name == "blue") | .id'

Other:

jq -r '.Regions[] | .RegionName'