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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "in eiusmod amet", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "811baa79789057a8376b0b31" }, "_id": "db1943e990ef89dc4551531d", "lastModifiedBy": "occaecat sed commodo", "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": "ex pariatur cillum commodo", "imported": [ { "success": false, "message": "pariatur eiusmod adipisicing esse", "original": { "_id": "ba7adc51814a160cac576b45", "name": "test", "data": { "gbac": { "write": [ "956474f7f6961edf79d3261b", "4bb537280947a68f06821d72", "502cb6c3aae274aae9306270", "1ec5423ec84409c64c2744f0", "86bcc837dc142507139749d2" ], "read": [ "327483d621ebcee234238094", "afda99393489f508e9eb04c4", "e19067a08a607ca126650238", "d7cc51cece2202aa75cd997b" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sed in proident", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "3a077b24c52aae6cf38ce8c7" }, "lastModifiedBy": "ullamco qui cupidatat id", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day", "migratedToOM": true, "correspondingOMAutomationId": "57e213eb4adaba6f9e206477" }, "created": null }, { "success": false, "message": "reprehenderit voluptate laborum quis", "original": { "_id": "e87b7ee2d3159a7caeb3809e", "name": "test", "data": { "gbac": { "write": [ "aca704149b347014b36a4fe7", "5d5cb49b011e4c0cc46d343a", "6d67adb340d1f1bc23478880", "e41d1104f195befa05ec9cd8" ], "read": [ "b2ca10f83b34aaef3114d6c1", "7e4b4cdd3fc7d874b1e37309" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "officia ex mollit aliquip", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "ac3db3b58af57e800be3e606" }, "lastModifiedBy": "non aliqua", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day", "migratedToOM": false, "correspondingOMAutomationId": "c16162f04f08f023746819b7" }, "created": { "_id": "43f5224df69deade7b036d4c", "name": "test", "data": { "gbac": { "write": [ "280d1150675a506e2064c97f", "b5a556e268587f5d18eb2a81", "da71bd42877e09005f5c4e26", "4fc6795d89c5eac29ef50ccd" ], "read": [ "70a5878f86d6df54d359ed21", "96cc956044c1e7424a968ed8", "97dfb275de33411d37241794", "9cc2493da82c4b1d6219772c" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "proident quis est", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "3c7c52e49034945103f88fc6" }, "lastModifiedBy": "aliquip ut voluptate", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day", "migratedToOM": true, "correspondingOMAutomationId": "199a59c6f0d4e4b2338232e6" } }, { "success": true, "message": "ad dolore", "original": { "_id": "5655a632229846796f39b8fa", "name": "test", "data": { "gbac": { "write": [ "4a22c71f60e91b0ab3b24406" ], "read": [ "2e1ba1a70a07ba25e9b0481b", "f290ac36baf0020c17e8a682", "6ed27335bc0dab33238dd1ba" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "et", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "ce593510e3a9a8275f9cde0d" }, "lastModifiedBy": "nulla", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks", "migratedToOM": true, "correspondingOMAutomationId": "50e53361ae549cfb20ae5961" }, "created": { "_id": "ce65fb30f727efee085394fc", "name": "test", "data": { "gbac": { "write": [ "1a313fbebb560e0e67a165e5", "534d6fb92052577fbe0c649a" ], "read": [ "d7a2e895c15067333cdc904c", "ca0e1ed42723e22f51d23a7e", "c3b1e2599d665ef23e48056d", "e7dc8ac36eb5ff3114fc87a5" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "culpa dolor", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "c046ea362b8c5eaa73da581a" }, "lastModifiedBy": "deserunt in ad mollit", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks", "migratedToOM": false, "correspondingOMAutomationId": "04a50b731dba471dbecc6926" } }, { "success": false, "message": "anim incididunt dolor cupidatat tempor", "original": { "_id": "be646fad5766d191df0aab37", "name": "test", "data": { "gbac": { "write": [ "74544699e0ce6a394b40bd6d", "5ac37b1798345859ced40b30" ], "read": [ "d70a30a0e00b3d02a59a8394", "f570e9cd6a1b6c1ef86fa0c0" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "veniam voluptate est", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7cb209ea1e570155507d580e" }, "lastModifiedBy": "et reprehenderit velit culpa", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": true, "correspondingOMAutomationId": "ad64ad52fdfe21f13b0d9151" }, "created": { "_id": "27f71079aa6e869641aaa153", "name": "test", "data": { "gbac": { "write": [ "a528a4d4289edb1eabc38fd6", "c9c4deaa8a3c71033934c0b4" ], "read": [ "d50496fa03c1caa5557f0aef", "316faec8058399fc1724aa38" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "irure Lorem incididunt et", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "bcd5323a7abed67cf0ad0a43" }, "lastModifiedBy": "reprehenderit deserunt esse", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": true, "correspondingOMAutomationId": "48214d4108cbfcb23a1d1884" } } ] }
{ "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" } ] } } } } }