Object storage
Bucket operation
GetBucketLifecycle
Returns the bucket's lifecycle rules.
GET404 on successluzon
Request
Request line
GET https://<bucket>-<appid>.cos.luzon.convergecloudcos.com/?lifecycleAddressed at the bucket host, <bucket>-<appid>.cos.luzon.convergecloudcos.com, where <appid> is the account AppId.
Query parameters: lifecycle. Every query parameter in the request must also be named in q-url-param-list and covered by the signature.
Behaviour
A bucket with no lifecycle configuration answers 404 NoSuchLifecycleConfiguration. That is the normal state of a new bucket.
Example
curl
curl -X GET \
-H "Authorization: q-sign-algorithm=sha1&q-ak=…&q-signature=…" \
"https://<bucket>-<appid>.cos.luzon.convergecloudcos.com/?lifecycle"Response — 404
<?xml version='1.0' encoding='utf-8' ?>
<Error>
<Code>NoSuchLifecycleConfiguration</Code>
<Message>The lifecycle configuration does not exist.</Message>
<Resource>example-bucket-1250000000.cos.luzon.convergecloudcos.com</Resource>
<RequestId>NmFhYmNhYzVfNGUxMjMyMGFfNmYzZGNfNjU1ZTY0</RequestId>
</Error>