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": "commodo", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "b0432aad67b6e2fd1fd01706" }, "_id": "d8e03ada35b91de25dfe209e", "lastModifiedBy": "ut nisi aliquip dolor ullamco", "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" } ], "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": "dolore ut nulla", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "3156d35875795d0923300b4b" }, "_id": "e47964827e93f828bfb7c92e", "lastModifiedBy": "ea sed", "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": "amet occaecat laboris", "imported": [ { "success": true, "message": "ex Duis", "original": { "_id": "c2913f86e83fd14eb1727081", "name": "test", "data": { "gbac": { "write": [ "a34c127c7910d28b1dbf06bb", "52186ee36b9e09e84a348f3f", "6286a0b0be5eba33662dad04", "d02c13239dc29151612abb57", "66bfd92c593461ed4417ba57" ], "read": [ "c1f6a9699820593b38356d1c", "a8e5d81f22ce1587c8dc3c1b" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "quis anim minim exercitation", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7219808dbec24827ff335d2f" }, "lastModifiedBy": "voluptate esse", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": { "_id": "22a550bce606ef2febda090c", "name": "test", "data": { "gbac": { "write": [ "4e48e37866c4ac5e3eff587f", "193376860f6d369e3f8f284a", "8fafae46639fa679777896bc", "e66e02a78a4df8b8f8d2bd58", "1810c9d7e0d3a51bfd0c2654" ], "read": [ "9a149f0a76169e93089578fe", "2eeb66023df440ba36eab822", "8219be5b594fd1981ed96b54", "83fedf23cddd07b08843f11d", "f887e0597649f6a9d0001161" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "in enim et", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "e9153e8b216bf32221e7303a" }, "lastModifiedBy": "sunt occaecat minim eu culpa", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" } }, { "success": false, "message": "ullamco do sit officia mollit", "original": { "_id": "6fa3817d3b4a448cf7905a69", "name": "test", "data": { "gbac": { "write": [ "9477be364e8adc3027d758e7", "7cbd9ad2d1b19b4a355ddf06", "faa4fc2ff83aead6e80207f3", "3b6bebc5d372eb2260e1fa22", "30177e24237b3ec07e814cd5" ], "read": [ "2125e47ade7ab05de988416b", "44b684da49aa071dc8c7e9fd", "97a6cb561bd88d31747abfd0" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "in", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "8d44a3964e1d647c81e4256f" }, "lastModifiedBy": "occaecat", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": null }, { "success": false, "message": "dolor quis", "original": { "_id": "9f08f717cf83077c9cfd235a", "name": "test", "data": { "gbac": { "write": [ "c7c9bfb48b14780e04e9121d", "507898c116e886b0de8183d5", "1b2c775ef32521c955ecd881", "bfa7e608dbf81222ab271ff6", "f41aa8de2f6ade014022b754" ], "read": [ "32ae0767f2e9150eb1513a05", "d9811f03bebfd710b5728149", "f0680e948eae73efa5abf452", "533739a1f3fbc76a8bd8831e" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "esse exercitation", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "8c6dd34afa5f89cad8329475" }, "lastModifiedBy": "exercitation nulla", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "created": null }, { "success": false, "message": "laborum incididunt nostrud sint", "original": { "_id": "f9181ec343fa70e945b257cb", "name": "test", "data": { "gbac": { "write": [ "2649908ecb393b06ce6a2d4e", "a9a248c6e0e504360a48dd45", "9bebf75e9d1ef1424049ff2c", "9e90050f80c4eac2b7c2ca5a", "b95b60d4137cc0fb860992dc" ], "read": [ "8efb1a9bfee7ec3e6b0e9a1d", "fd01cab2efa73edcd1b98521", "b092afc6cadf70d7a7d63496", "548185962127683332437bc7" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "fugiat amet sit ut ullamco", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7ff40f4c3ab917a5600ea4f9" }, "lastModifiedBy": "cupidatat", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": { "_id": "55c59e529e4487fab2379677", "name": "test", "data": { "gbac": { "write": [ "2cd51fe7c25259acdd4d9c5e", "a690c41c03ab0c4c4c851a0b", "f203f0a7fce3917ca3bd8aa8", "989f20aae7e7db423bb21262", "bc66e41fef8a356e930eff40" ], "read": [ "e0bea10f0742246e9bcbf443" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "tempor", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "51d136fd75ada08355bf1133" }, "lastModifiedBy": "quis magna in", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" } } ] }
{ "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" } ] } } } } }