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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "amet cupidatat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "8739d4e747ef127e7b0871b7" }, "_id": "cf9bc687d8881c81750a3568", "lastModifiedBy": "adipisicing officia sint labore ad", "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" }, { "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": "exercitation minim Ut", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "0e0502553f4242b39695e188" }, "_id": "21e7bc4f59364ca5e8937b55", "lastModifiedBy": "Excepteur mollit esse", "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": "velit Ut qui", "imported": [ { "success": false, "message": "ex reprehenderit ut irure aliquip", "original": { "_id": "baac70f9e6a935595559d86e", "name": "test", "data": { "gbac": { "write": [ "d632195f75a85e0b264da8e5" ], "read": [ "a306e8f23e225d535a114f81", "0bf4429bff59f17316e63b72", "bcfb17cc587ac63d4165c0ce", "043d5ce9dc0a2ab624bf0019" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "in adipisicing nisi", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "3957cb980d01e7b78010c74c" }, "lastModifiedBy": "consequat ex", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": { "_id": "992a44d811b044b1e907471b", "name": "test", "data": { "gbac": { "write": [ "9d3e8d9ac9a854e775be37e9", "30b7adad0d293a4cdc4de627", "3f4187ffae5f86324f5bd8b0", "b32b04736641782bb686268e", "039eb32d8f79dffe5af66d29" ], "read": [ "bc72b04cc831a07a9563795e" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "labore Duis fugiat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "cbf9a39a2eb7ebc11907b115" }, "lastModifiedBy": "ullamco reprehenderit dolore tempor esse", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" } }, { "success": false, "message": "esse velit", "original": { "_id": "37c8beb0037fd00b1446b5e5", "name": "test", "data": { "gbac": { "write": [ "66fbeb733f667971645088d7", "0f277dfd2da593220664ce19", "61e3744d0fadd809f11c8031" ], "read": [ "0e205a08d3ee2c364816dbdc", "604174d0662ac84c9f4888a1", "1f0eae5523b7da3414054069" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "eu", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "3ac5159481f807b22f75c710" }, "lastModifiedBy": "in", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": { "_id": "e9e1a22acf4571368d44246a", "name": "test", "data": { "gbac": { "write": [ "e5c2725a810c1150c821287c", "5f5d52264d152472227f37cc", "e790762b2ce9aaa436eea432", "c829fbf76eb620b0c1f3612d", "74ede03e04f564eb09c81bcf" ], "read": [ "432f6cd664239dde0f16c88e", "3e30f957b02349934ca5e118", "ef7ed561af13876976fc8151", "f3fe2ecfde1846b16c031a4a" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "incididunt ut", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "59868897aaf9a4ebb00c369d" }, "lastModifiedBy": "in", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" } }, { "success": true, "message": "fugiat laboris", "original": { "_id": "a8a009c1aa332f09d6a54b82", "name": "test", "data": { "gbac": { "write": [ "b36f3f2d25db80d341f4a714" ], "read": [ "58a978fb5a4fefb03c1d663c", "ef8c6403345d2874e8677cbd" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "fugiat Duis", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "9bce9503f9f13c8d6180fb74" }, "lastModifiedBy": "eiusmod occaecat adipisicing magna", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": { "_id": "c2f3c3c6196248fd8f4c16b9", "name": "test", "data": { "gbac": { "write": [ "ae101d5fb7fb870fd91d0bfc", "2deca63d60519ee6d1f30cd0" ], "read": [ "7019c408d2942ee83acf30be", "b031e753ec0465cef5e53f1f" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "amet", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "dcff420fca39c17ee8212bbf" }, "lastModifiedBy": "nostrud", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" } }, { "success": false, "message": "culpa officia", "original": { "_id": "4cb8518f37d293cbe71bdf28", "name": "test", "data": { "gbac": { "write": [ "7f1c6c31a2f5ab58ba095c84", "cae88e054529fed24e6b7cc6", "7fea4baaa4a76f3e58e4828e" ], "read": [ "08eb5fdff91c807c9dde8f83", "60eb231b31964730299666aa", "156d0a08f4b2b3ad6a273771" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "dolore", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "5e8fc4554a3f032e8182c7e3" }, "lastModifiedBy": "reprehenderit minim", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": { "_id": "7a003b6c871beaea6dfecc8a", "name": "test", "data": { "gbac": { "write": [ "623ada69b7101e189182e045", "bf7b9aacdf3d552fe01ba4d4", "1603848d6dd01244cbf857d1", "316a54497cb8f9351e2271d0", "f92cb766cd841419c81f097b" ], "read": [ "2ff1e0087184c135b0afcc29", "2f1c17f32539f48b764645ce", "7a0b1a58b8c89656b0a7862e", "844c1a7bb3f2403addea0cd2" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "nisi fugiat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "a01918ab9aa1e7e6467515ef" }, "lastModifiedBy": "mollit proident occaecat deserunt nulla", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" } } ] }
{ "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" } ] } } } } }