Summary

The migrateAssetReferencesToLars() mutation repairs trigger and scheduled-report asset references created before LARS was enabled so they point at the LARS-served assets. This mutation is a no-op when LARS is disabled. It requires Manage Cluster permission. By default, the mutation performs a dry run that only logs what would change. Pass dryRun: false to perform the actual rewrite.

Syntax

graphql
migrateAssetReferencesToLars(
      dryRun: Boolean! = true
   ): MigrateAssetReferencesToLarsResult!

The mutation accepts a single boolean argument, dryRun, which defaults to true. When dryRun is true, the mutation logs what would change without making any modifications. Pass dryRun: false to apply the rewrite.

Returned Values

The mutation returns a MigrateAssetReferencesToLarsResult! object. The following table lists the available fields:

Table: MigrateAssetReferencesToLarsResult Datatype

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
dryRunBooleanyes Previewadded in 1.259Whether this was a dry run. Stability: Preview
referencesFoundIntyes Previewadded in 1.259Broken references identified (and, unless dryRun, repointed). Stability: Preview
referencesSkippedIntyes Previewadded in 1.259References that could not be rewritten. Stability: Preview
viewsFailedIntyes Previewadded in 1.259Stability: Preview
viewsProcessedIntyes Previewadded in 1.259Stability: Preview