Aliyun.Oss.Bucket.Lifecycle.get

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

Specs

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

GetBucketLifecycle 用于查看Bucket的Lifecycle配置。

Examples

iex> Aliyun.Oss.Bucket.Lifecycle.get("some-bucket")
{:ok, %Aliyun.Oss.Client.Response{
  data: %{
    "LifecycleConfiguration" => %{
      "Rule" => %{
        "ID" => "delete after one day",
        "Prefix" => "logs/",
        "Status" => "Enabled",
        "Expiration" => %{
          "Days" => "1"
        }
      }
    }
  },
  headers: [
    {"Date", "Wed, 05 Dec 2018 02:34:57 GMT"},
    ...
  ]
}}