Skip to main content

import_results

Creates, updates, deletes, gets or lists an import_results resource.

Overview

Nameimport_results
TypeResource
Idsumologic.content.import_results

Fields

The following fields are returned by SELECT queries:

The result of the import job.

NameDatatypeDescription
failuresarrayDetailed listing of failed import items.
statusstringWhether or not the request is in progress (InProgress), has completed successfully (Success), or has completed with an error (Failed).
summaryobjectSummary about the import job indicating total, success and failure count.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectfolder_id, job_id, regionis_admin_modeGet the complete summary of content import job for the given job identifier.

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
folder_idstringThe identifier of the folder to import into. (wire: folderId)
job_idstringThe identifier of the import request. (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)
is_admin_modestringSet this to "true" if you want to perform the request as a Content Administrator. (wire: isAdminMode)

SELECT examples

Get the complete summary of content import job for the given job identifier.

SELECT
failures,
status,
summary
FROM sumologic.content.import_results
WHERE folder_id = '{{ folder_id }}' -- required
AND job_id = '{{ job_id }}' -- required
AND region = '{{ region }}' -- required unless SUMOLOGIC_ENVIRONMENT is set
AND is_admin_mode = '{{ is_admin_mode }}'
;