Baidu AI Cloud
中国站

百度智能云

Object Storage

Get Default Storage Type of Bucket

Interface Description

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

Request URI

GET /v1/{bucketName}/?storageClass

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
storageClass String Storage class, which may be the standard storage (Return STANDARD), infrequent access (Return STANDARD_IA), or cold storage (Return COLD) archive storage (Return ARCHIVE). COLD

Request Example

GET /v1/bucketName_example/?storageClass
Common Request Header


{ }

Response Example

HTTP/1.1 200 OK
<Common response header>

{
  "storageClass" : "COLD"
}

Error Code

Refer to the universal error code.

Previous
Get Region Where Bucket Resides
Next
Check Whther Bucket Exists and Requester Has Permission to Access the Bucket