mirror of
https://github.com/autistic-symposium/shell-whiz-toolkit.git
synced 2025-08-01 10:56:08 -04:00
move dirs
This commit is contained in:
parent
0402a432cf
commit
9fac338a27
6 changed files with 1 additions and 0 deletions
7
gcloud/get_public_ips.sh
Normal file
7
gcloud/get_public_ips.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue