Reputation: 593
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
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