I'm using the IBM Cloud CLI tool ( aka ic ) to retrieve a list of API keys from my account.
This can be retrieved as a JSON document, and then passed through jq as per the following: -
ic iam api-keys --output JSON | jq
However, I really only wanted to retrieve two fields - .id and .description
And, of course, jq can do that ...
ic iam api-keys --output JSON | jq ".[] | .id, .description"
Now I'm not going to paste the output here because ... security.
However, I continue to ❤️ jq