Skip to content

Latest commit

 

History

History
22 lines (22 loc) · 722 Bytes

retention_policy_management.md

File metadata and controls

22 lines (22 loc) · 722 Bytes

Retention Policy management

In this section described retention policy(further RP) operation Create RP:

influx.createRetentionPolicy("rpName", "dbName", "duration", intReplicationCount, "optShardDuration", defaulfBool)
res0: Future[Result] 

Show database related RP's:

influx.showRetentionPolicies("dbName")
res0: Future[QueryResult[RetentionPolicyInfo]]

Drop RP:

influx.dropRetentionPolicy("rpName", "dbName")
res0: Future[Result]

Update RP:

influx.updateRetentionPolicy("rpName", "dbName", "duration", intReplicationCount, "optShardDuration", defaulfBool)
res0: Future[Result]