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" }, { "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 reprehenderit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "fc296914ddff92d4151ce78f" }, "_id": "5e28ce3990de6905680f4296", "lastModifiedBy": "est", "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" }, { "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": "enim id dolore do nostrud", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "3e7fdfca7808ae77734f76b2" }, "_id": "2bacab127a478a422a42f2a1", "lastModifiedBy": "voluptate occaecat 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" } ], "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": "do", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "42690c028545189e7c61a28b" }, "_id": "20a97474f442bedfe9988385", "lastModifiedBy": "enim dolore", "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" }, { "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": "Duis aute", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "c855277bce88e7ce38afaf7c" }, "_id": "a8005a11cb7c09ac6ad104ba", "lastModifiedBy": "voluptate sunt do Lorem", "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" }, { "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": "ut", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "5eaaa5120ab474ce7eca656e" }, "_id": "5dd1a623584ce7762ed0f0a3", "lastModifiedBy": "ex nostrud ad dolore commodo", "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": "et ad fugiat", "imported": [ { "success": true, "message": "dolor nostrud", "original": { "_id": "38818360f1ea4d318bc74ec7", "name": "test", "data": { "gbac": { "write": [ "8a91685caddc88462a23c9eb", "ac6e090fe2d1aa8dc352db4b" ], "read": [ "a2c02475c9ad4512a14e2924", "c15801ba4d83deef21c4d7cb" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "veniam tempor qui Lorem amet", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "6251aaf07f35b4ba88218f17" }, "lastModifiedBy": "exercitation veniam sunt incididunt commodo", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks", "migratedToOM": true, "correspondingOMAutomationId": "44db37a2948fb56be8522f90" }, "created": { "_id": "f47131e54981556318afb7d2", "name": "test", "data": { "gbac": { "write": [ "871d8354f1fd241b6adbd168", "729f765035beae88a4617163" ], "read": [ "505e616aeb15b098e28eba34", "6719249e6e3084544805549c", "be416cb7b9ce5df2f15c2e5a", "2d3d4021ad67685b75ce18b8" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "irure non", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "89a0890efec2f299545e8448" }, "lastModifiedBy": "ipsum", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": false, "correspondingOMAutomationId": "0ac82607bdf09805dba49713" } }, { "success": true, "message": "Excepteur est do aliqua", "original": { "_id": "25f998c9f1bb3df1bcc0e2cb", "name": "test", "data": { "gbac": { "write": [ "a86746d3b92c83f11256fa3f", "e22eab6294525fd44f951c7c" ], "read": [ "d323124bb3e9979a85cfc5ea", "8a550ff99fd1729842080859", "078444fd890711071cca7942" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Lorem enim voluptate sed", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "cc75e5690cc3d1d8b35dae82" }, "lastModifiedBy": "in dolor amet ut Duis", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": false, "correspondingOMAutomationId": "a9e5605e74bed0cbd31f51a6" }, "created": null }, { "success": true, "message": "exercitation", "original": { "_id": "7a9053d38e572575fc2113c3", "name": "test", "data": { "gbac": { "write": [ "2c6d60da60ac2e3005ec2be7" ], "read": [ "0f9bc378f409a39e35c18727", "e97a5069b861ce1a923166e2", "1a31fe2a003b4ea5a1cefb47", "7ea0bd68cf7ac1f1ae95757a", "fc353dc2ff0b6fb0cdf741b9" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "nisi", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "0f0f2dfccd6de109fc054a1a" }, "lastModifiedBy": "elit", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": false, "correspondingOMAutomationId": "57edc7fdf51e93eea72b2c6b" }, "created": { "_id": "c165b5779f30b4a524b38a52", "name": "test", "data": { "gbac": { "write": [ "208121be2213733c0112e9f6", "6d2500e4577daa9be56e7707" ], "read": [ "0e8ed6b8e5c92fbcfc52306d", "142d690fb78bd14009144c07", "ce7322acb1a9324c0956817b" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ut Lorem velit officia", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "1814f07695c835c234a8107d" }, "lastModifiedBy": "anim ipsum sit nisi esse", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": false, "correspondingOMAutomationId": "260d2d454f424046d53db733" } } ] }
{ "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" } ] } } } } }