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. File Ingestion and Replication REST API
  7. Streaming Ingestion and Replication 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

Encrypt and transfer files

Encrypt and transfer files

Encrypt and transfer files from the source location to the home directory of the file server user or the directory specified in the REST API param within the file server user’s home directory. You can encrypt single or multiple files.

POST Request

To encrypt and transfer files, include the connection ID in the following URI.
mftsaas/api/v1/filetransferTask/execute/1001
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 encryption. The regular expression pattern is supported.
sourceLocation
String
Yes
The source directory that contains the files you want to encrypt.
SIGN
String
-
Whether the file is signed by PGP. The values are not case sensitive.
Default is false.
PUBLIC_KEY_ID
String
Yes
The ID of the key that is used to encrypt the file.
SECRET_KEY_ID
String
Yes
The ID of the secret key that is used to sign the file, if the value of the SIGN variable is true.
SECRET_KEY_PASSPHRASE
String
Yes
The passphrase used to access the secret key if the value of the SIGN variable is true.
For example, to encrypt and transfer a file, you might use the following request:
POST <serverUrl>/mftsaas/api/v1/filetransferTask/execute/1001 Accept:application/json IDS-SESSION-ID: <icSessionId or INFA-SESSION-ID> { "agentGroupId": "01000125000000000002", "fileServerUsername": "arun", "portalUser":true, "pattern":"arun.csv", "relativeTargetLocation":"", "sourceLocation":"C:\\Informatica_Source", "taskVariables": { "SIGN":"false", "PUBLIC_KEY_ID":"0x51986F687ADACBE1", "SECRET_KEY_ID":"0x51986F687ADACBE1", "SECRET_KEY_PASSPHRASE":"TESTER" } }

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

0 COMMENTS

We’d like to hear from you!