import_results
Creates, updates, deletes, gets or lists an import_results resource.
Overview
| Name | import_results |
| Type | Resource |
| Id | sumologic.content.import_results |
Fields
The following fields are returned by SELECT queries:
- get
The result of the import job.
| Name | Datatype | Description |
|---|---|---|
failures | array | Detailed listing of failed import items. |
status | string | Whether or not the request is in progress (InProgress), has completed successfully (Success), or has completed with an error (Failed). |
summary | object | Summary about the import job indicating total, success and failure count. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | folder_id, job_id, region | is_admin_mode | Get 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.
| Name | Datatype | Description |
|---|---|---|
folder_id | string | The identifier of the folder to import into. (wire: folderId) |
job_id | string | The identifier of the import request. (wire: jobId) |
region | string | Sumo 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_mode | string | Set this to "true" if you want to perform the request as a Content Administrator. (wire: isAdminMode) |
SELECT examples
- get
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 }}'
;