Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to check that GCE Instance is being deleted

Is there a way using gcloud or http://metadata.google.internal/ to check that GCE instance is in state "is being deleted" or "is being verified"?

Solved Solved
0 2 842
1 ACCEPTED SOLUTION

Thanks. I found better solution here: https://cloud.google.com/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups

gcloud compute instance-groups managed list-instances gives output with column "ACTION" and there are statuses like NONE, VERIFYING, DELETING.

View solution in original post