Here the relevant code:
client = influxdb_client.InfluxDBClient(url=influxdb_url, token=influxdb_token, org=influxdb_org)
db_bucket = client.buckets_api()
retention_rules = [{‘every_seconds’: 2592000, ‘shard_group_duration_seconds’: 86400, ‘type’: ‘expire’}]
bucket = db_bucket.create_bucket(bucket_name=‘bucket-1’, org=org, retention_rules=retention_rules)
I get no error and when I check the details of bucket-1 on the web console the retention is “delete data older than forever”
Can someone please tell me what I am missing?
Thank you!!