Google cloud platform GCP:如何找到在特定时间运行的实例?

Google cloud platform GCP:如何找到在特定时间运行的实例?,google-cloud-platform,Google Cloud Platform,我尝试识别在我的Google Cloud Plattform环境中运行超过我指定的特定时间段的所有实例。我如何才能做到这一点?试试: gcloud compute instances list --filter="creationTimestamp.date('%s', Z)< $(date -d'5 hours ago' +%s)" --format="csv[no-heading](NAME)" gcloud计算实例列表--filter=“

我尝试识别在我的Google Cloud Plattform环境中运行超过我指定的特定时间段的所有实例。我如何才能做到这一点?

试试:

 gcloud compute instances list --filter="creationTimestamp.date('%s', Z)< $(date -d'5 hours ago' +%s)" --format="csv[no-heading](NAME)" 
gcloud计算实例列表--filter=“creationTimestamp.date('%s',Z)<$(日期-d'5小时前'+%s)”--format=“csv[无标题](名称)”
这应该列出所有运行时间超过5小时的实例