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" }, { "provenance": "Local AAA", "name": "my admin group", "description": "My short description" } ], "read": [ { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" }, { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" }, { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" }, { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" }, { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "dolore dolor reprehenderit minim commodo", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "446c7056d6b1287f08f5d215" }, "_id": "4beffb7b23e9565177ba1b84", "lastModifiedBy": "ad sunt aliqua Lorem officia", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, { "name": "test", "data": { "gbac": { "write": [ { "provenance": "Local AAA", "name": "my admin group", "description": "My short description" }, { "provenance": "Local AAA", "name": "my admin group", "description": "My short description" }, { "provenance": "Local AAA", "name": "my admin group", "description": "My short description" }, { "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": "irure exercitation quis qui amet", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "b8f606b77cdf22b441417042" }, "_id": "febeb09d7faf466fe4a7ce23", "lastModifiedBy": "dolore sint", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, { "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" }, { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Duis", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "3f5c179b7ae41113092e6597" }, "_id": "342db22c0e84c3c2a5dc9b0e", "lastModifiedBy": "sed ipsum velit nostrud culpa", "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": "nulla occaecat", "imported": [ { "success": true, "message": "nisi elit exercitation laborum cupidatat", "original": { "_id": "294a80d7084abd2d1e21def6", "name": "test", "data": { "gbac": { "write": [ "590423d928e689c8513db446", "b86a86e67fd78064b75676e2" ], "read": [ "414796fc8ef438e38292f402", "1c1a15fadb3f1b7da96874aa", "a9ffe6f308ab34441b2b490f" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "dolor voluptate pariatur sint", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "8f169d889017a5b1ec651d40" }, "lastModifiedBy": "labore nulla sint dolore", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks", "migratedToOM": false, "correspondingOMAutomationId": "201346f9be0bde99e2e182a1" }, "created": { "_id": "db593aecbd66c7516fd4cde4", "name": "test", "data": { "gbac": { "write": [ "69482532684b3d765bb4047e" ], "read": [ "96f39138da239362150356c9", "e6a0037572369cf33eb73afd", "ae52a209c8a69a7f6a210504", "5d73d30df5b3bfad07f6de69" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Excepteur eiusmod in est tempor", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "ddc449de2f0eaacac474abcf" }, "lastModifiedBy": "dolor magna", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day", "migratedToOM": true, "correspondingOMAutomationId": "13b04198150944c3905f831e" } }, { "success": false, "message": "laboris in", "original": { "_id": "16cbfd995b1dc2dcc7ceaec8", "name": "test", "data": { "gbac": { "write": [ "f8ec904514d7ac872f72ef26", "5d61b2d12d176c1720a8f815", "f5dc2274e113101172c82910" ], "read": [ "9adf177813aad80c96cec3b8" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Lorem ad", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "a89d05dd38cdac0104829b08" }, "lastModifiedBy": "commodo", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": false, "correspondingOMAutomationId": "806c245382862ca996801379" }, "created": null }, { "success": true, "message": "mollit eiusmod", "original": { "_id": "83ce00a4762705628baea692", "name": "test", "data": { "gbac": { "write": [ "6e988f0d94cea1847319a367" ], "read": [ "100c89e7601810eea7a57382" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Ut nostrud", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "5d6a5d94f74babcc3f75a318" }, "lastModifiedBy": "sit dolor sed Excepteur officia", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks", "migratedToOM": true, "correspondingOMAutomationId": "dc6eff3bdbd2c0e02f368523" }, "created": { "_id": "577361f2f231f496fd83ba58", "name": "test", "data": { "gbac": { "write": [ "f806dd1419a5076d4904bb69", "15124bb78f3bb040facac4bc", "7eb117c5ad62f3ff578bc279", "b34411690187a85815158e7b", "bba9fd65e8896dbe4b5ace90" ], "read": [ "74349932756ae39d9115b2bc", "15d4250684507c4c9951e147", "8fa5a77172fc7b3fe86389b6", "4072ff45b25777bfe2b89564", "cdedaaa4388fe769248d4bc1" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ipsum laboris in ex labore", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "8e935c44988d90359abb7cb1" }, "lastModifiedBy": "Duis voluptate fugiat sint", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks", "migratedToOM": false, "correspondingOMAutomationId": "62ea3da45a6f8fdf0e1b382e" } }, { "success": true, "message": "ea", "original": { "_id": "7b5a698846a5a0281b5f03bd", "name": "test", "data": { "gbac": { "write": [ "aac20ecd50eb19678667861a", "8ffd844c7f8864a4d9f7a44a", "4b4947e57a02b06c8eca8d5e" ], "read": [ "cfd048c5e9750b24976ca4f1", "9d785902789d2569cc344e09", "430ddf4c3a081aaaac96606e", "6e4cf8b7bfc06b3591a482da" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "voluptate id velit nulla", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "be6977c41f7f3b4abf7448d8" }, "lastModifiedBy": "laborum ea culpa magna do", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day", "migratedToOM": false, "correspondingOMAutomationId": "21a54dacc5c4d8db8b155417" }, "created": null }, { "success": true, "message": "culpa", "original": { "_id": "fc60df8699afcafaffd953de", "name": "test", "data": { "gbac": { "write": [ "5ea3a30c69274dfc78369e6a", "07f0310516e65c1a4aa3ab92", "10f2b767746862912b0d1501", "5f3dba6d87a69fb32756521f" ], "read": [ "dbd885e97eb4eef6d0bd5827", "7be80f7753675bfda1dff4f4", "a57555b603324b79bd105b72" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "dolor", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "733ff00ebc3ba69e6daff051" }, "lastModifiedBy": "deserunt consectetur nulla", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": false, "correspondingOMAutomationId": "797b17639283b75794f601cf" }, "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" } ] } } } } }