如何检索我所有Google Cloud Storage存储桶的大小? [英] How to retrieve the size of all my Google Cloud Storage bucket?

查看:239
本文介绍了如何检索我所有Google Cloud Storage存储桶的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以快速检索每个Google Cloud Storage存储桶的所有大小?

Is there a quick way to retrieve all the sizes of each of my Google Cloud Storage bucket?

我们在用户界面中看不到该尺寸. 我必须做:

We do not see the size in the UI. I have to do:

gsutil du -s -h gs://xxxx

每个存储桶.

推荐答案

GCS不提供此功能.您正在做的事情可能是最快的方法.

GCS does not provide this as a feature. What you're doing is likely the fastest way.

您可以编写程序以通过查看更改通知来动态跟踪存储桶的大小,也可以使用Cloud Storage的每日存储日志以获取有关其的常规报告,但是没有即时的方法来查看当前大小.

You could write a program to dynamically track the size of a bucket by watching change notifications, or you could use Cloud Storage's daily storage logs to get regular reports on it, but there's no instant way to see the current size.

这篇关于如何检索我所有Google Cloud Storage存储桶的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆