配置一个lifecycle的xml格式的文本文件
表示删除Bucket下以log_backup/ 为前缀,并且相对当前时间超过2天的Object。详细的规则配置可以参考API文档
写入lifecycle
python osscmd putlifecycle oss://mybucket lifecycle.xml
0.150(s) elapsed读取lifecycle
python osscmd getlifecycle oss://mybucket
0.027(s) elapsed删除lifecycle
python osscmd deletelifecycle oss://mybucket
0.139(s) elapsed读取lifecyle
python osscmd getlifecycle oss://mybucket
Error Headers:
[('content-length', '288'), ('server', 'AliyunOSS'), ('connection', 'close'), ('x-oss-request-id', '54C74FEE5D7F6B24E5042630'), ('date', 'Tue, 27 Jan 2015 08:44:30 GMT'), ('content-type', 'application/xml')]
Error Body:
NoSuchLifecycle
Error Status:
404
getlifecycle Failed!
Copyright © 2022 摩洛哥世界杯_直播世界杯决赛 - dgaida.com All Rights Reserved.