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": "54cb47a2a42d3593d17f328e", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": "velit sint incididunt non laborum", "createdBy": null, "created": "1989-12-09T21:57:23.309Z", "lastUpdatedBy": null, "lastUpdated": "1950-02-08T00:29:37.116Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "8f4870a942bfde6a46e31f12", "source": "ex", "topic": "ex mollit cillum dolore", "_id": "78265e0c60d9b4dd55e4fff4", "description": "Some helpful information about the document", "lastExecuted": 978024, "migrationVersion": -56206621, "createdBy": null, "created": "1950-04-23T05:53:23.113Z", "lastUpdatedBy": "dolore do Ut anim occaecat", "lastUpdated": "1990-11-17T09:45:23.087Z" }, { "name": -14915500.254472256, "type": true, "enabled": 59728496.71457502, "actionType": false, "actionId": -42251122, "formData": false, "firstRunAt": true, "processMissedRuns": -14146593.959333926, "repeatUnit": false, "repeatFrequency": 57093895.8618561, "repeatInterval": 31134722.2640526, "_id": "in commodo Excepteur velit", "formId": 54171415 }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "f442cae67dc8dad30e96fcdc", "verb": "POST", "routeName": "nrugjTVt-Nc", "_id": "b57263098c9a97aaf2e2b36d", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 58139868, "migrationVersion": -50092843, "createdBy": "exercitation pariatur magna dolore sed", "created": "1945-10-28T02:54:42.698Z", "lastUpdatedBy": null, "lastUpdated": "1967-10-25T12:53:22.708Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "56157345bc5328d962867c24", "gbac": { "write": [ { "provenance": "ldap", "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": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": "non sint nisi eiusmod do", "createdBy": "Ut", "created": "2006-07-17T01:16:51.656Z", "lastUpdatedBy": "magna", "lastUpdated": "1954-03-19T04:18:45.379Z", "triggers": [ { "name": 55975041.5939413, "type": 77410499.19580215, "enabled": -36396378.19795118, "actionType": -89355660.95645648, "actionId": true, "formData": false, "firstRunAt": false, "processMissedRuns": "sint anim ut", "repeatUnit": false, "repeatFrequency": false, "repeatInterval": true, "_id": -61722829.19690133, "formId": -34432643.09927949 }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "eb4a6f5be48925af5397a177", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "9a1b63903e4a466869bfcf44", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 74773434, "migrationVersion": -12772494, "createdBy": null, "created": "1991-04-01T00:24:32.289Z", "lastUpdatedBy": "Excepteur proident Duis", "lastUpdated": "1967-01-22T00:01:46.99Z", "formSchemaHash": null } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "ace44e59ad8c514ebca11ad2", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1964-01-17T17:25:11.066Z", "lastUpdatedBy": null, "lastUpdated": "1995-07-31T23:54:14.656Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "df2014f3f951b28368ff4f12", "verb": "POST", "routeName": "dC3XWDz", "schema": null, "_id": "211a29cc9afa895238e3ac21", "description": "Some helpful information about the document", "lastExecuted": 96443540, "migrationVersion": 24883945, "createdBy": "dolor consequat Lorem non sed", "created": "1948-02-20T04:49:09.665Z", "lastUpdatedBy": null, "lastUpdated": "1948-04-09T15:20:38.127Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "9c34a6b9ecf8bb5c56ca78ba", "source": "ipsum sint eu", "topic": "voluptate proident ut ad", "schema": null, "_id": "7febbae1c5fc0843b40e2f56", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 18635326, "createdBy": null, "created": "2002-06-22T04:34:13.186Z", "lastUpdatedBy": null, "lastUpdated": "1956-08-21T22:05:09.105Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "f4dc34e83f712e2c2e4849bc", "verb": "POST", "routeName": "toG", "_id": "11344b8c24e2507a73f75ec2", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 94569926, "createdBy": null, "created": "1952-03-07T22:22:27.752Z", "lastUpdatedBy": null, "lastUpdated": "1998-07-04T18:37:14.435Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "51a6067a5686f1c6cf27b695", "gbac": { "write": [ { "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" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "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": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1946-07-30T05:31:38.982Z", "lastUpdatedBy": "Duis occaecat deserunt laborum proident", "lastUpdated": "2017-09-04T18:38:59.008Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "e8ba6e06ccca75ca2d8d0074", "source": "laborum elit ex", "topic": "esse cillum Lorem dolor", "schema": null, "_id": "5fdec7de411490cbf363966c", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 60660422, "createdBy": null, "created": "1976-01-28T19:27:01.378Z", "lastUpdatedBy": "aute ad", "lastUpdated": "1970-11-26T19:59:32.393Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "72982a64a78d76e70c4c5703", "source": "labore", "topic": "amet aliqua dolor Excepteur id", "_id": "6b92d3e7564933b43a305ef5", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -61329489, "createdBy": "nostrud quis magna nisi pariatur", "created": "1999-12-29T09:54:27.875Z", "lastUpdatedBy": "nisi magna", "lastUpdated": "1967-10-30T17:54:00.528Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "5cc93b8e840ec00d01f9e86e", "verb": "POST", "routeName": "kv1fOC", "schema": null, "_id": "c99c298c73d7ad8f3aac2f2f", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 41951931, "createdBy": null, "created": "1959-09-19T10:12:42.842Z", "lastUpdatedBy": "aliquip mollit", "lastUpdated": "1975-11-07T00:03:03.893Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "3c7b16b8116eeb1123441dae", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "minim veniam", "createdBy": "deserunt", "created": "2014-05-11T10:27:18.712Z", "lastUpdatedBy": "pariatur reprehenderit voluptate in cupidatat", "lastUpdated": "2005-10-31T12:15:05.591Z", "triggers": [] } ], "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": "db995ccd1a5e1974f58e32b3", "created": "1975-08-21T14:30:18.284Z", "lastUpdatedBy": "a62a9e0aad72ec6b16e1279a", "lastUpdated": "1984-03-21T04:02:36.878Z", "_id": "069a6ea17a538902c5c6225e", "gbac": { "write": [ "761427fb08d9ebdb2c9e630a", "408c65aed5ae5576a821fb5f" ], "read": [ "2b36b2fb954841fb7e850573", "a2a2155b2ad0bf0e36fee6b2" ] }, "componentId": "" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "3f540a82ee15b8ea1fcee2f1", "created": "1999-12-08T06:07:52.868Z", "lastUpdatedBy": "6677abc8b248bc27dc9fe450", "lastUpdated": "2012-03-29T16:27:24.777Z", "_id": "8f6de9e4e6be288c914f73bd", "gbac": { "write": [ "321a50a49aa64822fb36f4c5", "bc5e88cb5112f7dd55927db7", "4623235be696488b41367a94", "7c09a2c4398f36b0f186a48c" ], "read": [ "3219ad22661da6896b8ff581", "30896db299114000cc7a357a" ] }, "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" } } } ] } } } } } } ] }