Summary
Import Triggers
Description
Import Triggers.
Route
PUT /operations-manager/triggers
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
triggers | array | yes | An array of exported Trigger documents. |
options | object | yes | Optional parameters. |
{ "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "f1e67a44be3a33473a34471c", "verb": "POST", "routeName": "PboJ", "_id": "e5d59d8538c7153745338389", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 58563895, "createdBy": "dolor veniam Ut enim", "created": "1997-03-13T02:02:17.749Z", "lastUpdatedBy": "magna in elit ut", "lastUpdated": "2013-01-18T02:34:11.511Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "dd6c1d22b998434e557ed326", "verb": "POST", "routeName": "AI6ZlejyM2", "schema": null, "_id": "4f4604fe691255365a9b79b8", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -90634949, "createdBy": "ex cillum mollit", "created": "2021-02-07T00:09:57.559Z", "lastUpdatedBy": "nulla sint occaecat laboris deserunt", "lastUpdated": "2010-08-30T23:10:09.728Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "6877fa3346f8ca9e49e87194", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "5e3c451ecd850b3b6d47328a", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 98681290, "migrationVersion": 87554503, "createdBy": "labore dolor exercitation", "created": "2004-07-08T05:20:54.867Z", "lastUpdatedBy": "consectetur cillum", "lastUpdated": "1968-10-08T14:08:12.153Z", "formSchemaHash": null } ], "options": { "adapterMap": { "staging": "production" } } }
{ "type": "object", "properties": { "triggers": { "title": "triggers", "type": "array", "items": { "title": "triggers", "$ref": "trigger-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": [ "triggers", "options" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
createdTigger | 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", "enabled": false, "actionType": "automations", "actionId": "cc98c2eccebfe36bedeb0f97", "lastExecuted": null, "migrationVersion": -96751071, "createdBy": "4fab685d28a42f2d04010fa2", "created": "1969-01-28T04:23:14.561Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1987-10-09T04:25:05.095Z", "_id": "8cf29e47597b61451cb34426" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "4e9ea68a268835fb379ca238", "lastExecuted": null, "migrationVersion": 6552865, "createdBy": "Pronghorn", "created": "2001-08-02T17:53:13.933Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1979-11-24T07:04:23.86Z", "_id": "6d0ff6636360f1bdee446bb4" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "b13cb7499b898ef763a84764", "lastExecuted": null, "migrationVersion": 9228397, "createdBy": "Pronghorn", "created": "2019-02-09T05:59:05.728Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1973-04-16T17:55:14.256Z", "_id": "fc718c1a53017aaf3fd87ca4" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "938b75d18e722e721b034d53", "lastExecuted": null, "migrationVersion": 34213158, "createdBy": "Pronghorn", "created": "2007-11-06T16:23:59.781Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1948-05-17T18:50:50.304Z", "_id": "a3180d0c008b697b104da354" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "8e65baecec713591e61504f2", "lastExecuted": null, "migrationVersion": 51344053, "createdBy": "Pronghorn", "created": "2016-11-10T02:13:32.398Z", "lastUpdatedBy": "30b2f7cd20bd36eba8e7945b", "lastUpdated": "1951-08-10T23:24:48.74Z", "_id": "f1599d11ad786a1b276b0240" } } ] }
{ "title": "createdTigger", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "allOf": [ { "$ref": "trigger-common#/definitions/commonFields" }, { "$ref": "common#/definitions/metadataFields" }, { "type": "object", "properties": { "_id": { "$ref": "common#/definitions/ObjectIdLikeString" } } } ] } } } } } } ] }