Jq Examples: Difference between revisions
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
Get the ID of a Amazon API Gateway API with a certain name: | 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' | |||
aws apigateway get-rest-apis | jq -r '.items[] | select(.name == "blue") | .id' | |||
Other: | |||
jq -r '.Regions[] | .RegionName' | jq -r '.Regions[] | .RegionName' |
Latest revision as of 22:28, 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'
Other:
jq -r '.Regions[] | .RegionName'