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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "in", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "2880a7226d4b3917d47bafce" }, "_id": "439440b8efa1e8234edb60b2", "lastModifiedBy": "sit dolor incididunt veniam occaecat", "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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "qui cupidatat ex do incididunt", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "658633d122872559a3e95c8a" }, "_id": "a96b6c471e2e350e48088981", "lastModifiedBy": "anim Lorem eu cillum incididunt", "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": "veniam", "imported": [ { "success": false, "message": "esse", "original": { "_id": "d57e0ee877162d06409e133d", "name": "test", "data": { "gbac": { "write": [ "77f7acf07bf9b4afbfd3277c" ], "read": [ "d338d4d8ae08ab1ba778bd18" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "tempor", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "2bdb15e65e00eb7d62c29d6d" }, "lastModifiedBy": "nostrud ipsum non irure", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": { "_id": "6f9e1c2ce54f8fc9e18443e0", "name": "test", "data": { "gbac": { "write": [ "ce549cf33216e438373a8d51", "1ad6dca930906dcd3ac9558b", "d630e3cbd16513573054dc47" ], "read": [ "bf26955db857a4e63c5edd05", "3727ad44d5b888b3a89311b4", "7b1fa6bb2723362107b9a110", "44fc238104883ea70ef89b40", "7f34f60dd3afc6176d6cd9e1" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sit magna ut irure eu", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "df46189895b27754dd24b36d" }, "lastModifiedBy": "non occaecat", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" } }, { "success": false, "message": "dolore magna ut", "original": { "_id": "93486a7220b23f0a4d1ff473", "name": "test", "data": { "gbac": { "write": [ "5c354c487571bd56820ba6d1" ], "read": [ "16068a5ab08c1b05c1ad0dbf", "9850e61138ee490b0cf0d46e", "e3ccb589d1f673bc1c743234" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "eiusmod incididunt", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "e2e717478f589129d47241a2" }, "lastModifiedBy": "anim ipsum", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": null }, { "success": true, "message": "labore consequat", "original": { "_id": "68ee93aa3e0c969ec9f081f0", "name": "test", "data": { "gbac": { "write": [ "330412d681d5bfd46e5f0e3c", "46f3b9fe292b65cd37891d6c", "03a19c428379d171dcc36925", "090a00f712877ae349e45bb6", "093fcc686a4602d371a8793b" ], "read": [ "408e7a7208f459b2b25e60dd", "3d91f2039c000f9f7a6d6375" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ad commodo anim Duis cillum", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "ed10ead30d8ae380c1543409" }, "lastModifiedBy": "sunt aliqua eiusmod sed culpa", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "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" } ] } } } } }