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": "est reprehenderit qui cillum irure", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "41771d3895756f98599e2a87" }, "_id": "bf9aadeacdebe91de93f95e5", "lastModifiedBy": "veniam pariatur", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" } ], "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": "adipisicing ea nisi qui", "imported": [ { "success": false, "message": "magna", "original": { "_id": "c93388d1de8e77e0f41bfd86", "name": "test", "data": { "gbac": { "write": [ "0d3ae80270a3971e4a1bb98f", "41afe5bfc3632a395c6b8f90", "e91dca9444d2ca7f638fcae4", "0b9c69fe210db9c808a039ec" ], "read": [ "e3b1c288dce72bf0256bf749" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "elit Duis dolore velit voluptate", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "156cb8656d11cecada2096c5" }, "lastModifiedBy": "consequat laborum esse aute nostrud", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day", "migratedToOM": false, "correspondingOMAutomationId": "35249f6cc90d56c950866877" }, "created": { "_id": "cc3948c3e9703bc62740009b", "name": "test", "data": { "gbac": { "write": [ "cb5628f4914739faf8a83006" ], "read": [ "7351e0cb2a0f80cbeb33228d", "82096f6092cb00137105e531", "b1acda1d8f826529f652c298", "7090cfce5efe3c19b3a6b8bc" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "nisi", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "5ffdafb1e543b98eda705280" }, "lastModifiedBy": "ipsum aliquip magna non", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks", "migratedToOM": false, "correspondingOMAutomationId": "96502f726b959fa15e5f3e26" } }, { "success": true, "message": "consectetur", "original": { "_id": "819314b93b9b0842a1fc57f9", "name": "test", "data": { "gbac": { "write": [ "7f00c910c1f9b520753d09bc", "6112ba2b62234c2d42cb267c", "4fd5ab4868cc1f13c01eee31", "55513d135e24b27f687d89ae" ], "read": [ "86ee6b094ab7a461d3316b1b", "5d5c1f6bff1a5ff7ffd2cbeb" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "nisi", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "73e37eb0f72cfd07170931d6" }, "lastModifiedBy": "dolor irure tempor", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day", "migratedToOM": false, "correspondingOMAutomationId": "5349d79215b90aea0a664005" }, "created": { "_id": "b0e051fd6c5a0642bac70be3", "name": "test", "data": { "gbac": { "write": [ "4d666bbbce35151038ac0b5d", "2bae4ed7fed2123a863cb872" ], "read": [ "5ea76f0c5644d17cfccca7e7", "1abf48abdad4a78ebfe58b16", "b91ed88ef40a2ae9f271699a" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "deserunt sit ullamco", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "637268dc45eb675d68e0b483" }, "lastModifiedBy": "dolore dolore labore nostrud eu", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks", "migratedToOM": false, "correspondingOMAutomationId": "0cb763bee350553b032d7c8f" } }, { "success": false, "message": "consequat veniam", "original": { "_id": "61d8945bca38d1601d99c429", "name": "test", "data": { "gbac": { "write": [ "73d8baa7cc229db72a337caa", "12095173c0a09b0fe910f710", "ad805d4df2f0e167ee1a3a88" ], "read": [ "855119008f5d5e2557482e62", "363708bdba07a8966ff4c637", "14970feaa82d736c183d2643", "8546b987b6e4c33367af4ab0", "588e07c8e88588190823969b" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sed do eu et enim", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "4c66ac657bea6429ff5f9b6f" }, "lastModifiedBy": "est in dolore voluptate", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks", "migratedToOM": true, "correspondingOMAutomationId": "39fc395f12063a7974086ee3" }, "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" } ] } } } } }