Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. IDMC REST API
  3. REST API resource quick references
  4. Platform REST API version 2 resources
  5. Platform REST API version 3 resources
  6. Data Integration REST API
  7. Cloud Data Integration for PowerCenter (CDI-PC) REST API
  8. Data Ingestion and Replication REST API
  9. Customer Managed REST API
  10. RunAJob utility
  11. ParamSetCli utility
  12. REST API codes

REST API Reference

REST API Reference

Creating a streaming ingestion and replication task

Creating a streaming ingestion and replication task

Use the CreateEntity/Documents resource to create a
streaming ingestion and replication
task.

POST request

To create a
streaming ingestion and replication
task, use the following URL:
POST <server URI>/sisvc/restapi/v1/CreateEntity/Documents
Use the following request header:
POST <server URI>/sisvc/restapi/v1/CreateEntity/Documents Content-Type: application/json Accept:application/json IDS-SESSION-ID: <SessionId>

POST request sample

Use this sample as a reference to create a
streaming ingestion and replication
task:
POST <server URI>/sisvc/restapi/v1/CreateEntity/Documents Content-Type: application/json Accept:application/json IDS-SESSION-ID:2l0oeVx22Rujiej7yTokmT { "name": "FileToFile17", "description": "FileToFile_V2", "runtimeId": "01000025000000000003", "locationId": "8ubL3nIupMqk6bJC2mYtkh", "currentVersion": "2", "messageFormat": "binary", "documentState": "VALID", "parentInfo": [ { "parentId": "8ubL3nIupMqk6bJC2mYtkh", "parentName": "ng", "parentType": "Project" } ], "nodes": [ { "name": "FileToFile_source", "type": "source", "connectionId": "0100000B000000000002", "transformationType": "", "config": [ { "key": "File", "value": "siagent.log" }, { "key": "initialPosition", "value": "Current Time" }, { "key": "rolloverPattern", "value": "" }, { "key": "tailingMode", "value": "Single file" } ] }, { "name":"Filter", "serviceType":"transformation", "type":"filter", "metaMetadata":"", "config": [{ "key":"messageFormat", "value":"binary" }, { "key":"transformationName", "value":"Filter" }, { "key":"filterType", "value":"regEx" }, { "key":"expression", "value":"*" }, { "key":"name", "value":"filter" } ] }, { "name": "FileToFile_target", "type": "target", "connectionId": "0100000B000000000002", "transformationType": "", "config": [ { "key": "File Name", "value": "testing.log" }, { "key": "interimDirectory", "value": "/home/agent/infa/test_file_target" }, { "key": "rolloverSize", "value": 100 }, { "key": "rolloverEvents", "value": 100 }, { "key": "rolloverTime", "value": 100 } ] } ], "edges": [ { "from": "FileToFile_source", "to": "Filter" }, { "from": "Filter", "to": "FileToFile_target" } ], "runtimeOptions": { "maxLogSize": { "value": 10, "unit": "MB" }, "logLevel": "INFO" } }

POST response

If the request is successful, the service returns an HTTP status code 200 OK.

0 COMMENTS

We’d like to hear from you!