The updateRetention() GraphQL mutation is used to update the retention policy of a repository in LogScale.

For information on data retention in repositories, see the Data Retention documentation page.


Below is the syntax for the updateRetention() mutation field:

      repositoryName: string!
      timeBasedRetention: float
      ingestSizeBasedRetention: float
      storageSizeBasedRetention: float
      timeBasedBackupRetention: float
   ): UpdateRetentionMutation!

Returned Datatypes

The returned datatype UpdateRetentionMutation has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: UpdateRetentionMutation

repositorySearchDomainyes The related repository (see SearchDomain Table).

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.