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": "877ee005093da730b1e1dd4f", "gbac": { "write": [ { "provenance": "localAAA", "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" }, { "provenance": "localAAA", "name": "designers", "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": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": "eu do", "createdBy": null, "created": "2011-02-07T03:42:53.65Z", "lastUpdatedBy": null, "lastUpdated": "1987-07-22T21:51:21.079Z", "triggers": [ { "name": 24441804, "type": "do", "enabled": false, "actionType": -70068349, "actionId": -43617604.92820794, "formData": "Lorem aliqua adipisicing", "firstRunAt": 46373546.22710094, "processMissedRuns": false, "repeatUnit": 40553629, "repeatFrequency": -89743411.0241945, "repeatInterval": true, "_id": "minim eiusmod reprehenderit incididunt", "formId": "sint amet tempor dolor deserunt" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "cff5c13f165eb7ef6d5922ed", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "proident dolore esse ipsum nisi", "created": "1958-09-10T01:05:17.437Z", "lastUpdatedBy": "in Duis dolor", "lastUpdated": "1972-07-22T10:31:38.37Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "15eb243848c7c52ea46828cd", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "24cf813741c5f5abeb626959", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 55312254, "migrationVersion": 89057740, "createdBy": null, "created": "2023-08-07T10:59:23.675Z", "lastUpdatedBy": "nulla occaecat fugiat Ut labore", "lastUpdated": "1999-06-05T17:24:42.893Z", "formSchemaHash": "sunt ipsum minim nostrud" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "727c56bde8647c70422f7c8b", "verb": "POST", "routeName": "bjZelZQDh0f", "_id": "10a5734a42840cab0895e2f3", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 64560014, "migrationVersion": 96302574, "createdBy": null, "created": "2001-03-31T10:22:49.215Z", "lastUpdatedBy": "aliqua", "lastUpdated": "2001-05-02T13:41:08.763Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "4d1187d56463a27c7466c8cf", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "81ead43df393c2575a411332", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 81188659, "migrationVersion": -45194964, "createdBy": null, "created": "1999-05-03T00:40:35.885Z", "lastUpdatedBy": null, "lastUpdated": "2000-10-21T09:55:37.167Z", "formSchemaHash": null }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "64ccb422326065d9648884dd", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "34bef26756ba8cf85128f4b0", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 35847376, "migrationVersion": 48933445, "createdBy": null, "created": "1980-02-19T16:31:57.517Z", "lastUpdatedBy": "ipsum tempor est commodo labore", "lastUpdated": "1994-11-20T08:14:21.586Z", "formSchemaHash": null }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "dadcd9d6f4e9e71b84cfbb38", "verb": "POST", "routeName": "z", "schema": null, "_id": "9263bc7e830e99b2c1b14cbd", "description": "Some helpful information about the document", "lastExecuted": 15244006, "migrationVersion": -7789710, "createdBy": null, "created": "1997-06-12T21:45:30.372Z", "lastUpdatedBy": null, "lastUpdated": "2007-03-31T23:44:15.566Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "b8614cea11fe2224a6364ce4", "gbac": { "write": [ { "provenance": "ldap", "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" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "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" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "reprehenderit minim nostrud Ut", "created": "2016-10-09T18:55:53.901Z", "lastUpdatedBy": null, "lastUpdated": "2020-02-05T00:35:42.956Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "5773baf271e540f955ddaac0", "source": "anim qui", "topic": "mollit amet id", "schema": null, "_id": "6cc109ad1eb67c631ff7e6e3", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 26370801, "createdBy": null, "created": "1954-09-02T13:59:03.01Z", "lastUpdatedBy": "eu veniam fugiat Lorem adipisicing", "lastUpdated": "1995-03-08T06:57:35.056Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "8df8563e06ad2af3b3449e5c", "verb": "POST", "routeName": "1s9tYhSmo", "schema": null, "_id": "9de2c7347fcca5b63cae2607", "description": "Some helpful information about the document", "lastExecuted": 14943697, "migrationVersion": 32900312, "createdBy": "veniam eiusmod", "created": "1987-05-12T10:35:54.737Z", "lastUpdatedBy": "ut in reprehenderit quis", "lastUpdated": "1958-05-18T01:29:05.728Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "e4b29c7865d286636d35bc4c", "verb": "POST", "routeName": "uXQNu4K8aEa", "schema": null, "_id": "08ce64295069609d6921e33a", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 40034689, "migrationVersion": 58166397, "createdBy": null, "created": "2009-08-26T08:42:41.992Z", "lastUpdatedBy": null, "lastUpdated": "1957-02-28T03:18:59.196Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "55ea0f19ac2e14e7bea6d126", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "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": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "officia commodo anim", "created": "1979-10-02T19:12:55.528Z", "lastUpdatedBy": null, "lastUpdated": "1978-12-16T19:37:40.638Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "85a69e85e06508863cc84e2d", "source": "amet sit dolor proident", "topic": "proident fugiat labore", "_id": "497dbac98d90bff6fc251d36", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -26679456, "createdBy": "incididunt cillum laborum qui", "created": "1993-08-01T13:55:45.723Z", "lastUpdatedBy": null, "lastUpdated": "1979-10-29T05:35:53.667Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "d990f5465b183d8b43f3a22c", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "27c4eb7b19560794852c8311", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 24721886, "migrationVersion": -3168548, "createdBy": "nisi eu", "created": "1980-07-01T00:09:48.555Z", "lastUpdatedBy": null, "lastUpdated": "1963-04-19T18:37:51.811Z", "formSchemaHash": "magna" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "94b2062733f40802d5eda4a7", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "8acc04c171ad7185fce99f70", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -54510064, "createdBy": "Duis", "created": "1958-08-24T07:42:23.757Z", "lastUpdatedBy": "adipisicing in exercitation cupidatat Excepteur", "lastUpdated": "1975-11-11T13:59:27.552Z", "formSchemaHash": null } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "aff077feec5e8f983d6517bf", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1978-03-12T04:39:16.167Z", "lastUpdatedBy": null, "lastUpdated": "1994-01-08T07:35:33.525Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "25ec23e317e1a71a6d72df8e", "verb": "POST", "routeName": "mqXF", "schema": null, "_id": "5d48e07d29532c20948ec182", "description": "Some helpful information about the document", "lastExecuted": 27960206, "migrationVersion": 17313659, "createdBy": null, "created": "1976-10-22T11:54:09.136Z", "lastUpdatedBy": "Lorem elit reprehenderit", "lastUpdated": "1959-10-22T04:46:42.942Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "9644cd88646cbae251db2fb2", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "8e2c365929a04f84a41398e5", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 40148589, "migrationVersion": -71623309, "createdBy": null, "created": "1965-10-27T06:46:15.864Z", "lastUpdatedBy": "est dolor", "lastUpdated": "1949-09-29T18:26:13.99Z", "formSchemaHash": null } ] } ], "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": "workflows", "createdBy": "Pronghorn", "created": "2018-07-03T01:48:22.74Z", "lastUpdatedBy": "25a890b89e357a58a6248963", "lastUpdated": "1998-01-17T12:12:00.09Z", "_id": "a4733ad558a0af969f8f4830", "gbac": { "write": [ "e823af1cab61a6cb78998fdf", "4ba704caa32c94b6a1f03b6d", "586224af7a74c9c7d51f054f", "5b080fdf48da7f825961c6e9", "e4e845638e1b9a2eca27b94f" ], "read": [ "4ae12ac6aeacee03f75bab4e", "fd474a827052e86fe102248f", "aa15a774c88bf668fdcfefab", "683f81b1d1fcf56230f23d7c" ] }, "componentId": null } } ] }
{ "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" } } } ] } } } } } } ] }