Summary

The migrateAssetReferencesToLocal() mutation repoints trigger and scheduled-report asset references from LARS-served IDs back to local asset IDs. The mutation only affects references whose local asset still exists. It 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
migrateAssetReferencesToLocal(
      dryRun: Boolean! = true
   ): MigrateAssetReferencesToLocalResult!

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 MigrateAssetReferencesToLocalResult! object. The following table lists the available fields:

Table: MigrateAssetReferencesToLocalResult 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