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" }, { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "in elit reprehenderit est", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "90700ec7c1fb50f7fb73bdbf" }, "_id": "ec84f9f896a85d94ca016420", "lastModifiedBy": "in velit tempor", "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": "incididunt adipisicing sed", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "0b0d0f27264b893f163a4793" }, "_id": "2111563d8294eba2b0d3b5fa", "lastModifiedBy": "ea", "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" } ], "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": "nisi ullamco Excepteur esse", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "3b1c4d0cfd16386473d2cbc7" }, "_id": "9ac5541eb28ce620c2177ad7", "lastModifiedBy": "nisi sed pariatur irure esse", "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" } ], "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": "est Ut", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "5fbdc47c1d666acf500fceaf" }, "_id": "f845d3e57546b9bbf0049851", "lastModifiedBy": "cillum voluptate ullamco", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" } ], "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": "cupidatat proident incididunt adipisicing cillum", "imported": [ { "success": true, "message": "ut anim mollit ad", "original": { "_id": "45f2a12294f28155a97e9874", "name": "test", "data": { "gbac": { "write": [ "51702b8bb056efe1e13815b2", "23c0dc2831c6bf5eaba75316", "63c6b33256323c0f7fde7db8", "38e6f9060d3cedcb1bdf5052", "3ffa3d7be0bae372fdc62f33" ], "read": [ "5df9a4a17cd13d4e57ab3e10", "afedee5ceb872dfadca73fe9" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sed voluptate", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "0905620f6a109c62134b49a8" }, "lastModifiedBy": "qui ea commodo dolore non", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day", "migratedToOM": true, "correspondingOMAutomationId": "1b2dbf43244d2e8475256cd9" }, "created": { "_id": "99efb6e2d6ff11db5df255f4", "name": "test", "data": { "gbac": { "write": [ "5d09bec0b1b7d59e11b4cc48", "c55fd42ebd6e307fe4a2247f", "cb2ca58278c204aa084236fc", "610d949e3b719c0560f61c79", "34d1b93242d92dce20cc70f8" ], "read": [ "74a4e31db7710fb4a37473b0" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "adipisicing deserunt sed", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "ede02f31535553f336b30520" }, "lastModifiedBy": "amet culpa", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": true, "correspondingOMAutomationId": "0ec7deded48c997c8812c32d" } } ] }
{ "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" } ] } } } } }