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" }, { "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": "nulla dolor amet ex", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "f64669b7d13686422dacd934" }, "_id": "495b46c7b91e225bd4d56cb7", "lastModifiedBy": "Ut dolor", "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" }, { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "enim cillum sed", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "c782df72c13f62b7caff933c" }, "_id": "4ee716938f0e0227de30fd8e", "lastModifiedBy": "deserunt consequat", "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" }, { "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": "dolore consectetur sunt", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "db771348278d453a52dbc6cd" }, "_id": "21efcc93d20367eedd6db1b5", "lastModifiedBy": "fugiat", "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": "labore est proident consectetur in", "imported": [ { "success": true, "message": "cillum culpa", "original": { "_id": "29011c25525b948baf545163", "name": "test", "data": { "gbac": { "write": [ "1078a4e422b71207c3772dda" ], "read": [ "c1e06d14c5a1430c42cdd202", "ddc9eb032caf2f5e6a5c5939" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "commodo amet est sit culpa", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "44880158e979db8195f7f1f3" }, "lastModifiedBy": "et irure", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": { "_id": "24cf60aa783ccf5fad18def6", "name": "test", "data": { "gbac": { "write": [ "79f56ab08ccaae3d2719ce81", "8feb3517eefadad91b57ae6a", "17dcf5955239d7847db83d5e", "e34c2d207759789676e0ca68" ], "read": [ "dbc4638878f16c048d0ff203", "499162c38b587ada13afc6a2", "ab9153b1557a39c78136e6be" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "eiusmod cillum nostrud", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "42abee263b8b0e8b6db8a0b1" }, "lastModifiedBy": "nisi", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" } } ] }
{ "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" } ] } } } } }