Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud storage 它是现有对象的可计费存储类吗?_Google Cloud Storage_Google Cloud Platform_Gcloud_Gsutil - Fatal编程技术网

Google cloud storage 它是现有对象的可计费存储类吗?

Google cloud storage 它是现有对象的可计费存储类吗?,google-cloud-storage,google-cloud-platform,gcloud,gsutil,Google Cloud Storage,Google Cloud Platform,Gcloud,Gsutil,我试图更改一组现有对象(超过300 GBs)的存储类: 我先在一个文件上试过: fyn@pod-arch:~$ gsutil ls -L gs://some-bucket/sub-dir/audioArch.mp3 gs://some-bucket/sub-dir/audioArch.mp3: Creation time: Fri, 29 Jul 2016 00:52:51 GMT Update time: Fri, 05 Aug 2016

我试图更改一组现有对象(超过300 GBs)的存储类:

我先在一个文件上试过:

fyn@pod-arch:~$ gsutil ls -L gs://some-bucket/sub-dir/audioArch.mp3
gs://some-bucket/sub-dir/audioArch.mp3:
    Creation time:          Fri, 29 Jul 2016 00:52:51 GMT
    Update time:            Fri, 05 Aug 2016 15:40:51 GMT
    Storage class:          DURABLE_REDUCED_AVAILABILITY
    Content-Language:       en
    Content-Length:         43033404
    Content-Type:           audio/mpeg
    ... ...

fyn@pod-arch:~$ gsutil -m rewrite -s coldline gs://some-bucket/sub-dir/audioArch.mp3
- [1/1 files][ 41.0 MiB/ 41.0 MiB] 100% Done
Operation completed over 1 objects/41.0 MiB.

fyn@pod-arch:~$ gsutil ls -L gs://some-bucket/sub-dir/audioArch.mp3
gs://some-bucket/sub-dir/audioArch.mp3:
    Creation time:          Sun, 30 Oct 2016 23:49:34 GMT
    Update time:            Sun, 30 Oct 2016 23:49:34 GMT
    Storage class:          COLDLINE
    Content-Language:       en
    Content-Length:         43033404
    Content-Type:           audio/mpeg
    ... ...
然后我又在15个物体上试过,然后在一个子物体中的其他物体上试过非常有魅力☺, 尽管该操作会覆盖创建和更新时间

但我有两个后续问题:

  • gsutil rewrite
    操作是否可计费
  • 可以保留创建时间吗
  • 非常感谢

    干杯

    费纳利

    是的,它作为a类操作进行计费(它使用 storage.objects.rewrite,请参阅)。不 无法保留创建/更新时间,因为重写 创建新的对象生成

    -特拉维斯·霍布拉