How to Send the Export Data to Custom S3 Bucket?

Question

How to Send the Export Data to Custom S3 Bucket?

Answer

Use the following API as an example to send your exported data to a custom S3 bucket.

POST {{tenantURL}}/jobs/export/{{tenantID}}/entities

 

{{tenantURL}} EXAMPLE: "https://test.reltio.com"

{{tenantID}} EXAMPLE: Your tenant ID         "DSAF7A9S87DA97"

This API also works for relations, to do this feel free to change entities to relations.

The API has the following filters available

Name Required Details
fileFormat No This can either be csv or json, based on the desired file format
dateFormat No

Format of date and time attribute values (in CSV export only). Possible values: timestamp and readable

Default value: timestamp

returnVotes No

Specifies if votes should be returned.

Default value: false

distributed No If true then the export task will be divided based on parts. Parts can be executed in parallel on different nodes. If not specified-one task will be created.
taskPartsCount No The number of distributed task parts. If not specified-2 tasks will be created.

BODY
{

"ovOnly":"true",
"includeType":["configuration/entityTypes/desiredENTITYtype"]
}

HEADERS

KEY VALUE
Authorization Bearer {token}
Content-Type application/json
awsAccessKey INSERT_YOUR_AWSACCESSKEY
awsSecretKey INSERT_YOUR_AWSSECRETKEY
s3Bucket MyS3Bucket
s3Path /S3_directory/folder/name_your_file.zip

 *For s3Path you need to name the file yourself. Make sure the path you are giving for the file is there or created.

**S3 privacy settings are at the user's discretion

mceclip0.png

A common mistake that needs to be avoided

Parameters are case-sensitive and they need to be checked thoroughly for case sensitivity.

For example Use awsAccessKey instead of AWSAccessKey.

References

https://docs.reltio.com/exportapi/storingexportresults.html

 

Was this article helpful?
1 out of 1 found this helpful

Comments

0 comments

Please sign in to leave a comment.