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": "12f3ca22571a2e54b398c8df", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "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": "operators", "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": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "quis ipsum", "created": "1949-08-31T04:51:57.719Z", "lastUpdatedBy": null, "lastUpdated": "1967-05-22T01:48:21.314Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "e60b2e5089728cb72d4574a8", "verb": "POST", "routeName": "0z3dcqRsSZ5", "schema": null, "_id": "6d99b8bec30acecfa80d1d8f", "description": "Some helpful information about the document", "lastExecuted": 55009772, "migrationVersion": 87628884, "createdBy": null, "created": "2009-01-21T01:15:39.212Z", "lastUpdatedBy": "amet fugiat magna", "lastUpdated": "1966-12-14T01:26:27.141Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "da58d09a8da81937f556ec28", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "6b4d4af42a50dd61a860a4c7", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 29015398, "migrationVersion": 56661500, "createdBy": null, "created": "1979-07-07T02:36:31.487Z", "lastUpdatedBy": "anim adipisicing dolor eiusmod voluptate", "lastUpdated": "2011-10-07T11:11:18.399Z", "formSchemaHash": null } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "8bc0bbb1fa131afb6d00a6de", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "magna ex fugiat cillum", "createdBy": "incididunt adipisicing occaecat in sit", "created": "1986-10-19T23:21:40.317Z", "lastUpdatedBy": "nostrud pariatur", "lastUpdated": "1950-11-17T09:21:27.835Z", "triggers": [ { "name": -66696198.835953124, "type": "irure nisi commodo veniam", "enabled": 84124899.73552012, "actionType": -75370705, "actionId": "tempor dolore elit", "formData": "dolore culpa ea ad nisi", "firstRunAt": "ut ullamco", "processMissedRuns": -3238236, "repeatUnit": 43127320, "repeatFrequency": "veniam", "repeatInterval": 60981627, "_id": true, "formId": "Excepteur laborum occaecat dolore cupidatat" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "44b3ebed75301417551e1f7f", "source": "consectetur amet in", "topic": "sit tempor voluptate", "schema": null, "_id": "800e2556a89dd974525d022e", "description": "Some helpful information about the document", "lastExecuted": 17165616, "migrationVersion": -19002846, "createdBy": "Excepteur culpa elit amet do", "created": "2007-11-08T05:24:37.915Z", "lastUpdatedBy": "sit pariatur", "lastUpdated": "1958-04-26T09:37:47.348Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "0b0b67f991d967950c5c955b", "source": "voluptate in qui velit est", "topic": "magna eiusmod occaecat", "_id": "426370ad5499aa0bccb9993c", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -94676786, "createdBy": "et amet non occaecat", "created": "1946-09-22T10:31:59.473Z", "lastUpdatedBy": "anim pariatur", "lastUpdated": "1946-06-20T11:57:27.591Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "d555f165ba47dcf46c296668", "source": "ex anim sit eu", "topic": "elit dolore", "_id": "d852d0fd3a48d72421b8ff1e", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 38009517, "createdBy": null, "created": "2000-11-22T19:38:34.685Z", "lastUpdatedBy": "dolore dolor est Excepteur", "lastUpdated": "1976-02-06T15:17:22.166Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "934e9ed2d7f0117dac9daf7e", "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" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "amet", "createdBy": "Duis ea do ullamco", "created": "2018-11-23T06:50:07.159Z", "lastUpdatedBy": "id", "lastUpdated": "1975-05-29T20:03:17.85Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "0dbdda08981619e7bc6c18cf", "verb": "POST", "routeName": "8JWcxKlEJ", "schema": null, "_id": "a42bf74712e28b7d5724fb36", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 75322663, "migrationVersion": 54098886, "createdBy": null, "created": "1979-04-29T01:09:18.775Z", "lastUpdatedBy": null, "lastUpdated": "1966-12-09T21:15:13.1Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "ff458775096b302a46298588", "source": "aliqua aute dolor", "topic": "ut adipisicing fugiat", "_id": "00bf12ce41510b03e58c1358", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 98341329, "migrationVersion": 91128103, "createdBy": null, "created": "1955-07-02T04:39:20.085Z", "lastUpdatedBy": null, "lastUpdated": "1981-01-25T14:58:34.517Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "56070ba8db842886cbd21f56", "verb": "POST", "routeName": "CMhxQ", "schema": null, "_id": "ef501f12c9546c3268256d63", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 44310358, "migrationVersion": 1854490, "createdBy": null, "created": "1967-03-15T03:45:30.729Z", "lastUpdatedBy": "anim pariatur magna", "lastUpdated": "1989-12-22T20:24:07.598Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "9388d40f2d962dce488ab90d", "verb": "POST", "routeName": "KRx9j1U", "schema": null, "_id": "825aa1fc65baf849434cb4a8", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 64692353, "createdBy": "officia", "created": "1965-11-14T08:08:00.127Z", "lastUpdatedBy": null, "lastUpdated": "1966-03-08T06:22:40.953Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "385f4d462a9163a3f0298a8f", "gbac": { "write": [ { "provenance": "localAAA", "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": "operators", "description": "Description of a group" } ] }, "componentName": "laboris in", "createdBy": null, "created": "1989-10-23T12:18:33.088Z", "lastUpdatedBy": null, "lastUpdated": "1991-09-22T00:35:09.619Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "f2b1f190772ea381f1949e66", "verb": "POST", "routeName": "sHlGDA3R", "schema": null, "_id": "fd877fa0a788923ce27a3a45", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 28229316, "createdBy": null, "created": "2005-12-30T01:45:23.587Z", "lastUpdatedBy": null, "lastUpdated": "2004-03-09T16:16:57.054Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "30b4174b222d1a13ae5a4bfb", "source": "amet officia", "topic": "adipisicing sunt ut qui eu", "_id": "835dc96a2561ef9db12e4798", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 624488, "migrationVersion": -11751050, "createdBy": "fugiat ut proident exercitation irure", "created": "1956-05-06T08:14:24.663Z", "lastUpdatedBy": "nulla et laboris non consectetur", "lastUpdated": "2024-02-14T15:55:39.145Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "6907e711df7ae1d7660eadc9", "source": "elit ullamco ipsum in sed", "topic": "ea sunt Ut", "schema": null, "_id": "8faf2b224e9beee599c800a9", "description": "Some helpful information about the document", "lastExecuted": 22737625, "migrationVersion": -41023607, "createdBy": "aliquip amet anim occaecat in", "created": "1961-10-01T22:18:58.885Z", "lastUpdatedBy": "qui et in", "lastUpdated": "1995-02-15T19:30:13.758Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "b96af279937a354c5e52ec76", "verb": "POST", "routeName": "L6imm5I2VS", "_id": "bb47ba1f6cc9a5eb0064437a", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -92977844, "createdBy": "irure aliquip culpa", "created": "1949-12-28T07:31:32.553Z", "lastUpdatedBy": null, "lastUpdated": "1981-06-10T21:31:15.709Z" } ] } ], "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": "1330afb37889d6917f265aaf", "created": "1971-07-24T01:27:54.036Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2019-12-18T09:50:21.044Z", "_id": "2cccfe129706c93aa2c94746", "gbac": { "write": [ "f3f92b1b2d88955ad71fc3c6", "c349fce5fd12ba2f66060047", "8340a7fe39afc242ea6ebb9c", "8ad38ca1587f3668c50daded" ], "read": [ "2a56cfaab6b3ad498128668c" ] }, "componentId": "fa7aF4bD-f2bA-E81E-70ae-2badcd8Ca3bD" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "1f1075cd482b108e6b3b4548", "created": "1988-05-28T14:25:57.56Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2009-11-04T14:06:47.444Z", "_id": "45ab2e26d976ca61aa31118f", "gbac": { "write": [ "fb8ec082aa463f9417294d41", "fadbab633dc49894ea32b9ae", "19e066bac132237a78bbfc69", "14a68a739d03ccd84ed35969" ], "read": [ "b2abf2df91d14330b71c9d56", "3d0f2ba5babe2296200e6fad", "5598b1e4d1051efc6a848fcc" ] }, "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" } } } ] } } } } } } ] }