Learn to access lifecycle settings for buckets in Telnyx Cloud Storage with specific API request and response format.
GET /versionedbucket?lifecycle=null HTTP/1.1 Host: [region].telnyxcloudstorage.com Accept: text/xml X-Amz-Date: 20230927T172450Z Authorization: AWS4-HMAC-SHA256 Credential=YOUR_TELNYX_API_KEY/20230927/test/execute-api/aws4_request, SignedHeaders=accept;host;x-amz-date, Signature=c8e6ec2d0c5c34ea061e4dd47d2e7103fde5a885c25d9dca3ac743d8b6ab3330
<?xml version="1.0" encoding="UTF-8"?> <LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <Rule> <ID>DeleteAfterBecomingNonCurrent</ID> <Filter> <Prefix>logs/</Prefix> </Filter> <Status>Enabled</Status> <NoncurrentVersionExpiration> <NoncurrentDays>100</NoncurrentDays> </NoncurrentVersionExpiration> </Rule> </LifecycleConfiguration>
Was this page helpful?