GetBucketArchiveDirectRead

调用GetBucketArchiveDirectRead查看Bucket是否开启归档直读。

注意事项

请求语法

GET /?bucketArchiveDirectRead HTTP/1.1
Host: BucketName.oss.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue

请求头

此接口仅涉及公共请求头。更多信息,请参见公共请求头(Common Request Headers)

响应头

此接口仅涉及公共响应头。更多信息,请参见公共响应头(Common Response Headers)

名称

类型

是否必选

示例值

描述

ArchiveDirectReadConfiguration

容器

不涉及

Bucket归档直读配置。

Enabled

布尔型

true

Bucket是否开启归档直读。取值如下:

  • true:开启归档直读。

  • false:关闭归档直读。

示例

  • 请求示例

    GET /?bucketArchiveDirectRead HTTP/1.1 
    Host: oss-example.oss-cn-hangzhou.aliyuncs.com 
    Date: Mon, 24 Apr 2023 15:56:37 GMT
    Authorization: OSS qn6q**************:77Dv****************
  • 返回示例

    GET /?bucketArchiveDirectRead HTTP/1.1
    Date: Mon, 24 Apr 2023 15:56:37 GMT
    Content-Length:60
    Content-Type: application/xml
    Authorization: OSS qn6q**************:77Dv****************
    Host: oss-example.oss-cn-hangzhou.aliyuncs.com
    
    <?xml version="1.0" encoding="UTF-8"?>
    <ArchiveDirectReadConfiguration>
        <Enabled>true</Enabled>
    </ArchiveDirectReadConfiguration>