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": "fc2b2587224399685085aa3c", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "operators", "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" } ] }, "componentName": null, "createdBy": null, "created": "1950-05-30T21:20:07.985Z", "lastUpdatedBy": "minim sit do", "lastUpdated": "2012-06-02T14:10:46.0Z", "triggers": [ { "name": 65594147, "type": "aliqua Lorem pariatur veniam", "enabled": "reprehenderit quis magna voluptate", "actionType": true, "actionId": false, "formData": -92542295.81832676, "firstRunAt": 29613207, "processMissedRuns": -8604434, "repeatUnit": 44660385, "repeatFrequency": true, "repeatInterval": -26884683.838165373, "_id": -24790577, "formId": -54976087.67012907 }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "f6f2e262c780ddef7f4b7a0d", "verb": "POST", "routeName": "9W4b5", "_id": "e72b90e1d81dfe708d7b74fd", "description": "Some helpful information about the document", "lastExecuted": 14558073, "migrationVersion": -35211814, "createdBy": "velit ut in nostrud", "created": "2011-12-17T02:11:09.629Z", "lastUpdatedBy": "enim est ex aliqua", "lastUpdated": "1984-10-27T06:57:59.201Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "1b127ed0155de6e7f2df370c", "source": "in", "topic": "eiusmod non", "_id": "582c2d3307ea79b6b69a4a78", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -82009213, "createdBy": "aute voluptate ea", "created": "1985-09-28T21:44:31.03Z", "lastUpdatedBy": "esse in", "lastUpdated": "1971-10-07T05:50:41.321Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "61ae8a0109576a8b2cdc6456", "verb": "POST", "routeName": "tK1grRA", "schema": null, "_id": "9b1fdcc514130537dba17c33", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 89289449, "migrationVersion": 7315943, "createdBy": "deserunt", "created": "1952-08-10T15:10:56.779Z", "lastUpdatedBy": null, "lastUpdated": "1960-07-04T04:06:45.819Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "0dffb086bf02fa0729b9f63d", "verb": "POST", "routeName": "AzJ6F", "_id": "27ce7c47a721e29ee8eac210", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 80414294, "createdBy": null, "created": "1969-08-07T20:54:16.764Z", "lastUpdatedBy": null, "lastUpdated": "1945-04-05T17:36:57.462Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "981a7e1a1d4e1c963d25ff89", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "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" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "2021-11-12T13:30:08.53Z", "lastUpdatedBy": "adipisicing elit ut commodo aliqua", "lastUpdated": "2020-12-25T22:24:36.213Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "e206a92a2116936b9d156bc0", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "f41f0a723784b9441f5490f6", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -39160989, "createdBy": "elit aliqua", "created": "2015-08-03T18:29:16.696Z", "lastUpdatedBy": "adipisicing ex", "lastUpdated": "2012-05-22T04:33:18.193Z", "formSchemaHash": null }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "5d04e3faaab7e3b449aaeaef", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "8708c8d9ae90ea4b8bf51917", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 76178828, "migrationVersion": 11144955, "createdBy": "sed incididunt", "created": "2003-08-14T14:23:54.858Z", "lastUpdatedBy": null, "lastUpdated": "1954-11-16T07:35:29.855Z", "formSchemaHash": "minim labore" }, { "name": true, "type": false, "enabled": "nulla exercitation ipsum non qui", "actionType": true, "actionId": true, "formData": true, "firstRunAt": 88582877, "processMissedRuns": -32000717, "repeatUnit": -20027662, "repeatFrequency": false, "repeatInterval": true, "_id": -60157068.52760138, "formId": true } ] } ], "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 imported 3 of 4 documents", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "159929d85bdd4d0ed2a8ca67", "created": "2002-10-13T00:08:45.606Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1973-08-23T06:10:20.415Z", "_id": "c1533400538c072b995eb5b1", "gbac": { "write": [ "06ab8ab68f2cd7c5e1cc8be1", "bcc85e88d10545d35dee4832" ], "read": [ "64e659c7e05f6d7c6898614d", "550900b237af01f8ac49dc15", "a15dfa036a6f38ec59522f4f", "d495773f96986370071d60f9", "4902d6cde35d304075eb2997" ] }, "componentId": "eeC7bFA9-E4ee-9ffc-54Bd-deFcaeBbd26a" } } ] }
{ "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" } } } ] } } } } } } ] }