Skip to main content

sync_jobs

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

Overview

Namesync_jobs
TypeResource
Idsumologic.content_sync.sync_jobs

Fields

The following fields are returned by SELECT queries:

Content Sync Job Status

NameDatatypeDescription
progressintegerContent Sync Job progress percentage.
statusstringContent Sync Job status. (example: Success)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectjob_id, regionGet Status of Content Sync Job.
get_currentselectregionGet Content Sync Job Id of last triggered job.
createinsertregion, content_list, destination_child_org_info, source_child_org_infoSync Content and Configuration across Organization.
retryexecjobId, regionretryOptionsRetry Content Sync Job by ID to re-execute job.
cancelexecjobId, regionCancel In Progress Sync Job by ID..

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
jobIdstringId of Content Sync Job
job_idstringId of Content Sync 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)
retryOptionsstringControls which contents to retry

SELECT examples

Get Status of Content Sync Job.

SELECT
progress,
status
FROM sumologic.content_sync.sync_jobs
WHERE job_id = '{{ job_id }}' -- required
AND region = '{{ region }}' -- required unless SUMOLOGIC_ENVIRONMENT is set
;

INSERT examples

Sync Content and Configuration across Organization.

INSERT INTO sumologic.content_sync.sync_jobs (
source_child_org_info,
destination_child_org_info,
content_list,
region
)
SELECT
'{{ source_child_org_info }}' /* required */,
'{{ destination_child_org_info }}' /* required */,
'{{ content_list }}' /* required */,
'{{ region }}'
RETURNING
job_id
;

Lifecycle Methods

EXEC variables use wire (API) names.

Retry Content Sync Job by ID to re-execute job.

EXEC sumologic.content_sync.sync_jobs.retry
@jobId='{{ jobId }}' --required,
@region='{{ region }}' --required unless SUMOLOGIC_ENVIRONMENT is set,
@retryOptions='{{ retryOptions }}'
;