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

ParameterTypeRequiredDefaultDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Oct 4, 2024
repositorySearchDomainyes The repository for which to update retention. See SearchDomain.