Aliyun.Oss.Bucket.Logging.get

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

Specs

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

GetBucketLogging 用于查看Bucket的访问日志配置情况。

Examples

iex> Aliyun.Oss.Bucket.Logging.get("some-bucket")
{:ok, %Aliyun.Oss.Client.Response{
  data: %{
    "BucketLoggingStatus" => %{
      "LoggingEnabled" => %{
        "TargetBucket" => "some-bucket",
        "TargetPrefix" => "oss-accesslog/"
      }
    }
  },
  headers: [
    {"Date", "Wed, 05 Dec 2018 02:34:57 GMT"},
    ...
  ]
}}