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

Decrypt and transfer files

Decrypt and transfer files

Decrypt and transfer files from the file server user’s home directory to the target location.

POST Request

To decrypt and transfer files, include the connection ID in the following URI.
mftsaas/api/v1/filetransferTask/execute/1002
Include the following information in the request:
Field
Type
Required
Description
agentGroupId
String
Yes
The ID of the agent group.
fileServerUsername
String
Yes
The user name of the file server.
pattern
String
Yes
The file pattern of the file to release to the specified target location after decrypting the file. The regular expression pattern is supported.
targetLocation
String
Yes
The target directory to which the file is moved after decryption.
PATTERN_CASE_SENSITIVE
String
Yes
Whether the file pattern is case sensitive. The values are not case sensitive.
Default is false.
PGP_PASSPHRASE
String
Yes
The PGP passphrase.
PATTERN _TO_COLLECT
String
Yes
The file name pattern of the files that PGP has to collect and decrypt. Use a regular expression to match the file name pattern.
For example, to decrypt and transfer a file, you might use the following request:
POST <serverUrl>/mftsaas/api/v1/filetransferTask/execute/1002 Accept:application/json IDS-SESSION-ID: <icSessionId or INFA-SESSION-ID> { "agentGroupId": "01000125000000000002", "fileServerUsername": "arun", "pattern":".*csv", "targetLocation":"C:\\Informatica_Target", "taskVariables": { "PATTERN_CASE_SENSITIVE": "false", "PGP_PASSPHRASE": "TESTER", "PATTERN_TO_COLLECT": ".*pgp" } }

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": 1000000007160, "runId": 19 }
If unsuccessful, the response includes a reason for the failure.

0 COMMENTS

We’d like to hear from you!