如何识别Amazon S3中的存储类别? [英] How to identify the storage class in Amazon S3?

查看:124
本文介绍了如何识别Amazon S3中的存储类别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我将媒体资产存储在 S3标准存储中.30天后,它移至 S3标准不频繁访问存储,而90天后,它根据我配置的生命周期策略移至Glacier.

Suppose I have media assets stored in S3 Standard Storage. After 30 days it moved to S3 Standard-Infrequent Access Storage and after 90 days it is moved to Glacier by lifecycle policies that I configured.

那么在任何时候我如何识别对象的存储位置?

So at any point of time how can I identify where the object is stored?

推荐答案

对象的存储类指示数据的存储"位置.

The Storage Class of an object indicates where the data is "stored".

对于 Standard Standard-Infrequent Access(Standard-IA),该对象在Amazon S3中保​​持正常状态.

For Standard and Standard-Infrequent Access (Standard-IA), the object is kept as normal in Amazon S3.

对于冰川,对象仍在Amazon S3中(包括名称,大小,元数据等)列出,但对象的内容对象存储在冰川中.

For Glacier, the object is still listed within Amazon S3 (including name, size, metadata, etc) but the content of the object is stored in Glacier.

可以通过管理控制台,API调用或 AWS命令行界面(CLI),例如:

The storage class can be determined via the Management Console, API call or AWS Command-Line Interface (CLI), eg:

$ aws s3api list-objects --bucket my-bucket

 {
    "Contents": [
        {
            "LastModified": "2014-06-19T00:30:49.000Z", 
            "ETag": "\"c963435563f7e3e6b143b50ff9c68168\"", 
            "StorageClass": "GLACIER", 
            "Key": "foo.jpg", 
            "Owner": {
                "DisplayName": "fred", 
                "ID": "1de5d80077bd70578d092d9b450b0c916c2c79d1d2b550e5a99a4d21ddb1ab1a"
            }, 
            "Size": 15091
        }
    ]
}

请参阅:

这篇关于如何识别Amazon S3中的存储类别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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