Aliyun.Oss.Bucket.Website.put
You're seeing just the function
put
, go back to Aliyun.Oss.Bucket.Website module for more information.
Link to this function
put(bucket, xml_body)
Specs
PutBucketWebsite接口用于将一个bucket设置成静态网站托管模式,以及设置跳转规则。
Examples
iex> xml_body = """
...> <?xml version="1.0" encoding="UTF-8"?>
...> <WebsiteConfiguration>
...> <IndexDocument>
...> <Suffix>index.html</Suffix>
...> </IndexDocument>
...> ...
...> ...
...> </WebsiteConfiguration>
...> """
iex> Aliyun.Oss.Bucket.Website.put("some-bucket", xml_body)
{:ok,
%Aliyun.Oss.Client.Response{
data: "",
headers: [
{"Server", "AliyunOSS"},
{"Date", "Fri, 11 Jan 2019 05:05:50 GMT"},
{"Content-Length", "0"},
{"Connection", "keep-alive"},
{"x-oss-request-id", "5C0000000000000000000000"},
{"x-oss-server-time", "63"}
]
}}