<span id="yqwkp"><blockquote id="yqwkp"></blockquote></span>
<acronym id="yqwkp"><sup id="yqwkp"></sup></acronym>
  • <acronym id="yqwkp"></acronym>

    <acronym id="yqwkp"><blockquote id="yqwkp"></blockquote></acronym>
      <track id="yqwkp"><i id="yqwkp"></i></track>

      <optgroup id="yqwkp"><li id="yqwkp"><del id="yqwkp"></del></li></optgroup>
      技術文章
      阿里RAM用戶指定OSS中訪問目錄權限
      發布日期:2023-04-29 閱讀次數:1213 字體大?。?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用戶無法刪除文件,則把刪除權限(紅底部分)去掉即可

      
       
      CHINESETUBE国产高清|国产jlzzjlzz视频免费|国产真街拍裙底系列在线观看|国产福利一区二区精品秒拍
      <span id="yqwkp"><blockquote id="yqwkp"></blockquote></span>
      <acronym id="yqwkp"><sup id="yqwkp"></sup></acronym>
    1. <acronym id="yqwkp"></acronym>

      <acronym id="yqwkp"><blockquote id="yqwkp"></blockquote></acronym>
        <track id="yqwkp"><i id="yqwkp"></i></track>

        <optgroup id="yqwkp"><li id="yqwkp"><del id="yqwkp"></del></li></optgroup>