Administrator
- Administrator
- All Products
POST <server URI>/sisvc/restapi/v1/CreateEntity/Documents
POST <server URI>/sisvc/restapi/v1/CreateEntity/Documents Content-Type: application/json Accept:application/json IDS-SESSION-ID: <SessionId>
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" } }