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": "workflows", "_id": "6773726a3205cb89139c78af", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": "pariatur cupidatat ullamco elit", "createdBy": "eiusmod commodo quis aute", "created": "1982-05-08T09:36:40.577Z", "lastUpdatedBy": null, "lastUpdated": "1966-01-01T17:25:23.932Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "a19b171ab4f1aefd1fb622e9", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "3fe2fd308845896a41c1566c", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 63077236, "migrationVersion": -97462210, "createdBy": null, "created": "2017-03-29T13:56:29.468Z", "lastUpdatedBy": "proident eiusmod", "lastUpdated": "1970-08-29T15:14:18.116Z", "formSchemaHash": null }, { "name": -80933139, "type": false, "enabled": -90616815.49049458, "actionType": "anim aliquip adipisicing", "actionId": 21373252, "formData": "sunt Ut pariatur minim labore", "firstRunAt": "officia nulla ullamco laboris", "processMissedRuns": "id velit dolore nulla", "repeatUnit": "sed ad ullamco cillum", "repeatFrequency": "sint culpa laboris officia dolor", "repeatInterval": false, "_id": -45189632.1623642, "formId": "sunt" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "816d3fd7cb701467e1ab3e5d", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "32581a81dff952086c498a2b", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 84978815, "createdBy": null, "created": "1983-10-13T02:35:37.96Z", "lastUpdatedBy": "dolor dolore dolore consectetur", "lastUpdated": "1946-02-27T06:33:56.822Z", "formSchemaHash": "qui id laboris amet reprehenderit" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "5da3e0e412b53191c6cb0c59", "verb": "POST", "routeName": "C3E4MGb", "schema": null, "_id": "848c7f79a0cf2a6aea6f8b9e", "description": "Some helpful information about the document", "lastExecuted": 66433351, "migrationVersion": -59493066, "createdBy": null, "created": "1958-01-10T14:56:07.394Z", "lastUpdatedBy": "officia aliqua laboris dolor", "lastUpdated": "1996-12-05T12:59:34.305Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "b445d880cc85e0cb440fd6dc", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1969-09-12T07:23:49.279Z", "lastUpdatedBy": "sit", "lastUpdated": "1963-07-03T08:49:25.695Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "4030b6522399460d9ef36f85", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "48ab5c9b3c945db5772bdaba", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 48032214, "migrationVersion": 16473577, "createdBy": "cupidatat et eiusmod ullamco", "created": "1949-04-30T17:05:51.797Z", "lastUpdatedBy": null, "lastUpdated": "2003-03-10T14:00:56.795Z", "formSchemaHash": null }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "80562c452b5ea665fb23a31e", "verb": "POST", "routeName": "iD", "_id": "d444df61cf9a621de5ce2ded", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 85326898, "migrationVersion": -5384328, "createdBy": "sunt enim", "created": "1996-01-28T20:29:10.396Z", "lastUpdatedBy": "exercitation dolor", "lastUpdated": "2020-09-09T00:35:08.555Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "2e3fcf78e02d940d193245e1", "verb": "POST", "routeName": "e7", "schema": null, "_id": "e9328bdfa8fb710bc2010c51", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -86734751, "createdBy": null, "created": "1964-12-02T09:14:00.336Z", "lastUpdatedBy": "aliqua ex aliquip", "lastUpdated": "1956-08-27T14:34:11.244Z" }, { "name": 68164855.28306714, "type": "exercitation id officia", "enabled": 18038247, "actionType": 23585850.792953208, "actionId": 32375085.33105147, "formData": true, "firstRunAt": false, "processMissedRuns": false, "repeatUnit": -94685223, "repeatFrequency": 35294697.27279773, "repeatInterval": "sed dolore est aute", "_id": 32815819, "formId": "eu consectetur nulla" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "d06f95b16dad2981b6c85abb", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "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": "operators", "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" } ] }, "componentName": "consequat", "createdBy": "sint", "created": "2004-03-21T02:26:14.167Z", "lastUpdatedBy": null, "lastUpdated": "1955-05-22T13:50:02.753Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "dd0c1d1ed323fc69aee008f7", "verb": "POST", "routeName": "FTPCPZ-OA", "schema": null, "_id": "c48b2fa175c668d9d9538ea1", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 85447835, "createdBy": "commodo quis nostrud laborum", "created": "1946-02-09T22:11:32.875Z", "lastUpdatedBy": "ad dolore", "lastUpdated": "2009-08-31T18:18:07.569Z" }, { "name": -84301936.5873626, "type": "ut anim veniam officia", "enabled": "amet aliquip officia", "actionType": false, "actionId": 83223026.60462633, "formData": true, "firstRunAt": "dolor labore dolor", "processMissedRuns": true, "repeatUnit": "reprehenderit", "repeatFrequency": -92311704.2049428, "repeatInterval": "minim sed laborum culpa", "_id": 44802125.46122852, "formId": 11914666.08157286 } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "ea97a0fbea8c89cd30a15a89", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "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": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "2022-02-05T16:14:03.023Z", "lastUpdatedBy": "ut occaecat officia", "lastUpdated": "1995-01-27T18:34:54.673Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "63b6f9e0d3d0a36b5123c93e", "verb": "POST", "routeName": "j", "schema": null, "_id": "c79a795375856e285f718f50", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 71917489, "createdBy": "in", "created": "1986-10-21T14:54:12.751Z", "lastUpdatedBy": null, "lastUpdated": "2010-08-28T12:00:16.586Z" } ] } ], "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 retrieved search results", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1964-07-16T05:37:10.645Z", "lastUpdatedBy": "cd75b565d6005ccedd0e5ca5", "lastUpdated": "1967-12-24T08:25:51.351Z", "_id": "8547e6379c7da07a589e30cf", "gbac": { "write": [ "5fa6ea4e5a8b18a40a4218a8", "a77f8ac25ce9a688b66c41d2", "8ec601e1fd1f5442393b71dc", "2f0e7331258b93b85da565dd" ], "read": [ "9fa38382f6287f12232111ee", "96bb6183c296617d1072acbd" ] }, "componentId": "79D877c1-A0ca-507f-5ffe-E75aC9a1CbF9" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1968-10-16T11:38:32.244Z", "lastUpdatedBy": "45721ba246175cbbc24517fc", "lastUpdated": "1954-01-11T02:53:46.698Z", "_id": "e8a2bad98754bc3f3b6959ce", "gbac": { "write": [ "b020dd595e3fb72829cec223" ], "read": [ "bd390ea6b461747215f037a6" ] }, "componentId": null } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1981-12-25T17:19:07.999Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1948-11-17T19:54:21.328Z", "_id": "aad4a7a1e0a83aa8ebae9f0e", "gbac": { "write": [ "b2c997849985b827aab4ecf3", "b571e52b8106e2a0eed66167", "b5c59090ddfc4da06cc353ae", "ef8e1d691256ecf66f5a97f3", "4acca01f322dfbf23744271d" ], "read": [ "60831ac68de3b0b15ae651bb", "b75af6f76115d7a17dee1d66", "6e4da37dd159c21647785009", "1a579e4f42377ddd35434ede" ] }, "componentId": null } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "9976c3a17db31e74263d2e93", "created": "1967-11-25T07:58:57.057Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1958-01-01T03:29:17.855Z", "_id": "2a400c3597ba8776e6b2405b", "gbac": { "write": [ "7e8cc8c5735486523f77de53", "01d7975a323b35341c70ba54", "a1678d6b0c1ff197e359c3d0", "bdcedb0f29f3b4e4c080e214", "7c59bc7022ea246650baefba" ], "read": [ "415ce0f6a29c43af2f29d054" ] }, "componentId": "7f9b9a323b657a8e5c08e4bd" } } ] }
{ "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" } } } ] } } } } } } ] }