mirror of
https://github.com/autistic-symposium/shell-whiz-toolkit.git
synced 2025-05-12 11:42:20 -04:00
8 lines
286 B
Bash
Executable file
8 lines
286 B
Bash
Executable file
#!/bin/bash
|
|
|
|
for x in $(gcloud projects list | tail -n +2 | awk '{ print $1}');
|
|
do
|
|
ip_list=$(gcloud compute instances list --project $x --format json)
|
|
gcloud compute instances list --project $x --format json | jq -r '.[] | .networkInterfaces[] | .accessConfigs[] | .natIP';
|
|
done
|
|
|