Skip to main content

migrations

Creates, updates, deletes, gets or lists a migrations resource.

Overview

Namemigrations
TypeResource
Idsumologic.dashboards.migrations

Fields

The following fields are returned by SELECT queries:

Dashboard migration job status.

NameDatatypeDescription
errorobject
statusstringWhether or not the request is in progress (InProgress), has completed successfully (Success), or has completed with an error (Failed).
status_messagestringAdditional status message generated if the status is not Failed. (wire: statusMessage)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectjob_id, regionGet the status of an asynchronous Dashboard Migration job for the given job identifier. If job succeeds, use Dashboard Migration Result endpoint to see results of the migration.
createinsertregion, content_idsSchedule an asynchronous job to migrate a list of legacy Dashboards to Dashboard(New). Once migration is finished, the migrated dashboards will be in the same folder as the corresponding legacy Dashboard.<br />Note: This feature is in beta and may not support all existing features of legacy dashboards.<br />
previewexecregion, contentIdsGet a preview of migrating Legacy Dashboards to Dashboard(New)

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
job_idstringThe identifier of the asynchronous Dashboard Migration job. (wire: jobId)
regionstringSumo Logic deployment (au, ca, ch, de, eu, fed, in, jp, kr, us1, us2). Resolved from the SUMOLOGIC_ENVIRONMENT environment variable when it is set (x-stackQL-envVar, the same variable the Terraform provider reads); otherwise defaults to us2. A WHERE region = '...' value always takes precedence. (enum: [au, ca, ch, de, eu, fed, in, jp, kr, us1, us2], default: us2, x-stackQL-envVar: SUMOLOGIC_ENVIRONMENT)

SELECT examples

Get the status of an asynchronous Dashboard Migration job for the given job identifier. If job succeeds, use Dashboard Migration Result endpoint to see results of the migration.

SELECT
error,
status,
status_message
FROM sumologic.dashboards.migrations
WHERE job_id = '{{ job_id }}' -- required
AND region = '{{ region }}' -- required unless SUMOLOGIC_ENVIRONMENT is set
;

INSERT examples

Schedule an asynchronous job to migrate a list of legacy Dashboards to Dashboard(New). Once migration is finished, the migrated dashboards will be in the same folder as the corresponding legacy Dashboard.<br />Note: This feature is in beta and may not support all existing features of legacy dashboards.<br />

INSERT INTO sumologic.dashboards.migrations (
content_ids,
region
)
SELECT
'{{ content_ids }}' /* required */,
'{{ region }}'
RETURNING
job_id
;

Lifecycle Methods

EXEC variables use wire (API) names.

Get a preview of migrating Legacy Dashboards to Dashboard(New)

EXEC sumologic.dashboards.migrations.preview
@region='{{ region }}' --required unless SUMOLOGIC_ENVIRONMENT is set
@@json=
'{
"contentIds": "{{ contentIds }}"
}'
;