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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ut dolore est", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "b1ef370a1ebb2f174206c422" }, "_id": "c417618d149f973b2bcc84c4", "lastModifiedBy": "deserunt", "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": "reprehenderit occaecat cupidatat non minim", "imported": [ { "success": true, "message": "deserunt tempor", "original": { "_id": "600990930eb559dcdd63c30c", "name": "test", "data": { "gbac": { "write": [ "7f4306604f67a3d81182f40f", "2ed28badcd39c46dbb704b21" ], "read": [ "7a4d56116150b84fa34a4c42", "0292f82bd3ba0bde5e56ae8a" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "officia commodo nostrud", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "221347e9d811f15c8e074f55" }, "lastModifiedBy": "sunt cillum nostrud sint", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": { "_id": "517b7f81c1955a3191331b1c", "name": "test", "data": { "gbac": { "write": [ "31644b84522308a7d7c11372", "c9808b192270fc2d2ae0a8f5", "5ca67ce89f29a246243748f2" ], "read": [ "e5efdfd4ad41f7d1b1d7b339", "99b6671bdb488f1ac77c70d5" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "incididunt ut occaecat magna", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "927639ff7a0919c81878d5eb" }, "lastModifiedBy": "ex nisi commodo officia", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" } }, { "success": true, "message": "culpa veniam magna", "original": { "_id": "3b09c5b6de6ecc0b00f25251", "name": "test", "data": { "gbac": { "write": [ "77e2e838b46ee8f21b79fd57" ], "read": [ "b61745fc56298cb55d3d9841", "967ead388b374a6033c50168", "0bb24bae4b891cec8fde3fd4", "127d27f7757f325646e8529f" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "elit commodo aute", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "f5dfba102819caae6844ba35" }, "lastModifiedBy": "labore veniam", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": { "_id": "3e335b42b4f01c994dc5906c", "name": "test", "data": { "gbac": { "write": [ "601a1bfb9f38ea34aae89b09" ], "read": [ "f7f039c110055edd414ff5ca", "33c5c104db5d8055edfc36bb" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ea", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "fe155bbe31d414918d312a63" }, "lastModifiedBy": "officia ipsum", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" } }, { "success": false, "message": "Lorem pariatur in id amet", "original": { "_id": "d854486ae9acc4f4e01ef6ba", "name": "test", "data": { "gbac": { "write": [ "5e839a871482b7ad65de3519", "5e71aaa156f878abfb4dad9b" ], "read": [ "19f3a33c5c90f673c8715df5", "fc169cb19baaaac941b58d26", "ee0a877fde762ed76df52d21", "50def8778a15f0e821f691e4", "2aaf0188b8c189267c05aa1c" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sed amet ad reprehenderit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "0e2d2a3c41953a5031179208" }, "lastModifiedBy": "elit", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": { "_id": "fd25095716abea4f347e4342", "name": "test", "data": { "gbac": { "write": [ "73a0266ac9f1e05ed442cf68", "a0cfc035395db889bd5b26a1", "97e5cb92361336ee4fd1a170" ], "read": [ "ede0cb60c157023bf26377e5", "18e095a154203167c3322d66", "4b4ff8aa014b68be7836c19b" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "proident cupidatat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "3a6f2a9463c37f608a691a9b" }, "lastModifiedBy": "ut aliquip aliqua pariatur", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" } }, { "success": true, "message": "id Excepteur laboris dolore sint", "original": { "_id": "4b452cad3c0df05c4cf7af66", "name": "test", "data": { "gbac": { "write": [ "15584a771a3c94883e72ce0c", "f0cdc3725c30106c2dfc9ab1", "81526be4cdd3745eddd91096" ], "read": [ "0a2503f01b9222950faf8c02", "eb0f5753bc7d0842f31b26cd", "cfd02a90a4caf57fe8b12952" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "occaecat in cillum aute", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "6c05de22ff5fbe09c2683dae" }, "lastModifiedBy": "pariatur anim veniam magna", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "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" } ] } } } } }