Summary
Import Automations
Description
Import Automations.
Route
PUT /operations-manager/automations
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
automations | array | yes | An array of exported Automation documents. |
options | object | yes | Optional parameters. |
{ "automations": [ { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "f1ff6837aaa8c2945fb9d55e", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": "esse fugiat sint deserunt ea", "createdBy": "nulla mollit", "created": "1985-11-10T15:51:54.076Z", "lastUpdatedBy": "ut voluptate magna", "lastUpdated": "1958-02-16T21:26:55.422Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "275fdb4dcfad38d90bba4c42", "source": "tempor reprehenderit", "topic": "consequat", "schema": null, "_id": "77182615017fee8c71db8a21", "description": "Some helpful information about the document", "lastExecuted": 59290700, "migrationVersion": -59069676, "createdBy": null, "created": "1960-04-21T15:04:24.86Z", "lastUpdatedBy": "Ut dolor cillum", "lastUpdated": "1958-02-11T08:16:03.573Z" }, { "name": -61019840.114648186, "type": -48269624.01853167, "enabled": 34319556.61233342, "actionType": -7419909, "actionId": -15646201, "formData": "fugiat", "firstRunAt": -33628300, "processMissedRuns": 41609775, "repeatUnit": 11789369.003434569, "repeatFrequency": 91901233.45991236, "repeatInterval": "veniam consequat exercitation", "_id": false, "formId": "voluptate Duis" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "0b6b1ce19064120bf16920e8", "verb": "POST", "routeName": "FceAF-TFx", "_id": "a734e7cae1d69146a4b62657", "description": "Some helpful information about the document", "lastExecuted": 31072401, "migrationVersion": -64187554, "createdBy": "ipsum irure esse ut", "created": "1978-08-19T21:12:22.561Z", "lastUpdatedBy": null, "lastUpdated": "1949-11-01T01:23:21.197Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "5da6db5f9574c0a51c63b821", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "db88bc020df0fc2f36ae0f23", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 20098110, "migrationVersion": -29465451, "createdBy": "laboris consequat esse tempor et", "created": "1975-07-09T08:56:36.769Z", "lastUpdatedBy": "Duis dolore consequat proident", "lastUpdated": "1977-03-11T21:33:03.545Z", "formSchemaHash": null }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "80bdd7d64ce81f283651643d", "verb": "POST", "routeName": "hdKmO", "schema": null, "_id": "1ba3f74b76565936df0164a7", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -98214067, "createdBy": null, "created": "2023-11-07T00:14:46.163Z", "lastUpdatedBy": null, "lastUpdated": "1985-09-14T02:28:23.603Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "4945dc0362e01ee90709f336", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "in anim esse", "created": "1963-12-05T21:47:21.551Z", "lastUpdatedBy": null, "lastUpdated": "2020-10-21T21:45:34.699Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "9b0c4bf605e84aa64844a1c1", "source": "culpa anim", "topic": "cupidatat", "_id": "cdc4578f48662bc788d325e0", "description": "Some helpful information about the document", "lastExecuted": 79761587, "migrationVersion": 16726015, "createdBy": null, "created": "1957-08-10T22:46:58.041Z", "lastUpdatedBy": "amet", "lastUpdated": "1984-05-24T13:53:26.735Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "43854b20c5263ec1730a4bf7", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "adipisicing non", "createdBy": null, "created": "1992-05-30T06:25:21.276Z", "lastUpdatedBy": "minim", "lastUpdated": "1963-04-19T00:43:49.452Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "083f3650b758b0267adf3409", "verb": "POST", "routeName": "8T38Qh8RXMQ", "schema": null, "_id": "9608640ccfc921b0a274ba19", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 82538, "createdBy": null, "created": "1949-06-30T18:26:23.473Z", "lastUpdatedBy": "qui ea consequat voluptate", "lastUpdated": "1945-06-19T07:59:44.738Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "4b8397adb801163ba65cf52c", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "77192456d379707f9e69e289", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 10374777, "migrationVersion": 60610873, "createdBy": "exercitation", "created": "1980-02-03T19:06:44.796Z", "lastUpdatedBy": "dolor ut consequat commodo", "lastUpdated": "2001-12-25T14:28:54.169Z", "formSchemaHash": "exercitation quis" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "7db76abb6eb12c1f6fcb044d", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1969-04-02T20:09:39.255Z", "lastUpdatedBy": null, "lastUpdated": "1983-06-10T06:59:31.643Z", "triggers": [ { "name": "esse", "type": -37082854.138928264, "enabled": -43298989.514382444, "actionType": "culpa id ullamco", "actionId": -99442929.38050121, "formData": "incididunt laboris ea in aliqua", "firstRunAt": "amet deserunt elit minim", "processMissedRuns": 61599896, "repeatUnit": "enim ut mollit cillum", "repeatFrequency": "labore dolor cillum id minim", "repeatInterval": -17437374, "_id": true, "formId": 93976546 }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "c47a969b58e3c7dfd8c5a302", "source": "laboris mollit non", "topic": "consequat in id", "_id": "73cf3b3c2b7095ab303bcdb6", "description": "Some helpful information about the document", "lastExecuted": 89482164, "migrationVersion": -26256927, "createdBy": null, "created": "2019-03-23T15:46:17.835Z", "lastUpdatedBy": null, "lastUpdated": "1976-02-20T17:14:48.788Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "f357f9182688d3b46652a252", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "6089b83a69c2d0e33d96e389", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -23191866, "createdBy": null, "created": "1982-02-23T16:42:59.623Z", "lastUpdatedBy": "irure ut sit", "lastUpdated": "1998-11-14T12:07:40.062Z", "formSchemaHash": "officia qui" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "692f3b0b92159f6586d094ad", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "2015-08-19T19:22:49.503Z", "lastUpdatedBy": null, "lastUpdated": "2014-10-06T11:52:46.722Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "25aec8571a5b2471327f8c0c", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "c1a4d6d56ce28070969bcc0e", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 44297934, "migrationVersion": 34658918, "createdBy": null, "created": "1971-09-17T06:54:25.47Z", "lastUpdatedBy": "ullamco dolore", "lastUpdated": "1992-01-17T22:43:11.219Z", "formSchemaHash": null }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "67d038ccb4da99b3bd472eb6", "verb": "POST", "routeName": "p2yY8L1kuM0", "schema": null, "_id": "3e3d2944031966dc25d667f2", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 91111185, "createdBy": null, "created": "2013-08-24T21:45:54.943Z", "lastUpdatedBy": "reprehenderit velit in", "lastUpdated": "1973-09-21T06:22:24.171Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "0f9d920659ecfd821a9f5131", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "6298aa68d93079cad9870d23", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -9080574, "createdBy": "ipsum ullamco", "created": "1995-02-09T08:00:10.052Z", "lastUpdatedBy": null, "lastUpdated": "2003-08-02T00:17:24.368Z", "formSchemaHash": "do amet laborum" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "cb62fa5400631836e8052a47", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "d16f58f15dae546354b1806c", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -24564359, "createdBy": null, "created": "1996-10-01T04:47:33.326Z", "lastUpdatedBy": "cillum in nostrud Duis sit", "lastUpdated": "1977-09-25T14:11:50.687Z", "formSchemaHash": null } ] } ], "options": { "adapterMap": { "old_name": "new_name" } } }
{ "type": "object", "properties": { "automations": { "title": "automations", "type": "array", "items": { "$ref": "automation-json" } }, "options": { "title": "options", "type": "object", "properties": { "adapterMap": { "type": "object", "description": "A mapping of provenance names to be converted upon import, specified in \"old_name\": \"new_name\" format.", "examples": [ { "staging": "production" }, { "old_name": "new_name" } ] } }, "additionalProperties": false } }, "required": [ "automations", "options" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
status | object | The result of the import operation. |
{ "message": "Successfully imported 3 of 4 documents", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "2017-06-09T22:10:51.028Z", "lastUpdatedBy": "c8c8d6759224884a935eb337", "lastUpdated": "2001-01-13T06:57:16.183Z", "_id": "37e4b7655e65dc9e8196cbee", "gbac": { "write": [ "9585b0255a1890912e4fd271", "6f78ba83a01ea834abc0ca0b", "a55d085baf815ebad9f36b16", "6508f03c050018f592c254c9" ], "read": [ "69acc479980425039617615a" ] }, "componentId": "07c81cdc-7EFD-9361-9485-a4D96DAF20B1" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "1998-07-14T02:46:49.463Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1973-09-08T01:47:34.387Z", "_id": "017435bb230f4481d66fb795", "gbac": { "write": [ "0b90dc56561dbfb5dd06b752", "0ff4701fd50c88ca964fef3f", "fcc4c42fed3397b347525283" ], "read": [ "97820e2d00db01143876c32c" ] }, "componentId": "" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "2006-02-18T09:07:35.006Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2019-10-09T14:19:36.42Z", "_id": "4149006df85b6fedaf2b8837", "gbac": { "write": [ "bd1688772f78344ec8c591f3", "d2863028b066a0d9cce7103c", "59bbbd12514668978886b394" ], "read": [ "423fc5e1f6786d62cd219103", "d9c949a4870a66f0f0db1003" ] }, "componentId": "EEbBBa8C-146f-ED69-48Fb-CEBD1aD99AbF" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "4aa0a3c01dfeb1fb53c3bb7d", "created": "1984-08-14T12:55:10.354Z", "lastUpdatedBy": "f6c58ad04f76096e415854a0", "lastUpdated": "2012-10-25T05:54:09.498Z", "_id": "9dbf8d16356612f357cca6e8", "gbac": { "write": [ "1637a00c8163564ace629119", "8527fdd7640532e448606149", "05b33ea95f41c40bddf37247", "6291786825c9bf05080f6a04" ], "read": [ "01b755e61a1121cba2d863b3", "b7684e61bd8bd52ec64e00b2", "81b70a98fc14090000e57303" ] }, "componentId": "94564E7c-CF1a-aF8f-Ec0e-baDDB5CeC8D5" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "e18064b8adaea11c32008826", "created": "1963-09-14T04:43:41.836Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1998-12-03T00:45:27.531Z", "_id": "40d7c32b99ff10611895c867", "gbac": { "write": [ "199399636a560f2df4b22c2d", "d2a92ba9284aeea32eb8ed2d", "38b244c5d80de6943c7be05f", "bd4a72c1068b154c628ca0a9", "61de5ba63b758be24c5cd057" ], "read": [ "b170d0ba002a3038b1d4514c" ] }, "componentId": null } } ] }
{ "title": "status", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "allOf": [ { "$ref": "automation-common#/definitions/commonFields" }, { "$ref": "common#/definitions/metadataFields" }, { "type": "object", "properties": { "_id": { "$ref": "common#/definitions/ObjectIdLikeString" }, "gbac": { "$ref": "automation-common#/definitions/gbac" }, "componentId": { "$ref": "automation-common#/definitions/componentId" } } } ] } } } } } } ] }