Aliyun.Oss.Bucket.ACL.get

You're seeing just the function get, go back to Aliyun.Oss.Bucket.ACL module for more information.

Specs

get(String.t()) :: {:error, error()} | {:ok, Aliyun.Oss.Client.Response.t()}

GetBucketAcl 接口用来获取某个Bucket的访问权限。

Examples

iex> Aliyun.Oss.Bucket.ACL.get("some-bucket")
{:ok, %Aliyun.Oss.Client.Response{
    data: %{
      "AccessControlPolicy" => %{
        "AccessControlList" => %{"Grant" => "private"},
        "Owner" => %{"DislayName" => "11111111", "ID" => "11111111"}
      }
    },
    headers: [
      {"Date", "Wed, 05 Dec 2018 02:34:57 GMT"}
    ]
  }
}