upload
Creates, updates, deletes, gets or lists a upload
resource.
Overview
Name | upload |
Type | Resource |
Id | sumologic.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:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
uploadFile | exec | id , region , file | merge , fileEncoding | Create 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.
Name | Datatype | Description |
---|---|---|
id | string | Identifier of the lookup table to populate. |
region | string | SumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2) |
fileEncoding | string | File encoding of file being uploaded. |
merge | boolean | This 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
- uploadFile
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 }}"
}'
;