- Documentation
Torch Object Storage
API Reference
Bucket
Versioning
GetBucketVersioning
Versioning
GetBucketVersioning
GetBucketVersioning
Feature description
This interface retrieves the versioning status of a bucket.
Notes
- Only users with GetBucketVersioning permission can call the GetBucketVersioning interface. By default, the bucket owner has direct GetBucketVersioning permission; the owner can also grant this permission to other users. For detailed instructions on managing permissions using bucket policies, see Bucket Authorization Policy Management.
- HNS buckets do not support the GetBucketVersioning interface.
Request syntax
GET /?versioning HTTP/1.1
Host: bucketname.tos-cn-beijing.volces.com
Authorization: authorization string
Request parameters and headers
Request body elements
No elements are used.
Response headers
Response body elements
Sample request
GET /?versioning HTTP/1.1
Host: bucketname.tos-cn-beijing.volces.com
Date: Wed, 20 Sep 2023 02:39:48 GMT
Authorization: authorization string
Sample response
x-tos-id-2: ef60010a5b74f967650a5b74-ac1a2718-1qin80-GBV-cb-tos-front-aza-1
x-tos-request-id: ef60010a5b74f967650a5b74-ac1a2718-1qin80-GBV-cb-tos-front-aza-1
Date: Wed, 20 Sep 2023 02:28:54 GMT
Last updated: 2025.09.08 17:32:49