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" }, { "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": "deserunt amet dolor", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "a0351d3d005707d9b63c2901" }, "_id": "c777a30eeda94a74cd75c597", "lastModifiedBy": "nulla", "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" } ], "read": [ { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "enim consectetur commodo", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "b3b3e28c7e1e1ade0ec20948" }, "_id": "9632ff03c9d4aa22fb251c4b", "lastModifiedBy": "ipsum incididunt", "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": "in in officia dolore velit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "66c27cbb157cb7134a6070b9" }, "_id": "cbb0a4b806bb9964282c55e6", "lastModifiedBy": "esse minim deserunt", "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": "id pariatur officia sunt qui", "imported": [ { "success": false, "message": "ut qui nulla aliquip", "original": { "_id": "a3063129d822dfa2b7568b5a", "name": "test", "data": { "gbac": { "write": [ "89a8a4ea942f07c5f129227c" ], "read": [ "aa1fac5d3097bc48b49d1cc3", "d24c44d36f788543c178d6db", "6426c3fabd078b862579ab8e", "5f2b70bc6db5271a4b5ccf60" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sint sunt", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7890e8c3a96c6fdcbdf2d623" }, "lastModifiedBy": "proident officia", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": { "_id": "6e22bf6d30f992f244338603", "name": "test", "data": { "gbac": { "write": [ "c49b7e98e9a80ab411c51763", "bbca8b33f096962bb527cc15", "5521745fe89434ad201c8181" ], "read": [ "574aba137890328493248644", "33a83a1f2af8c335b7e36317", "235f286f8cad9297eeffafd0", "73af3e1a390d20ff28247795" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "cillum", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "86e3e750a0d4daeb2734a389" }, "lastModifiedBy": "enim tempor aute anim do", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" } }, { "success": false, "message": "et mollit quis", "original": { "_id": "458dc2cf517155133b139aff", "name": "test", "data": { "gbac": { "write": [ "c729f6e0218a03f7f8418bde", "2238e4c021cb2c14bca80ee0", "6361d67427de7793f24caac3" ], "read": [ "d4e1d7b2a7aadd79634cd5fc", "d1535d3b5798639a5954c299" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Duis", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "5a7b084f123cf91c5605021b" }, "lastModifiedBy": "sit minim magna anim exercitation", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": null }, { "success": true, "message": "est officia", "original": { "_id": "d265d97db5c1adbefe2e68f1", "name": "test", "data": { "gbac": { "write": [ "2704ede6edf988749d04a17e", "4045e6b08740a5161b13a8d1" ], "read": [ "573f022564a616c5ab2e54fc", "60a80e292ecf12168aa3f241", "41353ab6a6d47d2a065a0fa3", "e5198b78f416db3eeedf8635" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ad exercitation dolore dolor consectetur", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "d67cbe8ad42f9842b78058ad" }, "lastModifiedBy": "sit", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": { "_id": "1ea6b0f8cec39778379bef9d", "name": "test", "data": { "gbac": { "write": [ "df8a176049d874135195db78", "3bbdf3720ad78451c65f4563" ], "read": [ "36772b234643faa72ee31a65", "dda7f667a31175348b89e27c", "cc135e30cfad0b128e450885" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "dolor in aute commodo", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7ba0ab8760f513e111eeeb6e" }, "lastModifiedBy": "ipsum laboris eu", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" } }, { "success": true, "message": "ea", "original": { "_id": "301e769985e46055273f6969", "name": "test", "data": { "gbac": { "write": [ "2e23f6f73751c18fa6337f08", "58aedf931a0af94e6e89d995", "de6839b69619de033ffca5f3", "4bdb7ce2b0aae6803fadde86", "4cfa60944ce5cc1f5e372037" ], "read": [ "9675da925c2b074c48a595dc", "9b50bd79bbadaf1f2fcaedbc", "898348f4adb88e9794f0119b", "b7861675328e5919eee37bfa" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sunt deserunt incididunt consectetur commodo", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "3eae69095068837583efd512" }, "lastModifiedBy": "eiusmod esse aliqua", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "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" } ] } } } } }