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" }, { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ipsum est amet nulla aliquip", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "b208e068329bcde317ca4564" }, "_id": "62cea7126b846d227bbfd047", "lastModifiedBy": "Ut tempor", "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" }, { "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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "enim", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "c9513882bc256a20d44bfbcf" }, "_id": "479a2e85fec75945c08dee3e", "lastModifiedBy": "labore culpa quis", "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": "tempor", "imported": [ { "success": true, "message": "Duis veniam proident", "original": { "_id": "a35e2c211e00807df022affe", "name": "test", "data": { "gbac": { "write": [ "41426f473e982deee60b3285", "f1e13ad49c0f2e0410cc9089", "963c6e5b9668cad1b9b22107", "db97433ed6beb5f696448c3d", "24de355ef9398dc70635ec93" ], "read": [ "f9504a91147e13b082ee4bb7", "3339865588c13bf4af4f4d88" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "esse voluptate", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "2141414b2aef40cc131cd8e3" }, "lastModifiedBy": "ut occaecat sint", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "created": { "_id": "736ee995f53c9ce5328a1a24", "name": "test", "data": { "gbac": { "write": [ "852dcdcabee3425ac51206c2", "258ec4810c14aa537f3c1ccc", "dddc2eb004913c1e6a5f847b", "806436fed4904e2eedaf7a9a" ], "read": [ "60c7610bc4dcbd8e93990fe7", "2cd97cc89e9bcaebed4cbcc9", "8c060be0df2923656d354bb8" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sed consectetur", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "1f94258e939d5c93d477aace" }, "lastModifiedBy": "dolore ad Ut", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" } }, { "success": false, "message": "eu consequat", "original": { "_id": "7125395d4daaffee7c4894a9", "name": "test", "data": { "gbac": { "write": [ "7aa132c4991bcff2c1e93426" ], "read": [ "5499e9531a380a7828f0574c", "68f0a018212f06a68c6bf8c9", "279130e22ebbcc40918f680e", "68945d5adb879a098c44ab9e" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "exercitation dolor", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "ec919f5a72faf2583a4e4c66" }, "lastModifiedBy": "aute quis ad ut nulla", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": { "_id": "24836366d77e8f45d37503c1", "name": "test", "data": { "gbac": { "write": [ "0b59890f2d479756e10c8a3c", "b002ce03901e19fa37e6df9c", "70ef9de0981cc3725f1493fa", "b11b0140905272010bf9b590" ], "read": [ "8865d66d07f0001c20ccac05", "427fce9204cd27456620e9f4", "d043533b96d020fb714d03a0", "49ed24a020d9ad07eef3ce56", "bed0c5dccaddf13860432749" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sit et enim dolore id", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "2646eaa3c899cb8041cefc72" }, "lastModifiedBy": "Lorem laboris eu nostrud Duis", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" } }, { "success": false, "message": "ut esse sed dolore", "original": { "_id": "d47c470d891f25fccb19980e", "name": "test", "data": { "gbac": { "write": [ "b2860de3ec72f0c872891ea5" ], "read": [ "d4eccc0d6151375af7718102", "6455b85321d2a8eef34fe7ff" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ex nisi nulla amet non", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "5fa4ea8e2cf830e6a3484bd3" }, "lastModifiedBy": "pariatur in culpa in", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": { "_id": "7374e0e1f519fd648c5cc1b1", "name": "test", "data": { "gbac": { "write": [ "abc945de2a94915bf7bcc080", "a56fbceff09208ed2c48a7b0" ], "read": [ "2c3e38a2a0aa2762d0537a17", "b408b1ff42d36d71c46f1416", "0fcec56d876dc61c0779e4cd", "28c38ea9fd91ef87f3052eea", "b2386d9d7080aeedf9b83ce0" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "pariatur culpa Excepteur adipisicing enim", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "bde06da4841785317fae2ec5" }, "lastModifiedBy": "eu", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" } }, { "success": false, "message": "in in sit consectetur", "original": { "_id": "a71b78b59663baab537d7bc8", "name": "test", "data": { "gbac": { "write": [ "b3aee09ac13ad0a6a597181b", "5392a01bf86e0c6a53354666", "ea8f5c147e8d8e051b558bca" ], "read": [ "ed68914ae32403bf6cc95a57", "8532137476080ea6f5b7a49a", "1084ac63a4305ef156ebefbc" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "nisi ut Duis et Ut", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "f2314ed668ec9a4501a2518f" }, "lastModifiedBy": "laboris irure", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": { "_id": "4eed72323c52d0d1db5b9573", "name": "test", "data": { "gbac": { "write": [ "761c2a067cfa478deaca799e", "8c57f60d0126495a8fc31225" ], "read": [ "d7b8bb5574e78e17d939f844", "804e79c2deb0d3caf0aad950", "467c570798ac696c63ab4741", "65e32dbbb3bce29c4e53b11b", "54dd606f58b9c4d17f455a1c" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "occaecat nulla est", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7d5f3b48bb568a7d0a69166f" }, "lastModifiedBy": "eiusmod Ut enim fugiat magna", "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" } ] } } } } }