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" }, { "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": "quis", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "4d201b4bcaa47ce7c9412412" }, "_id": "ae4f6cde25425199cffb8584", "lastModifiedBy": "quis", "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" }, { "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": "labore ullamco velit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "acb3b2589ef5fe862cb17f81" }, "_id": "9f0d7a689734a7ea93ed7e61", "lastModifiedBy": "in eu pariatur ut irure", "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": "quis exercitation", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "95809e301a0c02bb7b18dacf" }, "_id": "83e943e0599c4a8dceeeec71", "lastModifiedBy": "consequat est non incididunt", "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" } ], "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": "id", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "cd7a5d04d8ca90fee91ced36" }, "_id": "3e148f56d6d3dc4c1fd253af", "lastModifiedBy": "quis anim dolor", "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": "elit occaecat", "imported": [ { "success": true, "message": "consectetur adipisicing aute amet", "original": { "_id": "4dcf87505c14ba3612988aef", "name": "test", "data": { "gbac": { "write": [ "c2d23b9371c04afb34200312", "ba71234d84060385143ae2b3" ], "read": [ "b4027ca4d03ee18ba8348e14" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "est ullamco", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "2bcae902fdbfeb79a8b031ff" }, "lastModifiedBy": "eu dolor dolore veniam", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": { "_id": "60ced01ae3bae6e1e60805b8", "name": "test", "data": { "gbac": { "write": [ "1654086473e1a2d45739b6d2" ], "read": [ "5dd63b682ad0f9b034b18950", "900604e9ed4eb1003b56a112", "7654c168221bad9cf7badf7a", "0e0ec8d566e6caa139ffa034" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "nisi", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "9a328d7d152270cf30ac25d2" }, "lastModifiedBy": "consectetur deserunt adipisicing", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" } }, { "success": true, "message": "commodo laboris exercitation", "original": { "_id": "f03f479e90adc8b0df65fb2d", "name": "test", "data": { "gbac": { "write": [ "0eca5e411926d59f4d043f63", "6e25b3f83161acb0433ac387" ], "read": [ "fffbb38f5d0998d47a3641aa", "178a177610ec15b27ea9a1c6", "2532601f9b94704008fad4bc" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sint ipsum enim laboris do", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "8c9e03d477d719fe5989acff" }, "lastModifiedBy": "velit fugiat aliquip qui", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": null }, { "success": false, "message": "reprehenderit aliqua et ut", "original": { "_id": "39d4cd1d860770f1b0179c98", "name": "test", "data": { "gbac": { "write": [ "22e7c289663bb5f53dbc7618", "4615c8fa7b5258fbc80e3955" ], "read": [ "73da34c9f43ffe92a1624558", "68c17f0151708c35635c8ca5", "6a313ec43c63b42b73fc193d" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "laboris dolor eu fugiat cillum", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "48c7582148cc9f89d8dd2f35" }, "lastModifiedBy": "sunt", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": null }, { "success": false, "message": "sint elit laboris dolore", "original": { "_id": "12b9ab933b1fd0773748da62", "name": "test", "data": { "gbac": { "write": [ "800ea10af8f11e267a81a84f", "a5da5fd93c5d5935dc040a99", "c977122a092088003ffec32d", "9e53a62eeee4e864695dd462" ], "read": [ "73c3652a9b32500eac2d3c6d", "82b69764b9b94749c6e697fd" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "labore", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "761b2d4cdc6a6873d66dd4ea" }, "lastModifiedBy": "est amet in fugiat veniam", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": { "_id": "406af9041080e44ec056f57f", "name": "test", "data": { "gbac": { "write": [ "d75762a70c38e2684b5c2978" ], "read": [ "ebd6ae3d7319763cd238d435", "e0bec3f017ef75f64c7a8d3e", "851f09f87376a7853124679b", "bc8f553d748b2b66e3587864" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "laborum ut dolore", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "6e38a9c34fbd5c6bf5f74872" }, "lastModifiedBy": "nisi minim sunt qui", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" } } ] }
{ "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" } ] } } } } }