Table of Contents

Search

  1. Preface
  2. Informatica Intelligent Cloud Services REST API
  3. Platform REST API version 2 resources
  4. Platform REST API version 3 resources
  5. Data Integration REST API
  6. Mass Ingestion Files REST API
  7. Mass Ingestion Streaming REST API
  8. Model Serve REST API
  9. RunAJob utility
  10. ParamSetCli utility
  11. REST API codes
  12. REST API resource quick references

REST API Reference

REST API Reference

Compress and transfer files

Compress and transfer files

Compress and transfer inbound files to or within a folder specified in the home directory of the file server user.

POST Request

To compress and transfer files, include the connection ID in the following URI.
mftsaas/api/v1/filetransferTask/execute/1003
Include the following information in the request:
Field
Type
Required
Description
agentGroupId
String
Yes
The ID of the agent group.
portalUser
String
-
Whether the user is a portal user. Default is false.
fileServerUsername
String
Yes
The user name of the file server.
relativeTargetLocation
String
-
The relative target location within the file server user’s home directory.
pattern
String
Yes
The file pattern to identify the files to collect for compression. The regular expression pattern is supported.
sourceLocation
String
Yes
The source directory that contains the files that you want to compress.
COMPRESSION_TYPE
String
Yes
The format of the files that you want to compress.
Select one of the following compression methods:
  • Zip
  • Tar
  • Gzip
The values are not case sensitive.
For example, to compress and transfer a file, you might use the following request:
POST <serverUrl>/mftsaas/api/v1/filetransferTask/execute/1003 Accept:application/json IDS-SESSION-ID: <icSessionId or INFA-SESSION-ID> { "agentGroupId": "01000125000000000002", "fileServerUsername": "arun", "portalUser":true, "relativeTargetLocation":"", "pattern":"arun.csv", "sourceLocation":"C:\\Informatica_Source", "taskVariables": { "COMPRESSION_TYPE": "zip" } }

POST Response

If successful,
Informatica Intelligent Cloud Services
returns the run ID for the job. Use the run ID to monitor the job status.
The following example shows a successful response:
{ "projectId": 0, "timeTaken": 0, "queuePriority": 0, "runPriority": 0, "runMode": "UNKNOWN", "submitSourceId": -1, "runModeInteractive": false, "runModeBatch": false, "runModeDebug": false, "runModeUnknown": true, "formattedTimeTaken": "0.00", "id": 1000000007154, "runId": 13 }
If unsuccessful, the response includes a reason for the failure.

0 COMMENTS

We’d like to hear from you!