Object storage
Bucket operation
GetBucketVersioning
Returns whether object versioning is enabled.
GET200 on successluzon
Request
Request line
GET https://<bucket>-<appid>.cos.luzon.convergecloudcos.com/?versioningAddressed at the bucket host, <bucket>-<appid>.cos.luzon.convergecloudcos.com, where <appid> is the account AppId.
Query parameters: versioning. Every query parameter in the request must also be named in q-url-param-list and covered by the signature.
Behaviour
A bucket that has never had versioning configured returns an empty VersioningConfiguration element rather than an error.
Example
curl
curl -X GET \
-H "Authorization: q-sign-algorithm=sha1&q-ak=…&q-signature=…" \
"https://<bucket>-<appid>.cos.luzon.convergecloudcos.com/?versioning"Response — 200
<?xml version='1.0' encoding='utf-8' ?>
<VersioningConfiguration/>