Get bucket lifecycle
Returns the lifecycle rules that automatically delete uploads in a bucket.
Required scopes: upl:bucket:read
Authorization
OAuth2 upl:bucket:readAuthorizationBearer <token>
OAuth 2.0 authorization
In: header
Scope: upl:bucket:read
Header Parameters
Connect-Protocol-Version?number
Define the version of the Connect protocol
Connect-Timeout-Ms?number
Define the timeout, in ms
Request Body
application/json
bucketRef*|&|
[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.BucketsService/GetBucketLifecycle" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{ "bucketRef": "map[bucketId:1042]" }'{
"rules": [
"map[enabled:true expirationDays:30 filter:map[objectSizeGreaterThan:0 objectSizeLessThan:104857600 prefix:/tmp/ tags:[temporary]] id:expire-tmp noncurrentVersionExpirationDays:7]"
]
}