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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "reprehenderit eiusmod", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "9068d549cc9adebcc5c6d940" }, "_id": "f5980cc60613fe69f28b1bfa", "lastModifiedBy": "pariatur 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" }, { "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": "dolore officia", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7687ea3e6ec8c63f45837948" }, "_id": "0977235b35852e26c99611a4", "lastModifiedBy": "officia commodo exercitation", "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": "nostrud ea ullamco magna", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7974cc41ce0c072ac5fa9e59" }, "_id": "8d5398bec2eb242afa4ee358", "lastModifiedBy": "magna est", "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": "nulla mollit", "imported": [ { "success": true, "message": "ex proident Ut labore", "original": { "_id": "d01cd320c4d9aec3a5b319d0", "name": "test", "data": { "gbac": { "write": [ "413c99bad194c6b5619474f6", "b1698d0219fa982f0a110321" ], "read": [ "7893598e459c06ae4de3f572" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "aliquip", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "ed56207f29a335084de927f0" }, "lastModifiedBy": "incididunt nostrud", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks", "migratedToOM": true, "correspondingOMAutomationId": "1e3ed0290bc69cbdf113f316" }, "created": { "_id": "e107de41099dfefe73842429", "name": "test", "data": { "gbac": { "write": [ "a739cbc9f7c14bfa226033f0", "1acabb9ba7c4923e709cc6d9", "7e9366179fcd2af59477a1bf" ], "read": [ "5be007c1f1a699175ada671f", "80696141a906ee289bd59697", "d4faf8883a428fd9398dd628" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Duis ex consequat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7e44478b57267c5cd1df4c81" }, "lastModifiedBy": "Excepteur enim deserunt", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": false, "correspondingOMAutomationId": "68f044121c893512b111231e" } }, { "success": true, "message": "Lorem", "original": { "_id": "a3ba846b3368d137795f772c", "name": "test", "data": { "gbac": { "write": [ "806424b0d11204e02b8bb58c" ], "read": [ "44862ae77d32e06c908d273a", "c9e2470321b87e3cc4a47ce6", "226c5c511931588884c4f99e" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "anim magna", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "0552e1a2fc6e1b9a4205bc56" }, "lastModifiedBy": "ea dolor", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day", "migratedToOM": false, "correspondingOMAutomationId": "7e1db1a7962c78bf3905be8f" }, "created": null } ] }
{ "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" } ] } } } } }