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" }, { "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": "proident amet dolor nostrud Excepteur", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "ec049741d4c5ef3d812cc21d" }, "_id": "9fba85c5e1dfe2effc301897", "lastModifiedBy": "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" } ], "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": "enim nostrud nisi", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "10d551f09cb4070f703850c1" }, "_id": "278bb624f1092aeaa086d3ed", "lastModifiedBy": "dolor", "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" } ], "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": "in minim do", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "d696cec7dcab0dcfb03f5d7f" }, "_id": "90b9bbe8bfd0834d5cfc1bd7", "lastModifiedBy": "enim eu exercitation Ut ullamco", "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" } ], "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": "non cillum", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "436f72b92240d4fc17421e3c" }, "_id": "9f983d664f78d491b8daeea9", "lastModifiedBy": "magna dolor", "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" } ], "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": "tempor consectetur ad nulla", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "6cadddc498cf6bd546ba6ffd" }, "_id": "a3f310d635644b15cf8147d7", "lastModifiedBy": "ut laboris enim dolore", "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": "deserunt cupidatat veniam ea est", "imported": [ { "success": false, "message": "minim", "original": { "_id": "9c5f1f9c505fb5d0e27c921b", "name": "test", "data": { "gbac": { "write": [ "aa6290356149607ca0286e8f", "56ea2bc9b8254eadc73aff20" ], "read": [ "54bb98e261d54e77d7e95520", "b9ef04015089a25fc2e9fb58" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ex labore proident qui amet", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "261ea3051f2baca67e0d8596" }, "lastModifiedBy": "dolor", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": true, "correspondingOMAutomationId": "002be48c913747e8f4f0498c" }, "created": null }, { "success": false, "message": "officia culpa laboris", "original": { "_id": "cd6647105621fcff3a439602", "name": "test", "data": { "gbac": { "write": [ "9c0ccafc56d6b83f30f11ebb", "67a6fa354ec71c61f59a47aa", "5552f911962b433ae7a9b2b6", "8da991fde87ca6030fb579e8" ], "read": [ "528dbdc3b95cb0fb37cbf749", "2eb9bc68f8549f9de58172a1", "5254253511bb8c3f6ea894a2", "20f092cac26624e8cf56dbbf" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "dolor incididunt laboris", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "c45864cbe471922109042471" }, "lastModifiedBy": "dolor nulla", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": false, "correspondingOMAutomationId": "ef3e5e636c42545ec8670f17" }, "created": null }, { "success": true, "message": "mollit reprehenderit est", "original": { "_id": "ba7cd1ae4c46573fd7cda25e", "name": "test", "data": { "gbac": { "write": [ "8c75dbd9a6af51ab32acc4fa", "951883e3e7bd5b3e2f8bb9d8", "8143b49cc56040b5c98db932" ], "read": [ "ee29e5cd27701fe1047c42ab", "63d9385473862255b0eeb61c" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "id", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "bd26425aa2b9a1d1c1398d6c" }, "lastModifiedBy": "aute cupidatat elit", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": true, "correspondingOMAutomationId": "09893ab8c5e2662560b7f323" }, "created": { "_id": "fe8a61966a6e0eabdf31629d", "name": "test", "data": { "gbac": { "write": [ "62b6215170713fe28e631fef" ], "read": [ "db89757354ced4e2e2bb241b", "c31be5512ab7acd635683651" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "mollit ut cillum", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "8c003dd9575368cd89708ba8" }, "lastModifiedBy": "eu ad consectetur", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day", "migratedToOM": true, "correspondingOMAutomationId": "f63989ddfe4ef5fa7837ead1" } } ] }
{ "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" } ] } } } } }