Skip to content

Instantly share code, notes, and snippets.

@shashyajoshi
Last active July 2, 2018 22:55
Show Gist options
  • Save shashyajoshi/0ae2d145248b8f684c2a39b773d1b99f to your computer and use it in GitHub Desktop.
Save shashyajoshi/0ae2d145248b8f684c2a39b773d1b99f to your computer and use it in GitHub Desktop.
Output of the gcloud instances list command in json format
$ gcloud compute instances list --format json
(~~ part of the response ~~)
"id": "3091147347390362603",
"kind": "compute#instance",
"labels": {
"app-name": "misc",
"biz-unit": "ecom",
"env-name": "prod",
},
"metadata": {
"fingerprint": "Obvu3-_nbLE=",
"items": [
{
"key": "server-role",
"value": "app"
},
(~~ part of the response ~~)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment