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" }, { "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 amet", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "175851a5ed47755819b50762" }, "_id": "989f019b978cfc9e1d5c37f0", "lastModifiedBy": "nulla cupidatat irure ut", "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" }, { "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" }, { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "adipisicing ex ad Excepteur", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "99fc61abbf252603dbff2c07" }, "_id": "eae467f1e8e5da981032a2da", "lastModifiedBy": "sit elit reprehenderit enim", "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" }, { "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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "non aliquip in", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "d01843ab76da5873011f8608" }, "_id": "8d91dbf66edb7ea1e8494746", "lastModifiedBy": "voluptate cillum eu amet fugiat", "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" } ], "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": "irure amet sunt cupidatat ex", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "007e3223eda78923aa0e5db2" }, "_id": "cf888eef997f58fd132ca821", "lastModifiedBy": "veniam non in aliqua ad", "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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Duis occaecat adipisicing minim ea", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "2e18c3ca5afcc9ac719182b3" }, "_id": "ce63cb169e60619bfc190790", "lastModifiedBy": "sed incididunt eiusmod reprehenderit", "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": "sed do", "imported": [ { "success": false, "message": "sed eiusmod ad Lorem culpa", "original": { "_id": "44c5102d18f7e5d618afd925", "name": "test", "data": { "gbac": { "write": [ "7404d2ca70375e7f430321b3", "8ee6b088e3687b336e4e0bb7" ], "read": [ "24fa895f696f75d61815018b", "a0dc0a53c871badfb5cd4869", "e7264c19c174ef6226cd0b3d" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "in exercitation", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7c9d2dee32c24c754fe715b9" }, "lastModifiedBy": "adipisicing Ut dolor sed culpa", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": false, "correspondingOMAutomationId": "f5176bf56ae013c28f601e57" }, "created": { "_id": "bf9c0f9de0cecd8aa4a17600", "name": "test", "data": { "gbac": { "write": [ "1e91d68adaf646f9c0b4cbb2", "95b2450861c71c6c6c826c72" ], "read": [ "20e00f01be3b627f9338612c", "b6b6d7987fb7d85adf919238", "f2e45efc3642f485fd302308", "f4419d29dd1325b53cd55984" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "tempor veniam", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "433def47f1e5c5aa79721443" }, "lastModifiedBy": "minim", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": false, "correspondingOMAutomationId": "a83abd1328eacc4d5eb90243" } } ] }
{ "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" } ] } } } } }