Summary
Import automation documents
Description
Insert automation documents into the automation collection from a user supplied JSON document.
Route
POST /automation_catalog/automations/import
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
automations | array | yes | Array of automations |
options | object | yes | optional parameters |
{ "automations": [ { "name": "test", "data": { "gbac": { "write": [ { "provenance": "Local AAA", "name": "my admin group", "description": "My short description" } ], "read": [ { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "aliquip", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "473f5a69f57c7c1e7454b75c" }, "_id": "81681568b298a5b34431df7f", "lastModifiedBy": "cillum laborum quis proident anim", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" } ], "options": {} }
{ "type": "object", "properties": { "automations": { "title": "automations", "type": "array", "items": { "$ref": "exportedAutomation" } }, "options": { "title": "options", "type": "object", "properties": { "adapterMap": { "type": "object" } }, "additionalProperties": false } }, "required": [ "automations", "options" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
status | object | Status of automation import operation |
{ "status": "success", "message": "occaecat Ut sed esse irure", "imported": [ { "success": true, "message": "ipsum deserunt nostrud", "original": { "_id": "4cc7e797ab5ca2836037c016", "name": "test", "data": { "gbac": { "write": [ "bc5b0589df3adddcf8f74da6", "be320a64d314b5773e808fb5", "69f094d01904b6d3d4de0d8b", "d02afbd85a197edf2ca2f41f" ], "read": [ "cb0b58ffe204b183a1ef5440", "e4d8d316d5e90f9655ffe336" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "magna qui", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "f94d762de15b82e0d97041a6" }, "lastModifiedBy": "voluptate", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": true, "correspondingOMAutomationId": "7da25bd613958a93fecab1a9" }, "created": { "_id": "45773ce5f5b8faa3bffa92de", "name": "test", "data": { "gbac": { "write": [ "2d5546070e05198557d80115", "20b16d8e824a35982a396bbd", "3a72630e28a144d1d096429e", "307024e6babecfcc291be85e", "b58bf43e6c7ed5981ac8e81f" ], "read": [ "c8a27b95c4bd284823ccd86c", "9420f039848400a1658c6cda", "59490b732c406643c2948775", "197d1ba1706559a5244e2de0" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "minim dolor", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "3b0c4e1cf8531fd218ce3c18" }, "lastModifiedBy": "magna enim", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day", "migratedToOM": true, "correspondingOMAutomationId": "585d136dec0678d8ac4ed94c" } }, { "success": false, "message": "occaecat", "original": { "_id": "28b9ec51122b7e4825e67b3a", "name": "test", "data": { "gbac": { "write": [ "e2a2e65387dae1c4d917ad6a" ], "read": [ "8d0a341679e895e919716be4", "05e21eeaa746c46fee63097a", "069e8673a1472ea02a664307" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "consectetur reprehenderit mollit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "59deaf429979c3c99395cef2" }, "lastModifiedBy": "consectetur", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": false, "correspondingOMAutomationId": "90eb4ef36906f2c7667faaff" }, "created": null }, { "success": true, "message": "elit esse aute sed enim", "original": { "_id": "eace89c59081c70ef486ddc2", "name": "test", "data": { "gbac": { "write": [ "ea8dd1099bf1d1b883090800", "5ac31caec665922c46a3c55b", "4f5921b2e30d1cc26e08c80d", "ffb20350d45f11e66a85b8c4", "31ca5e05d94f32667f3056bf" ], "read": [ "9f0ed4ce3a4f799483426674", "c0f65246e6109c2edff3ef28" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sunt proident anim Lorem", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "3b15a60bfe837aeae95a470f" }, "lastModifiedBy": "velit consectetur", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": true, "correspondingOMAutomationId": "55cb392038343b21f0c3f964" }, "created": { "_id": "7a1958503bbd1a42f3085916", "name": "test", "data": { "gbac": { "write": [ "9a92051a752a634468224746", "c1910abb26f9e1cd56780854", "b2d74ad1013fe88c88555e99", "cd734f188747da77f2acded2" ], "read": [ "c330ced942a3d7c706f54539", "4a21368cbc12474f71c5e087", "376521a51ed0c519ab19f5e9", "d60a61e9b46395e6f1456215", "00b23b5635316f37fa2df243" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "fugiat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "1f48e1132814adb6fe321cab" }, "lastModifiedBy": "deserunt", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks", "migratedToOM": false, "correspondingOMAutomationId": "970ea59f002571ea44811121" } }, { "success": false, "message": "reprehenderit", "original": { "_id": "10b08e64d9a0f05c46dca586", "name": "test", "data": { "gbac": { "write": [ "ec46f5065c8e084b194af64b", "8fb0d802e503dbd993ef26b4", "d608e488197ce0e426ca5ff8", "eef5c8fd28d5c3f9c8f98451" ], "read": [ "8dcc2fd1b00760022246afef", "166ddd271f5b736219d9032c", "4cb1b3f15ae012e886708120", "d372e20adffebbc73b18dc1a" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "voluptate adipisicing qui eiusmod sit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "23de7b3f6b9ef5afc48cf86f" }, "lastModifiedBy": "aliqua fugiat sint ipsum ad", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks", "migratedToOM": true, "correspondingOMAutomationId": "d897c40e7827d813855092fb" }, "created": null } ] }
{ "title": "status", "type": "object", "properties": { "status": { "type": "string", "const": "success" }, "message": { "type": "string", "example": "2 automations imported successfully" }, "imported": { "type": "array", "items": { "success": { "type": "boolean" }, "message": { "type": "string" }, "original": { "$ref": "automationDocument" }, "created": { "oneOf": [ { "type": "null" }, { "$ref": "automationDocument" } ] } } } } }