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" }, { "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": "esse labore eiusmod", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "10051609b20eb82fb716acf8" }, "_id": "6d4b26c963e48776dac78b87", "lastModifiedBy": "aute consequat", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, { "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" }, { "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": "sint cillum irure ex ut", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "bd8305c42e5fa350da09442b" }, "_id": "894946c9223d5d28c32c461b", "lastModifiedBy": "in deserunt", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, { "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" }, { "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": "anim", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "20f098b9b30d8b8895584e5b" }, "_id": "d9358f5778d7aa23b6ada34a", "lastModifiedBy": "aliquip amet", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, { "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" } ], "read": [ { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ullamco occaecat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "6c8445d6a04397cf7b84f8f7" }, "_id": "95233418e88e4df3b4daf1ea", "lastModifiedBy": "fugiat ut aute elit", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, { "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" } ], "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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "culpa incididunt laboris reprehenderit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "e882abb22219ba5809dda124" }, "_id": "8fe506eace3a7df3f76c3d0a", "lastModifiedBy": "eiusmod irure dolor", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" } ], "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": "minim Duis non voluptate", "imported": [ { "success": false, "message": "anim Excepteur est ut", "original": { "_id": "e16c8c96b7c6b9027c5faf60", "name": "test", "data": { "gbac": { "write": [ "b04a0ca28b4ae8ef81017665", "8aef54b4aff738b6efd8d912" ], "read": [ "b36d866179b9f5130601fbb0" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "voluptate aliqua", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "bd40c84d9e1090c7a31ace86" }, "lastModifiedBy": "in minim Duis sit reprehenderit", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": { "_id": "d8017609de6a961d7f83a1a2", "name": "test", "data": { "gbac": { "write": [ "763cc8d6b61f1645ce57b216", "f516880bc9c78d1333a0c202", "897435110f2d1ca31d6aa21c" ], "read": [ "f533c55ea953b01748e913e4", "c61d22a3163da25ff4498a9d", "db68bb243f8be94b0b2df304", "8055b988aa00e336e53e7b10", "82a71a9a88a2751ffe11b0d0" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "cillum in", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "3e7fbb2d6e9fbb000477be4c" }, "lastModifiedBy": "nostrud enim et", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" } }, { "success": false, "message": "minim", "original": { "_id": "fcf203092bf9ff6d3bbcd82b", "name": "test", "data": { "gbac": { "write": [ "4f13b767240eed62aaf1a4bf", "7fe7b74b1fe44547b48f51bd" ], "read": [ "c5f4ba42a1e5d57365b54782", "6a806c7eb91adfc4bc138c81", "f66228fafc38da4d301c090a", "a1c225763bb46e3563af2b72", "b7f550b10f5d16db6a1e78b4" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Lorem tempor do minim", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "888e08ad659deb5bf2195295" }, "lastModifiedBy": "dolore", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": { "_id": "8b732f081feacc349b0ff5ca", "name": "test", "data": { "gbac": { "write": [ "953f89d770b37c81dd9aa0fc", "14a4164cdc8e941be47befff", "ec1983ef3ef70ee286528b15", "fc8f847b265566427362b6bd" ], "read": [ "87e563668d9de3513ee33cfc", "9d51efb583d9630e5900c473", "ad6ab224eb75e74edd5c4500" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "est", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "9331262d338849fa471f2945" }, "lastModifiedBy": "veniam ut proident voluptate", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" } }, { "success": false, "message": "Lorem ullamco minim", "original": { "_id": "e89d93aa31398d82303bcc9f", "name": "test", "data": { "gbac": { "write": [ "37dd0431d1b47d55057eb323" ], "read": [ "584ca8a426afd1a43f3b619f", "b79b4062ac4c12fa5a34a974", "4ab2085b9011175434ffda54" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "esse", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "2c327648efd0fc3230baa894" }, "lastModifiedBy": "ut magna commodo", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": null }, { "success": false, "message": "culpa eiusmod labore deserunt sunt", "original": { "_id": "3f137cf5905137aef4a86533", "name": "test", "data": { "gbac": { "write": [ "84c39018bae6180d41f9c0eb", "45a72f053260524933058abf" ], "read": [ "69160593bbb757b0da78ee32", "e9b777212b87ab1a2c9933fa" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "esse", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "25aabc7239d0ae2530fc3373" }, "lastModifiedBy": "aute dolore", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "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" } ] } } } } }