Jq Examples: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * jq =Organizatorium= Get the ID of a Amazon API Gateway API with a certain name: <syntaxhighlight lang='json'> aws apigateway get-rest-apis | j...") |
|||
Line 10: | Line 10: | ||
aws apigateway get-rest-apis | jq -r '.items[] | select(.name == "blue") | .id' | aws apigateway get-rest-apis | jq -r '.items[] | select(.name == "blue") | .id' | ||
</syntaxhighlight> | </syntaxhighlight> | ||
jq -r '.Regions[] | .RegionName' |
Revision as of 22:27, 10 April 2019
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'
jq -r '.Regions[] | .RegionName'