Put object lifecycle policy.
PUT {{baseUrl}}/n/:namespaceName/b/:bucketName/l
Creates or replaces the object lifecycle policy for the bucket.
Request Body
{"items"=>[{"action"=>"anim Lorem incididunt eiusmod", "isEnabled"=>true, "name"=>"non aliqua eiusmod", "timeAmount"=>-21027883, "timeUnit"=>"DAYS", "objectNameFilter"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "target"=>"objects"}, {"action"=>"nisi", "isEnabled"=>true, "name"=>"mollit sunt sint Ut incididunt", "timeAmount"=>-28348216, "timeUnit"=>"DAYS", "objectNameFilter"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "target"=>"objects"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-client-request-id | string | The client request ID for tracing. | |
if-match | string | The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of | |
the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload | |||
the resource. | |||
if-none-match | string | The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should | |
fail if the resource already exists. | |||
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"items":[{"action":"officia enim laborum Ut","isEnabled":false,"name":"culpa esse sit cillum","timeAmount":46724691,"timeUnit":"YEARS","objectNameFilter":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"target":"objects"},{"action":"tempor deserunt voluptate cupidatat","isEnabled":true,"name":"e","timeAmount":-53292398,"timeUnit":"DAYS","objectNameFilter":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"target":"objects"}],"timeCreated":"1960-02-05T16:17:48.687Z"}