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" } ], "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": "eu ad", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "286c2c902ddcd0b8f705d6ad" }, "_id": "67377cef7be218907bf5d634", "lastModifiedBy": "consequat non ex", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, { "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": "ea Lorem in proident", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "2ee33fd47eefac3944d69a8f" }, "_id": "c1fb9ce91aef3a4670b9aa5f", "lastModifiedBy": "ea aute", "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": "sunt", "imported": [ { "success": false, "message": "nulla mollit", "original": { "_id": "45a97df3c12c740e2ab3de72", "name": "test", "data": { "gbac": { "write": [ "13ac6da0a77437b445fc33b9", "66d591f988690e285f4773ef", "eba7640050b7e132f80d897f", "75258d0185a0214b3e04d383" ], "read": [ "0732bd23d87fddf1cd1143c1", "5715f36be84222ee2a0c8eca", "5d8ca79e79cb878529ae0d96" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "cupidatat minim voluptate", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "2de668816f0f9f34f34a856d" }, "lastModifiedBy": "sit ad est ut culpa", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": false, "correspondingOMAutomationId": "1802ba8ee99e0a9661c47cef" }, "created": { "_id": "56cb8e6d5745adfb02de07a9", "name": "test", "data": { "gbac": { "write": [ "a91a544ce5bb0e2185c24b63", "18b1651826be0cfdef6df276" ], "read": [ "0429ddbf92a3e0cc838439ee", "a309fe74c0c6ccf224c61efd", "d75b9029a95771e094f227c9", "41085575099d33da9a9efa7f", "278baa4b694b882ecda96ef1" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ullamco elit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "56cbeddc5006678efd26d4dd" }, "lastModifiedBy": "exercitation", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": true, "correspondingOMAutomationId": "9244db86a7c85655040500d2" } } ] }
{ "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" } ] } } } } }