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": "6f00ae0a432fa0589b3df271", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "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": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": "eiusmod minim adipisicing consectetur", "createdBy": "voluptate laborum in culpa sunt", "created": "1979-06-14T15:54:22.114Z", "lastUpdatedBy": null, "lastUpdated": "1991-04-07T09:24:55.867Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "01198aa63ce6048d5c1795e2", "verb": "POST", "routeName": "AnxQxWCx-", "_id": "995e5048e4246ca2a929295a", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 63875159, "createdBy": null, "created": "2002-12-18T20:27:47.103Z", "lastUpdatedBy": "sunt", "lastUpdated": "1975-10-23T06:00:42.728Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "07ba62d93ac011cb5445d4ae", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "b26bb10f7713b65ad5cef141", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 93088785, "createdBy": null, "created": "2003-12-06T10:45:57.775Z", "lastUpdatedBy": null, "lastUpdated": "2019-08-06T22:13:17.847Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "2d7afa2df2f2ddbe8cb8cd3e", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "74ad4595b6e357c8bfcc9465", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 88581174, "migrationVersion": 96271620, "createdBy": null, "created": "2016-01-22T07:33:50.057Z", "lastUpdatedBy": null, "lastUpdated": "2007-02-19T16:34:33.585Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "37e0dee03318367c5ee48530", "source": "quis cillum mollit Ut", "topic": "qui dolor", "schema": null, "_id": "2a7b985d09d5268420fb5aa6", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 81032686, "migrationVersion": -77098019, "legacyWrapper": false, "createdBy": null, "created": "1990-09-22T09:37:39.81Z", "lastUpdatedBy": "Lorem ut", "lastUpdated": "2000-01-18T10:15:46.38Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "5fc4899ec002389f52f2572b", "source": "nostrud", "topic": "est in irure cillum", "schema": null, "_id": "f01b1c33740c34914eb10af9", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -91170266, "legacyWrapper": false, "createdBy": "minim", "created": "1959-08-25T13:25:46.218Z", "lastUpdatedBy": null, "lastUpdated": "2012-12-15T18:29:55.566Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "4db702f3abfdd376aeea1377", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": "Lorem ea aute", "createdBy": "laboris consequat ad dolore", "created": "1981-01-01T12:45:19.753Z", "lastUpdatedBy": "est anim", "lastUpdated": "1952-06-16T08:39:27.645Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "78db33fe3828f37bfcdd87bb", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "f0a7a21be9352575c529c766", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -1210478, "createdBy": "nostrud consequat esse", "created": "2012-08-17T10:21:47.412Z", "lastUpdatedBy": "quis dolor aute exercitation", "lastUpdated": "1986-09-08T13:27:21.543Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "22114e2976e34ef02754a792", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "65a76235e16980194ebd2233", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 87237633, "migrationVersion": -2215869, "createdBy": null, "created": "1961-09-21T12:42:20.782Z", "lastUpdatedBy": null, "lastUpdated": "1985-11-12T04:32:06.465Z", "formSchemaHash": "dolor ex consectetur enim", "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "149d2c68edcfff354f84e135", "verb": "POST", "routeName": "bYQWigN", "schema": null, "_id": "fb646aa6362a2c7d9c459ee0", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 93546998, "migrationVersion": -74538041, "createdBy": "dolor incididunt", "created": "1984-11-24T07:58:51.783Z", "lastUpdatedBy": "sed cillum", "lastUpdated": "1953-06-23T12:03:24.717Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "c49b15bf563ac83a728a79e8", "verb": "POST", "routeName": "ob", "_id": "a535d937e3e1cd7253e8d73c", "description": "Some helpful information about the document", "lastExecuted": 71966302, "migrationVersion": 62571888, "createdBy": null, "created": "1984-03-14T01:53:52.393Z", "lastUpdatedBy": "deserunt in aute et irure", "lastUpdated": "1984-09-14T12:07:59.262Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "47b56d9587e82ec65ffedc1f", "gbac": { "write": [ { "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" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "veniam Excepteur", "createdBy": "sit labore dolore proident consectetur", "created": "2010-08-25T08:43:41.193Z", "lastUpdatedBy": null, "lastUpdated": "1975-02-07T18:28:04.196Z", "triggers": [ { "name": false, "type": -64339794.693992846, "enabled": true, "actionType": true, "actionId": -37352217, "formData": 59613414.22893566, "firstRunAt": true, "processMissedRuns": false, "repeatUnit": "nulla Lorem aute", "repeatFrequency": -65082984, "repeatInterval": -75837268.89959449, "_id": true, "formId": 25198714 }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "3a92dad79a2a22d39554e888", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "3cfdc14f72d0ffcab2c45f44", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 31938588, "createdBy": null, "created": "1972-02-25T10:49:10.637Z", "lastUpdatedBy": null, "lastUpdated": "2011-10-24T21:53:32.081Z", "formSchemaHash": "dolore sunt", "legacyWrapper": false }, { "name": 78634829.7854448, "type": false, "enabled": 9108752.667428493, "actionType": -66573907.52850576, "actionId": "consequat dolor", "formData": 88955205, "firstRunAt": false, "processMissedRuns": true, "repeatUnit": true, "repeatFrequency": -68312430, "repeatInterval": -52978977, "_id": 35512851.23246202, "formId": "irure adipisicing voluptate aliqua exercitation" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "c8828b66cedfe3442a25b87e", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": "magna laborum aliquip nostrud proident", "createdBy": "amet est", "created": "2011-07-24T18:36:13.344Z", "lastUpdatedBy": null, "lastUpdated": "2012-12-27T12:41:15.405Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "d1a2e634e3eccb2f467f920b", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "87a981e4d9ebf776e205dd2f", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 32883565, "migrationVersion": 37154071, "createdBy": "ipsum laborum officia", "created": "1954-08-01T02:04:33.001Z", "lastUpdatedBy": "cupidatat consequat ex in ipsum", "lastUpdated": "2012-01-03T15:15:42.73Z", "formSchemaHash": null, "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "afd65be60b6b504ce11c8d2d", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "in esse nostrud", "createdBy": null, "created": "1981-06-25T06:31:12.989Z", "lastUpdatedBy": "et veniam sunt ut", "lastUpdated": "1947-10-13T15:13:38.728Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "309b25c8304b36ccf4eab8ac", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "1c27e72e9704cec3c458f803", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 56432746, "createdBy": "in anim sint adipisicing sunt", "created": "1959-09-30T18:19:46.042Z", "lastUpdatedBy": "nulla Lorem commodo do Ut", "lastUpdated": "2014-07-11T10:09:50.417Z", "formSchemaHash": "ut adipisicing labore elit", "legacyWrapper": false }, { "name": -67609636.74760845, "type": true, "enabled": false, "actionType": -33549228.951887414, "actionId": -36541803, "formData": true, "firstRunAt": 92906969, "processMissedRuns": -10213564, "repeatUnit": 74145133, "repeatFrequency": true, "repeatInterval": 38542650, "_id": 98872567.69194096, "formId": 3743837 } ] } ], "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": "2015-01-30T07:12:06.99Z", "lastUpdatedBy": "d11d610689d2926b0ee95863", "lastUpdated": "1997-05-18T04:36:33.914Z", "_id": "89a17550945637bd6611355d", "gbac": { "write": [ "4a2128666377f707e9274860", "60dcfb56182ed3a713189297", "1be2bdd82d58d90e81d8957f", "eedd34cdcace6343f877d798" ], "read": [ "a4943003a9c226979b498b70", "2b3414108e6c607227bb0873", "6aaf3e6b1ee3b50975c66c40", "c5a434a42e57869327f8655a", "dcba8b87250e67d5d14ea9b3" ] }, "componentId": "" } } ] }
{ "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" } } } ] } } } } } } ] }