百度智能云

All Product Document

          Object Storage

          GetBucketStorageClass

          Interface Description

          This interface is used to get the default storage type of the bucket.

          Request

          • Request syntax

            ```
            GET /?storageClass HTTP/1.1
            Host: <BcuketName>.bj.bcebos.com
            x-bce-date: date
            Content-Type: application/json; charset=utf-8
            Authorization: AuthorizationString
            ```
          • Request header field

            No special parameters.

          • Request parameters

            No special parameters.

          Response

          • Response Header Field

            No special header field.

          • Response element

            Name Type Description
            storageClass String Storage type. It returns STANDARD for the standard storage, STANDARD_IA for the infrequent access, COLD for the cold storage, and archive for the archive storage.

          Example

          • Request example

            GET /?storageClass HTTP/1.1
            Host: <BcuketName>.bj.bcebos.com
            x-bce-date: Wed, 31 May 2017 09:34:40 GMT
            Authorization: AuthorizationString
          • Response example

              HTTP/1.1 200 OK
              x-bce-request-id: 2eb2b34d-654d-fd8a-b49b-3049ca786409
              Date: Wed, 31 May 2017 09:34:40 GMT
              Content-Type: application/json; charset=utf-8
              Content-Length: 31
              Connection: keep-alive
              Server: BceBos
            
              {
                  "storageClass": "COLD"
              }
          Previous
          GetBucketLocation
          Next
          HeadBucket