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": "d127f2ca5262de856c3330ae", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "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" } ] }, "componentName": "elit officia", "createdBy": null, "created": "1984-10-07T10:16:20.845Z", "lastUpdatedBy": "veniam qui nostrud eiusmod", "lastUpdated": "2002-08-28T11:19:38.449Z", "triggers": [ { "name": "pariatur eu nulla ex", "type": -62433605, "enabled": -29800464, "actionType": 76728148.04869875, "actionId": false, "formData": true, "firstRunAt": "laboris amet ea Duis", "processMissedRuns": "dolor aliqua mollit Duis irure", "repeatUnit": true, "repeatFrequency": true, "repeatInterval": 49030071.21527985, "_id": -21449318, "formId": 49073945 }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "161510b3e665f6a336fa20c2", "source": "Ut nostrud", "topic": "Ut eu dolore voluptate Duis", "_id": "c34626669e945139e042fd48", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 31668737, "migrationVersion": -64980403, "legacyWrapper": true, "createdBy": "voluptate amet nulla", "created": "1976-09-25T23:20:06.431Z", "lastUpdatedBy": "cillum irure adipisicing ex ullamco", "lastUpdated": "2019-06-15T16:57:29.976Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "76e13418e4ad6bc1a6e8c54a", "gbac": { "write": [ { "provenance": "localAAA", "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": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1999-10-04T00:43:31.591Z", "lastUpdatedBy": "aliquip", "lastUpdated": "2008-07-02T06:58:55.601Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "2bd9316c218a8f1f0f561a3e", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "61f1cd3042145e06d2fcf207", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 58801333, "migrationVersion": 44689322, "createdBy": null, "created": "1961-10-17T07:46:23.482Z", "lastUpdatedBy": "ipsum sit magna nostrud", "lastUpdated": "1988-12-22T10:40:36.71Z", "formSchemaHash": null, "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "34269c2ea67602ee4fb9fd24", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "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": "ldap", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": "adipisicing voluptate", "createdBy": "aliqua ad ut", "created": "2021-10-03T09:09:47.269Z", "lastUpdatedBy": null, "lastUpdated": "1976-04-04T19:11:03.983Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "402f7df1a68a4f40f17d7759", "verb": "POST", "routeName": "UqH", "schema": null, "_id": "1128bf2eef551381816d5db0", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -75847383, "createdBy": "mollit", "created": "1989-11-27T20:28:26.861Z", "lastUpdatedBy": "incididunt ea commodo exercitation sit", "lastUpdated": "1988-12-23T05:04:15.671Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "134236b9d782165c94239dc5", "source": "ipsum enim consequat culpa cupidatat", "topic": "exercitation veniam sunt", "schema": null, "_id": "6a7bbcbd5913c6a08790f483", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 53337579, "legacyWrapper": true, "createdBy": null, "created": "1946-03-12T06:23:22.51Z", "lastUpdatedBy": "anim reprehenderit", "lastUpdated": "1952-02-20T04:57:22.961Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "91a27cd35e63fcaa56b2c8ff", "verb": "POST", "routeName": "CZigUQfC", "schema": null, "_id": "8c79cc6cc62c08c844e7864a", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 64334857, "migrationVersion": 80147940, "createdBy": null, "created": "2021-08-26T01:54:15.656Z", "lastUpdatedBy": "dolor id ut aliquip culpa", "lastUpdated": "1948-05-21T10:36:51.757Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "f31d88756ecb8eec4ae44ef0", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "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" } ] }, "componentName": "deserunt Duis occaecat", "createdBy": null, "created": "2010-08-09T08:41:58.146Z", "lastUpdatedBy": null, "lastUpdated": "1972-05-18T02:40:26.898Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "32e1490859516f33923b5c46", "source": "aute", "topic": "commodo sed pariatur officia ex", "schema": null, "_id": "9fb14ac08e76747196ab96ca", "description": "Some helpful information about the document", "lastExecuted": 10052493, "migrationVersion": -30512090, "legacyWrapper": true, "createdBy": null, "created": "1987-08-21T17:30:36.38Z", "lastUpdatedBy": "sed non sint", "lastUpdated": "1981-03-01T11:02:01.746Z" } ] } ], "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": null, "createdBy": "2208ed7bfd71c9c41ba870e2", "created": "2008-03-20T05:19:41.96Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2002-12-01T16:03:39.689Z", "_id": "4e86f0fcce9912b755d3c6ef", "gbac": { "write": [ "0078253934debf0598872115", "0fe946fc4205ddbca1004932" ], "read": [ "613d798066235b1619847ea6", "0a262e5a5dc87610f4ef670e", "e45fbdc55d3488700c1bb986", "e2ef0928001f4e5910e37b6b", "0710cda0b109984d1e2e25c0" ] }, "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" } } } ] } } } } } } ] }