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.

Syntax

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

graphql
updateRetention(
      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

ParameterTypeRequired[a]DefaultDescription
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.