Skip to main content

upload

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

Overview

Nameupload
TypeResource
Idsumologic.lookup_tables.upload

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
uploadFileexecid, region, filemerge, fileEncodingCreate a request to populate a lookup table with a CSV file.

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
idstringIdentifier of the lookup table to populate.
regionstringSumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2)
fileEncodingstringFile encoding of file being uploaded.
mergebooleanThis indicates whether the file contents will be merged with existing data in the lookup table or not. If this is true then data with the same primary keys will be updated while the rest of the rows will be appended. By default, merge is false. The response includes a request identifier that you need to use in the [Request Status API] to track the status of the upload request.

Lifecycle Methods

Create a request to populate a lookup table with a CSV file.

EXEC sumologic.lookup_tables.upload.uploadFile 
@id='{{ id }}' --required,
@region='{{ region }}' --required,
@merge={{ merge }},
@fileEncoding='{{ fileEncoding }}'
@@json=
'{
"file": "{{ file }}"
}'
;