百度智能云

All Product Document

          Object Storage

          Get Bucket Trash Enabling Status

          Interface Description

          This interface is used to get the bucket trash enabling status and return the current trash directory name. The directory name is .trash by default. The user must be the source bucket owner with the FULL_CONTROL permission and the destination bucket owner.

          Request URI

          GET /v1/{bucketName}/?trash

          Request Body Parameters

          None

          Response Body Parameters

          None

          Request Example

          None

          Response Example

          HTTP/1.1 200 OK
          <Common response header>
          
          {
            "trashDir" : ".trash/"
          }

          Error Code

          Refer to the universal error code.

          Previous
          Enable Bucket Trash Feature
          Next
          How to Call API