Eva
Eva

Reputation: 593

In glcoud cli is there a way to list Instance created in last one hour?

I am looking for a gcloud CLI command to retrieve all the instance created in the last one hour

gcloud compute instances list

Upvotes: 1

Views: 340

Answers (1)

guillaume blaquiere
guillaume blaquiere

Reputation: 75715

You can filter the results, like this.

gcloud compute instances list --filter="creationTimestamp>=2020-12-01T00:00:00"

Then, build the timestamp that you want.

Upvotes: 2

Related Questions