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" } ], "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": "sit in", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "1268afbe470a3c20afee89fd" }, "_id": "6838887cb53c7e7e5223568c", "lastModifiedBy": "nulla", "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" }, { "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": "nostrud amet in in ullamco", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "e2df1b1e01c556ad46735ec8" }, "_id": "0132adda5efe3bf7e4e0a118", "lastModifiedBy": "dolore", "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" }, { "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": "consequat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "14488e03a84aa6ce94c07443" }, "_id": "ec23e88accb66b92cb853992", "lastModifiedBy": "culpa veniam aliqua amet", "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": "consequat", "imported": [ { "success": true, "message": "eiusmod", "original": { "_id": "1cf4710039c94324dc01d281", "name": "test", "data": { "gbac": { "write": [ "b67d84e052916e4f1ae38e8a", "446d4881dbf983a01b30f852", "8668ecb55382d4797de4a570", "82ed120ccc85e3afe95a41dc" ], "read": [ "d4c3a42e0c119ff0b3884ff3", "a0b63feb7a39f20fe4fd5d8b", "92c429b22f44cf4b845ed466", "91630992332725a6216ffe96", "cc975a5d4f02673192442d38" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ullamco proident", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "b9d2891e30b9fca72abc56aa" }, "lastModifiedBy": "sit pariatur officia", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": true, "correspondingOMAutomationId": "71412325597d377f5d677452" }, "created": null }, { "success": true, "message": "amet", "original": { "_id": "2b1ed661006f72feb4629584", "name": "test", "data": { "gbac": { "write": [ "62d1137e28ebe74461392276" ], "read": [ "07dec0cf667f0c9aad909130" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "reprehenderit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "c63e5f1d5c4933dc4f521bc2" }, "lastModifiedBy": "dolore", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": false, "correspondingOMAutomationId": "ff3bea088d9805ab60b38b2c" }, "created": { "_id": "c09fc418c6f29ff07ecda421", "name": "test", "data": { "gbac": { "write": [ "8c113a256bd258ccad528aca", "83c4591419052b041d00e1cf", "2a1fdbb59aed7b1c2a324d32" ], "read": [ "bdb9d30c658fd6cedacef321", "d9b15b9d89aca17c8f61ff16", "04c23bfb4e484222fb6461d3", "4b6597283d65e00895ea48d5" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ut sit ea", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "50c7ad45c3f1330d3ce76020" }, "lastModifiedBy": "dolore", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": false, "correspondingOMAutomationId": "51d999398011e9b583c34a64" } }, { "success": true, "message": "consectetur", "original": { "_id": "4df66fb93a92fbc1745ce8e4", "name": "test", "data": { "gbac": { "write": [ "8d980dabe3da455485a0cee9" ], "read": [ "30e5bc666b8e66eccc54cdec", "fcef68e38000167c04971124", "eb417217351f62e0c0b6ff75", "56a28da29440d68b1526ed7d" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "labore ullamco Duis", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "183d1da2a0af84a181e00c72" }, "lastModifiedBy": "laborum", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": false, "correspondingOMAutomationId": "4005edd9b6ad8842d2494862" }, "created": { "_id": "86e05b2c748367b2839ad3b5", "name": "test", "data": { "gbac": { "write": [ "3a18e33e8814e641328418c1", "733ab81b99b45749403ab958", "28b2375169317eae937845c1", "abd68dbb5f20044e6d325421" ], "read": [ "4fc3ac64aa5ec480bd84ecd9", "5111e9c0e6516236f7432d07", "e01ea89f847844aa85b999ed" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "dolor sit ad ut culpa", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "449551870c38d74b2d2fbfa6" }, "lastModifiedBy": "magna fugiat laboris", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": false, "correspondingOMAutomationId": "fbc9bf5748bfde4077bf9d1d" } }, { "success": false, "message": "et in dolore ea reprehenderit", "original": { "_id": "887050e8256c28bc39f87330", "name": "test", "data": { "gbac": { "write": [ "34de1ca4df7c6538c5b2ee7e", "75053c88fb03846fa1cf9ee8", "3b98e6aed2cf1eac07c211b5", "61c2fd37b9135bb682a62196", "1f040b212710d71c45b60f63" ], "read": [ "d15ee0c84f987376cf210f67", "d908686796399933280b68e3", "5edb6896763ce2e498f17a4c", "995d7613bff07dccfb5141d4", "bfbbf61f05daefaf683452e6" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "deserunt eu consequat ullamco", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "8717174734025b0477d4a643" }, "lastModifiedBy": "veniam qui consequat est sed", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": false, "correspondingOMAutomationId": "0bb21d979bdd98c02d5417a1" }, "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" } ] } } } } }