瀏覽代碼

list object

chenjunkai 6 年之前
父節點
當前提交
5edc8777ba
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Controller/StsOssController.py

+ 4 - 4
Controller/StsOssController.py

@@ -71,10 +71,10 @@ class StsOssView(View):
             "Version": "1",
             "Statement": [
                 {
-                    # "Action": ["oss:PutObject", "oss:DeleteObject", "oss:GetObject",""],
-                    "Action": ["*"],
-                    # "Resource": [Resource_access],
-                    "Resource": ["*"],
+                    "Action": ["oss:PutObject", "oss:DeleteObject", "oss:GetObject","oss:ListObjects"],
+                    # "Action": ["*"],
+                    "Resource": [Resource_access],
+                    # "Resource": ["*"],
                     "Effect": "Allow",
                     "Condition": {
                         # "IpAddress": {"acs:SourceIp": ip}