桶策略配置非法。
用户设置桶策略时,多条策略具有相同取值的 Sid
字段。
您配置桶策略时,Sid
字段取值重复。
PUT /?policy HTTP/1.1 Host: bucketname.tos-cn-beijing.volces.com Date: Fri, 30 Jul 2021 13:59:18 GMT Authorization: authorization xxx { "Version": "2012-10-17", "Statement": [ { "Sid": "1", "Effect": "Allow", "Principal":"*" "Action": ["tos:Get*"], "Resource": ["trn:tos:::bucketname/*"] }, { "Sid": "1", "Effect": "Deny", "Principal":"*" "Action": ["tos:Delete*"], "Resource": ["trn:tos:::bucketname/*"] }, ] }
参见桶策略模板及参数说明,正确构造桶策略配置,确保 Sid
字段取值唯一。