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": "c131f30eeafaf3b6bb165f38", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "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": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1987-12-02T15:05:45.36Z", "lastUpdatedBy": "nulla consequat occaecat ut", "lastUpdated": "1947-08-18T20:49:51.576Z", "triggers": [ { "name": false, "type": 44984236, "enabled": true, "actionType": true, "actionId": 50013510.41284877, "formData": -14126136.615679696, "firstRunAt": -21990239.64171581, "processMissedRuns": -12232367.215983823, "repeatUnit": 21389264.433942363, "repeatFrequency": true, "repeatInterval": false, "_id": 61184729, "formId": -1249131 }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "e777b3c1e1859a796fd319bc", "verb": "POST", "routeName": "AxRosI0HO5x", "schema": null, "_id": "3324e50adde753462f943930", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 9881704, "createdBy": "occaecat ut ullamco", "created": "1978-08-09T07:12:08.23Z", "lastUpdatedBy": "et", "lastUpdated": "1968-10-14T05:45:20.125Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "cd5f8d9cf4c16bd8ade2598a", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "e08cda9215d3667743925772", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 95016594, "migrationVersion": 25246209, "createdBy": null, "created": "2008-12-05T16:57:17.854Z", "lastUpdatedBy": null, "lastUpdated": "1985-07-29T22:41:43.8Z", "formSchemaHash": "dolor officia non veniam fugiat", "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "284964b50657a4184c1d775c", "source": "Ut laborum anim", "topic": "culpa", "_id": "17c0f8b865ea3eca11f42ff3", "description": "Some helpful information about the document", "lastExecuted": 62336716, "migrationVersion": -30178455, "legacyWrapper": true, "createdBy": "commodo", "created": "2010-01-01T20:32:36.713Z", "lastUpdatedBy": null, "lastUpdated": "1965-02-18T15:53:15.0Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "70c4ba27614722760c1a3b49", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": "labore id consectetur in", "createdBy": null, "created": "1989-06-21T11:58:30.089Z", "lastUpdatedBy": "aliqua amet magna Ut ea", "lastUpdated": "1999-05-08T13:49:27.673Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "30546f33b72048f434ec24c4", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "5e1f20b8ca903a1e7e507e33", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 5889920, "migrationVersion": 2489136, "createdBy": null, "created": "2003-03-06T18:12:44.418Z", "lastUpdatedBy": null, "lastUpdated": "1967-03-16T05:59:11.508Z", "formSchemaHash": "Lorem irure tempor labore", "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "392a4ea9f463b646468a7381", "verb": "POST", "routeName": "Mn", "_id": "b48a43019582c153ed53102b", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 40925535, "migrationVersion": -46098300, "createdBy": null, "created": "1946-10-29T11:23:30.686Z", "lastUpdatedBy": "amet velit laborum enim", "lastUpdated": "1956-08-20T00:58:40.528Z" }, { "name": true, "type": true, "enabled": -17780864, "actionType": -9002094, "actionId": -80723879.68805201, "formData": "aliquip velit cillum quis tempor", "firstRunAt": -62986785.338012695, "processMissedRuns": "irure proident cupidatat", "repeatUnit": -33708879, "repeatFrequency": "magna aute id", "repeatInterval": -48642613, "_id": "aliqua occaecat culpa ut", "formId": "officia eu" }, { "name": 97635990.34016496, "type": 15211032, "enabled": false, "actionType": true, "actionId": true, "formData": -34322009, "firstRunAt": false, "processMissedRuns": false, "repeatUnit": -72147870, "repeatFrequency": -29056925.46281658, "repeatInterval": 78089866.20184976, "_id": -48956014.69517978, "formId": 46449436 } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "41d3dbbf7a38386915865497", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": "laborum cillum sint laboris ad", "createdBy": "ut", "created": "1994-10-10T01:12:10.899Z", "lastUpdatedBy": null, "lastUpdated": "1982-03-24T17:44:33.262Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "2109042cc34ac30ca8308348", "verb": "POST", "routeName": "aMZy", "_id": "e7887ed99092510803cca824", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 40935322, "migrationVersion": -60126042, "createdBy": "voluptate eu", "created": "1951-11-30T18:56:17.991Z", "lastUpdatedBy": "pariatur velit", "lastUpdated": "1963-01-04T09:50:59.437Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "c974d1643c18708b4e4a6131", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "01b0cdd12606d8e096756466", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 99642986, "migrationVersion": -16936099, "createdBy": "eu ex enim", "created": "1956-03-26T11:45:32.71Z", "lastUpdatedBy": null, "lastUpdated": "1981-10-30T19:48:57.851Z", "formSchemaHash": "veniam quis Lorem sed Duis", "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "903974e28a8e59ee0a5c8c81", "gbac": { "write": [ { "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" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": "anim proident non", "createdBy": null, "created": "1952-07-09T12:29:58.355Z", "lastUpdatedBy": "id do", "lastUpdated": "1998-12-31T17:19:41.855Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "1e10be7da31c01acb83e3159", "source": "ad in eiusmod culpa laborum", "topic": "Lorem", "schema": null, "_id": "5ae53d0d83edc604434cbe09", "description": "Some helpful information about the document", "lastExecuted": 63284549, "migrationVersion": 58792474, "legacyWrapper": false, "createdBy": "elit exercitation aliquip do", "created": "1993-03-29T04:36:59.951Z", "lastUpdatedBy": null, "lastUpdated": "1966-09-14T18:16:36.935Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "1f2a3701cdeedede978606b3", "verb": "POST", "routeName": "Y-OU06m5x9D", "_id": "ffff3d43ffcba69d7723a4fc", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 94997936, "migrationVersion": 53891486, "createdBy": "anim amet quis", "created": "1949-12-17T13:40:36.58Z", "lastUpdatedBy": "laborum ex Duis in", "lastUpdated": "1950-08-06T00:38:21.731Z" } ] } ], "options": { "adapterMap": { "staging": "production" } } }
{ "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": "067c2ca7a280d777d3a3d254", "created": "2000-09-16T07:07:29.852Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2013-08-28T18:59:45.203Z", "_id": "23d9eabd2066d7cbc21b5241", "gbac": { "write": [ "68a1d90dc026c591a8102e9d", "92e2bcec60479c065ef2eefa", "9814e55b3020ea08402312e1", "d6dcfa0101ba07d1c0af4486" ], "read": [ "553f3e8bfca1dc2102868ec6", "5a6f27537002b93714984ec1", "28d7a7afa4639d56595c2bbf" ] }, "componentId": null } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "940094c1e93d2758b437dfeb", "created": "2015-07-06T05:02:43.397Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2011-03-15T08:44:20.557Z", "_id": "110e16e3b30e4b17a35ad18b", "gbac": { "write": [ "bd79cdea9c9f68fffbf8dde1" ], "read": [ "67e4648153fc45278ef83e3d" ] }, "componentId": "00ae2Fd4-2De3-19DE-8274-dBbc1AC1AbE3" } } ] }
{ "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" } } } ] } } } } } } ] }