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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "id mollit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "ad7c8dd84ac19658a05e3b96" }, "_id": "87c96db440a8e622e48637a9", "lastModifiedBy": "labore esse laboris", "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" }, { "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" }, { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "nostrud ea", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "49bbab5d68e526a842617dae" }, "_id": "7e958aa1ba4066ac4bde6a25", "lastModifiedBy": "ipsum", "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": "exercitation dolore Lorem anim nulla", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "63de986be6a2113ce2e23c60" }, "_id": "8119bf0872a82a0b1b0f5bc5", "lastModifiedBy": "dolor anim in nulla", "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" } ], "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": "laborum in", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "e297253f819e59db95af0e1d" }, "_id": "d40b58a819c6623ddc277498", "lastModifiedBy": "Excepteur consectetur in", "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": "cillum", "imported": [ { "success": false, "message": "magna anim dolor Excepteur", "original": { "_id": "ccab02d13b2754f5c35d112e", "name": "test", "data": { "gbac": { "write": [ "2e8d17775f2b5966f26c8527", "92f386e1cca241431fdb86de" ], "read": [ "7f8aebe7f7690a7d254e5c7e", "df001b31f407c6825d6ba02c", "1e530532b6961f61c5c1618e", "6bcbf60a9e862b84453bdd64" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "voluptate adipisicing", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "99d2e18a0ee91657bf6b7862" }, "lastModifiedBy": "ut ea", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "created": null }, { "success": false, "message": "fugiat velit ipsum", "original": { "_id": "a1d7448d7761f2af7fc6b64a", "name": "test", "data": { "gbac": { "write": [ "04260cc841a62b49ec5e4643" ], "read": [ "72cee39ee3575b55cee9dec8", "be3b371c43cca7a6f3bd2006", "35592ec518f723337eda2237" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Duis nostrud elit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "9fd087228b2c319de44b923f" }, "lastModifiedBy": "in tempor", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": null }, { "success": false, "message": "laborum", "original": { "_id": "db8932f43634076442e9bcb8", "name": "test", "data": { "gbac": { "write": [ "f445e82f023068aeb43d29b9", "b16f1ec7a2906a98e7ec2c00", "17d18d0aaab6ffaf78997358", "7e6d16ec2efaf71c56aebaba", "c0f481d0a1b37d330e6f57a7" ], "read": [ "555fd9028beca873608a757d", "a7ccc4ed3ed457331e25f724", "4f3dcf9ae14dc18989cd958f" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "non laboris et esse", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "3eeb07fcf03bc58251a996f2" }, "lastModifiedBy": "elit ut nostrud anim ullamco", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": null }, { "success": true, "message": "id amet voluptate sit pariatur", "original": { "_id": "384fffa8dd69b0659c55f3cd", "name": "test", "data": { "gbac": { "write": [ "75156837e4299baff18a1d34", "44978773fac6e93f0239072c", "bdbe3185b34fadaa30db6a1b" ], "read": [ "0efb95ce7b5e2fc66a315933", "54a4ef412c6b59d09fb4d485", "d64b2bd5bff692fd7acc5ba5", "0ea598ffcf8626668bcafca7" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "et veniam", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "06cb64d8650547e3532abe71" }, "lastModifiedBy": "veniam irure", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": { "_id": "9db7f2a6220426ebf33be9b4", "name": "test", "data": { "gbac": { "write": [ "eb8637792234db5b06e0a807", "7c78c544fba35798a4005a5f" ], "read": [ "803ebdf5daf57ac6eb0dda22", "a0fee786c40593fc6ffd21a0" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "elit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "d18d24c97deb948d934affd5" }, "lastModifiedBy": "nulla consequat minim irure est", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" } } ] }
{ "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" } ] } } } } }