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": "id", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7a2d98aa947e3eb4359cb00f" }, "_id": "6eb82df62340d7fa114957ad", "lastModifiedBy": "Excepteur", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, { "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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "laboris fugiat reprehenderit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "29c7de2cb788707c0a1e9b96" }, "_id": "255e3181a835335353fa62d6", "lastModifiedBy": "reprehenderit mollit commodo exercitation", "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": "cillum culpa irure sunt", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "0c3d2e17fc3ff6bba8df4653" }, "_id": "a2ff26fbe75db71903e2f329", "lastModifiedBy": "labore velit ut ullamco", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, { "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" }, { "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": "nulla consectetur cupidatat ad", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "8725ba1ae13769870949bc6c" }, "_id": "087109ce2406643c025be835", "lastModifiedBy": "adipisicing", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" } ], "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": "sit anim tempor sed in", "imported": [ { "success": true, "message": "sint", "original": { "_id": "95b9506426137eccc858be08", "name": "test", "data": { "gbac": { "write": [ "66b63894f626dc97b7f6a74f", "ecd21539bf26f330b9de8082", "41f13befa539e53a32aa306b", "6deceb60f750a0c90ba199d7", "d50bbaf37c9417a4391c33fb" ], "read": [ "99e0c2ad86d133bad02b46a0" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "veniam ullamco officia", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "f20e51b07b9aaf7c339f0296" }, "lastModifiedBy": "minim Duis nisi fugiat", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": true, "correspondingOMAutomationId": "60fb148101d332f25f33ccff" }, "created": null }, { "success": false, "message": "aliqua id nisi", "original": { "_id": "d8b8ab6257b29498a3efa9d2", "name": "test", "data": { "gbac": { "write": [ "41600b8bffbcc219ccfcbaf9", "2c0c13988d5cfa0bf0bdc1b0", "32ad498716a01b70ad4e7245", "bc8855646b56965a546f6290" ], "read": [ "63623a882c08c8f4e38aca94", "185575ee3fe7774c4945613b", "b925061851de3d14abe9511b" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ut exercitation", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "cddcb7caaf88b59294fd0e6b" }, "lastModifiedBy": "ea cupidatat elit anim consequat", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks", "migratedToOM": true, "correspondingOMAutomationId": "dcf91c2c87c99a20e76f0d1a" }, "created": { "_id": "35f7eade8a29f071a7804259", "name": "test", "data": { "gbac": { "write": [ "424fc12d02fd59391f085ba5", "54f57144265f81e1eb183114" ], "read": [ "2e44ab3500e4c0ea60094255" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "culpa cupidatat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "30d518168c33d40288183a47" }, "lastModifiedBy": "incididunt et nulla aliquip", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": false, "correspondingOMAutomationId": "cc6ebf8e9061c9142bfdc3bd" } }, { "success": false, "message": "eu aliquip Excepteur veniam", "original": { "_id": "7bb5d02aeaf204acc68c02c5", "name": "test", "data": { "gbac": { "write": [ "283a978cc38a8119cce878a4", "cd2ce7f655665de4563f065b" ], "read": [ "ef2174eb263468ae143e3445", "0819f2ee8a7a2e4cbc7a8783" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "quis", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "9c5506c4cd8b9ce5a9db5899" }, "lastModifiedBy": "ea Excepteur occaecat voluptate incididunt", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": false, "correspondingOMAutomationId": "f686ccf5f6c656e88ab87a3f" }, "created": { "_id": "4ad78063d7543421c87c27af", "name": "test", "data": { "gbac": { "write": [ "bc51772f0b0e9c00d8cb588e", "4665b23b6fa5e6a5d065e650", "9305f6e6bca5ba48fb18145f", "64d746959b1e506640280410" ], "read": [ "6787156f93a7b31bede025d2" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "non aliquip in do laboris", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "a8d612fc63e0bf4de936930c" }, "lastModifiedBy": "minim ut", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": false, "correspondingOMAutomationId": "a8e6a140d677546c68785a09" } } ] }
{ "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" } ] } } } } }