Roh*_*ith 7 google-cloud-platform gcloud
我正在执行以下命令来获取GCP项目中所有实例的列表,但这不显示附加到VM的标签。仅供参考
gcloud compute instances list
Run Code Online (Sandbox Code Playgroud)
您能在这里帮忙吗..!
问候,Rohith
使用gcloud主题格式获取详细的输出:
gcloud compute instances list --format=json
Run Code Online (Sandbox Code Playgroud)
要么
gcloud compute instances list --format='table(name,status,tags.list())'
Run Code Online (Sandbox Code Playgroud)