<output id="v9fpd"></output>

    <video id="v9fpd"></video>

      <output id="v9fpd"></output>

          <big id="v9fpd"></big>

          技術文章
          阿里RAM用戶指定OSS中訪問目錄權限
          發布日期:2023-04-29 閱讀次數:2796 字體大?。?a href="javascript:;" onclick="ChangeFontSize('content',16)">大

          以下是控制訪問整個Bucket的代碼

          {
              "Version": "1",
              "Statement": [
                  {
                      "Effect": "Allow",
                      "Action": "oss:ListBuckets",
                      "Resource": "acs:oss:*:*:*"
                  },
                  {
                      "Effect": "Allow",
                      "Action": "oss:Listobjects",
                      "Resource": "acs:oss:*:*:bz-bh"
                  },
                  {
                      "Effect": "Allow",
                      "Action": "oss:GetObject",
                      "Resource": "acs:oss:*:*:bz-bh"
                  }
              ]
          }

          bz-bh為Bucket

          ------------以下是控制訪問一級目錄的代碼

          {
            "Statement": [
              {
                "Effect": "Allow",
                "Action": "oss:*",
                "Resource": "acs:oss:*:*:yiskyxm/ahzl.msz315.com/*"
              },
              {
                "Effect": "Allow",
                "Action": "oss:ListObjects",
                "Resource": "acs:oss:*:*:yiskyxm",
                "Condition": {
                  "StringLike": {
                    "oss:Prefix": [
                      "",
                      "ahzl.msz315.com/",
                      "ahzl.msz315.com/*"
                    ]
                  },
                  "StringEquals": {
                    "oss:Delimiter": "/"
                  }
                }
              },
              {
                "Effect": "Allow",
                "Action": "oss:ListBuckets",
                "Resource": "acs:oss:*:*:*"
              }
            ],
            "Version": "1"
          }

           

          如果想讓RAM用戶無法刪除文件,則把刪除權限(紅底部分)去掉即可

          
           
          亚洲色偷偷偷网站色偷一区_国产日韩欧美丝袜一区二区_99re66在线精品免费观看_一级做α爰片久久毛片

          <output id="v9fpd"></output>

            <video id="v9fpd"></video>

              <output id="v9fpd"></output>

                  <big id="v9fpd"></big>