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" }, { "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": "laboris", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "d4006dc7b6ce826639ce0779" }, "_id": "a4ff23650b77d3da8a1794b1", "lastModifiedBy": "cupidatat in sunt", "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" } ], "read": [ { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "nisi", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "299bcaccf196972b409bd9c0" }, "_id": "50ad1c1bae07876ad11a5f38", "lastModifiedBy": "anim sunt", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" } ], "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": "eiusmod sint", "imported": [ { "success": false, "message": "eu in", "original": { "_id": "e6a10cf8d2c7cc36e17708cc", "name": "test", "data": { "gbac": { "write": [ "7bb1eaebb358345363d093ce", "17d540df7dd6de0d125d829f", "538d6bd2456622451d8968c7", "e162bff52f118823bfb77e24", "5d88c06858857a7b96066546" ], "read": [ "bcefadd3f6c63fb91118dab7", "c05bc09a81ca446aa4fe3a7e", "0c4c56b3867f6299291dc545" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Ut", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "66b9eb28ebf6f2095cdb2cd5" }, "lastModifiedBy": "labore ut adipisicing dolore", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks", "migratedToOM": false, "correspondingOMAutomationId": "654aa5125bbc2942905e270b" }, "created": { "_id": "0111a7f5ff7dfdb1f1449956", "name": "test", "data": { "gbac": { "write": [ "6eae262e40978e7d8c39d9c3" ], "read": [ "9043f3bcbacc320ba9bdc6d3", "615a9701fe4feee7f9937cfb", "d1f8e80e6d2a05b2030930fd", "9afb4e8a4396725cd3d23184", "c4d5befe7510159cd7a34d43" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "non in", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "5d41e271f8a9d7809c1e81ee" }, "lastModifiedBy": "sint adipisicing dolore", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day", "migratedToOM": false, "correspondingOMAutomationId": "fb5839bf8c3231987d02a230" } }, { "success": true, "message": "ea fugiat dolor enim Excepteur", "original": { "_id": "be25abd5c25e0a797b3e08ec", "name": "test", "data": { "gbac": { "write": [ "7f63af352e62b60c8b1371bb", "0291c7d566e086181ea8772e", "b50ae6afafa6e0455a4af62f", "45f98cbab7a9b4b95f4a1563" ], "read": [ "6541d8e5458fcdd5904c719a" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "quis", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "696e9d0a01afaea81c1ce91c" }, "lastModifiedBy": "sint et culpa enim Excepteur", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": true, "correspondingOMAutomationId": "a48d7e3ff47efb4009b7fc57" }, "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" } ] } } } } }