Get bucket storage class

To list a bucket's storage class you make a GET request that is scoped to a bucket and you use the storageClass query string parameter. The storage class value is returned in an XML document in the response body.

Query string parameters

Parameter Description Required
storageClass You can use this to display the storage class of the bucket, such as MULTI_REGIONAL, REGIONAL, NEARLINE or COLDLINE. No

Request headers

See common request headers.

Request body elements

This request does not include an XML document in the request body.

Request syntax

The following syntax applies to GET Bucket requests that use the storageClass query string parameter.

GET /?storageClass HTTP/1.1
Host: <bucket>.storage.googleapis.com
Date: <date>
Content-Length: <request body length>
Authorization: <authentication string>

Response headers

The request can return a variety of response headers depending on the request headers you use.

Response body elements

The following response body elements are applicable only if you use the storageClass query string parameter to display how data is stored in the bucket.

Element Description
StorageClass The storage class of the bucket, such as MULTI_REGIONAL, REGIONAL, NEARLINE or COLDLINE.
本頁內容對您是否有任何幫助?請提供意見:

傳送您對下列選項的寶貴意見...

這個網頁
Cloud Storage
需要協助嗎?請前往我們的支援網頁