对象存储服务 OBS-获取桶的生命周期配置:运行示例

时间:2025-04-16 09:37:52

运行示例

  • 以Windows操作系统为例,运行obsutil lifecycle obs://bucket -method=get -localfile=d:\temp\lifecycle.json,指定导出桶bucket的桶生命周期规则至本地文件lifecycle.json。
    obsutil lifecycle obs://bucket -method=get  -localfile=d:\temp\lifecycle.json
    
    Start at 2024-09-30 08:08:59.9412332 +0000 UTC
    
    Export lifecycle rules to [d:\temp\lifecycle.json] succeed, requestId is [00000195D6546E804019204E29C1B8D8]
support.huaweicloud.com/utiltg-obs/obs_11_0093.html