百度智能云

All Product Document

          Object Storage

          Get Region Where Bucket Resides

          Interface Description

          This interface is used to get the location of the bucket.

          Request URI

          GET /v1/{bucketName}/?location

          Parameter Name Parameter Type Required Description Example Value Parameter Position
          bucketName String Yes Bucket name "bucketName_example" Path

          Request Body Parameters

          Instructions for Data Structure of Request Body Field

          Response Body Parameters

          Instructions for Data Structure of Response Body Field

          Parameter name Parameter type Description Example value
          locationConstraint String The region where the bucket resides. bj

          Request Example

          GET /v1/bucketName_example/?location
          Common Request Header
          
          
          { }

          Response Example

          HTTP/1.1 200 OK
          <Common response header>
          
          {
            "locationConstraint" : "bj"
          }

          Error Code

          Refer to the universal error code.

          Previous
          Enumerate Objects under Bucket
          Next
          Get Default Storage Type of Bucket