对象存储服务 OBS-设置桶策略:运行示例

时间:2024-12-11 17:17:47

运行示例

  • 以Windows操作系统为例,运行obsutil bucketpolicy obs://bucket -method=put -localfile=d:\temp\policy.json,指定基于policy.json文件为桶bucket设置桶策略。
    obsutil bucketpolicy obs://bucket -method=put -localfile=d:\temp\policy.json
    
    Start at 2024-09-30 07:59:28.8675681 +0000 UTC
    
    Put bucketPolicy succeed, requestId is [04050000016836C5DA6FB21F14A2A0C0]
support.huaweicloud.com/utiltg-obs/obs_11_0406.html