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": "a36e5a22b69dcd2497b88eaa", "gbac": { "write": [ { "provenance": "ldap", "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" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": "voluptate dolore magna enim", "createdBy": null, "created": "1965-04-06T04:35:06.355Z", "lastUpdatedBy": "deserunt quis dolore laboris do", "lastUpdated": "1964-02-13T09:21:47.355Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "b7eb82036e9784fef0876ef3", "source": "in exercitation", "topic": "minim pariatur magna", "schema": null, "_id": "eadeab5d82a2feae91c8061f", "description": "Some helpful information about the document", "lastExecuted": 45071007, "migrationVersion": 54372588, "createdBy": null, "created": "1955-06-09T07:43:53.218Z", "lastUpdatedBy": null, "lastUpdated": "1975-05-30T04:50:25.95Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "0259ff544840b42b7dc0c6c1", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "4b9af556960c1cf4bef4e219", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 33159683, "createdBy": "adipisicing voluptate", "created": "1954-10-02T15:57:18.189Z", "lastUpdatedBy": "elit", "lastUpdated": "1970-08-03T13:29:23.769Z", "formSchemaHash": "elit non Ut" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "fbf03546c7b650843938c704", "source": "anim consequat nostrud sunt ipsum", "topic": "sed adipisicing consectetur officia irure", "schema": null, "_id": "9e9746f205fe34958c842e45", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -82795096, "createdBy": "Ut mollit culpa velit", "created": "1946-12-05T12:58:23.499Z", "lastUpdatedBy": "cillum", "lastUpdated": "1953-06-02T21:27:48.341Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "15649a4b7d856f6a52feab20", "source": "in Ut", "topic": "labore Lorem", "_id": "5fb9490980f473a640c8bfc6", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 29884302, "migrationVersion": 94941327, "createdBy": "Lorem dolor est", "created": "1977-01-24T09:37:55.583Z", "lastUpdatedBy": null, "lastUpdated": "1949-02-05T21:55:02.927Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "3cbea6ee1d21fc27d5eb868c", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "8dc558014522a464606bdd2f", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -60431965, "createdBy": null, "created": "1991-09-05T19:59:38.35Z", "lastUpdatedBy": "non sint ea voluptate", "lastUpdated": "2017-06-21T09:39:23.972Z", "formSchemaHash": "in est culpa" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "2357fb671c7aecba74c48af7", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "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": "operators", "description": "Description of a group" } ] }, "componentName": "officia Lorem ullamco sed", "createdBy": null, "created": "2016-10-10T10:39:44.545Z", "lastUpdatedBy": "fugiat aliqua in", "lastUpdated": "1994-09-20T09:43:48.924Z", "triggers": [ { "name": "eiusmod occaecat aliqua", "type": -29961620.41446145, "enabled": 64468082, "actionType": true, "actionId": 11382542.27904661, "formData": "veniam et", "firstRunAt": "occaecat", "processMissedRuns": -37554504.86596561, "repeatUnit": -43458722, "repeatFrequency": "laboris est officia ad dolore", "repeatInterval": false, "_id": "nisi", "formId": -51804909.86220945 }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "76f56499716776c06b9917b3", "verb": "POST", "routeName": "yK0", "_id": "1b646cdc620f82242ce1f2b5", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -86970940, "createdBy": null, "created": "1982-08-25T23:29:51.995Z", "lastUpdatedBy": "ut velit", "lastUpdated": "1950-10-03T12:57:31.738Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "53ed1b177aaa165eaf574864", "source": "in ullamco pariatur officia aliquip", "topic": "enim", "_id": "35da1b501ebd562d0f9b5d36", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 40855024, "createdBy": null, "created": "1985-08-07T06:32:10.602Z", "lastUpdatedBy": "culpa Lorem aliqua mollit occaecat", "lastUpdated": "1985-10-15T16:26:32.436Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "1c02e2c71f56844452ca9c22", "gbac": { "write": [ { "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" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": "dolor eu", "createdBy": null, "created": "1957-12-11T22:20:38.334Z", "lastUpdatedBy": null, "lastUpdated": "1972-12-03T09:23:34.365Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "d4d49314af79eab0b4670667", "source": "commodo irure deserunt consequat", "topic": "exercitation eu culpa dolore", "_id": "a9491b5775e8c7e2dabe4cdc", "description": "Some helpful information about the document", "lastExecuted": 38069632, "migrationVersion": -58888147, "createdBy": "nulla", "created": "1984-09-06T23:32:28.217Z", "lastUpdatedBy": null, "lastUpdated": "2011-01-18T08:10:18.201Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "8ee43ad9adf53383e88af0ed", "source": "velit ad ex", "topic": "nostrud ullamco", "_id": "046235de3ba5c3a51820c093", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -78666577, "createdBy": null, "created": "1979-02-02T17:37:51.556Z", "lastUpdatedBy": "deserunt nulla", "lastUpdated": "1970-01-03T02:01:47.576Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "28817d238809609e960617c5", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "eb92b013ff892985569c548e", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 48588788, "migrationVersion": 65812951, "createdBy": null, "created": "1984-07-06T04:48:50.458Z", "lastUpdatedBy": "sunt dolor eiusmod exercitation anim", "lastUpdated": "2002-01-02T12:42:23.531Z", "formSchemaHash": "sed aute elit et aliqua" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "036dc49155ac5703dee1e09a", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "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": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": "non nisi Duis anim pariatur", "createdBy": null, "created": "2022-11-17T17:28:21.799Z", "lastUpdatedBy": null, "lastUpdated": "1958-10-01T08:40:22.142Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "e3e13a6b9a3f98e15a6168d9", "verb": "POST", "routeName": "yOadQHZ6sQX", "schema": null, "_id": "a2c4f680c62f07183883e4b2", "description": "Some helpful information about the document", "lastExecuted": 12453255, "migrationVersion": -98246242, "createdBy": null, "created": "1990-01-11T09:37:42.739Z", "lastUpdatedBy": "in Duis sunt incididunt", "lastUpdated": "2014-06-22T15:20:59.003Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "04dea44bdcd90d2e99e42e43", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "adipisicing ex aliquip ad", "created": "2018-11-25T11:40:15.223Z", "lastUpdatedBy": "culpa labore esse occaecat nulla", "lastUpdated": "1980-06-18T11:36:51.471Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "09f7d73c9b7a2157591ea2f2", "source": "ea in ad in", "topic": "sit enim commodo", "_id": "b25023afc1f1f92b1dbd8d1b", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -2769338, "createdBy": "do anim quis", "created": "1965-10-12T13:56:38.374Z", "lastUpdatedBy": "consequat pariatur ut sed", "lastUpdated": "1963-10-14T22:26:10.288Z" } ] } ], "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 created the requested item", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "0c85aebe495726068c3e7730", "created": "1967-01-08T15:05:24.201Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2017-08-27T23:12:26.807Z", "_id": "d20cff9091f22dc13c24911d", "gbac": { "write": [ "907cf8859fa8e1a28da7e778", "7c8f17c55f3998ee27d7b713", "1abac460ffbabb2f8e7fbf37", "e7204201dffabbc60a0f870e" ], "read": [ "785e7b3ffb80e353906d76a8", "97a69f13ce0c14614fb9d2ad", "b25f37f23a445900fd85b1bf", "3b5db29263ddcf05f10f1795" ] }, "componentId": "cAbc49fD-9AaA-679D-04ed-fF03609873d0" } } ] }
{ "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" } } } ] } } } } } } ] }