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": "manual", "enabled": false, "actionType": "automations", "actionId": "955556a0d956d239be7521cb", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "9a7f3bd845352da983057141", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 95887727, "createdBy": "irure eu veniam proident", "created": "2004-04-18T09:40:34.471Z", "lastUpdatedBy": null, "lastUpdated": "1989-07-19T16:08:44.526Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "9c76c5a574eac275ac7050ab", "verb": "POST", "routeName": "LNQTTVf", "schema": null, "_id": "1a691712307d06f21548cfb6", "description": "Some helpful information about the document", "lastExecuted": 47112745, "migrationVersion": -53811499, "createdBy": "incididunt dolor Excepteur et in", "created": "2008-06-18T12:17:29.631Z", "lastUpdatedBy": "proident ut pariatur magna", "lastUpdated": "1978-07-08T07:43:22.329Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "96eee4a71c0d82a33b6b8d4b", "source": "dolore deserunt laborum", "topic": "officia velit", "_id": "5c4eb398d984be99a31aaf99", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 95437255, "legacyWrapper": true, "createdBy": null, "created": "1999-02-12T19:16:23.47Z", "lastUpdatedBy": "proident sit aliqua laboris", "lastUpdated": "1996-08-21T09:32:21.935Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "de2e1531a7de010e2e2adfc4", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "726933b3e684515eb6ad66d8", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 51513683, "migrationVersion": 8538472, "createdBy": "et proident Lorem", "created": "2012-11-03T07:57:11.59Z", "lastUpdatedBy": null, "lastUpdated": "1970-06-25T19:51:57.158Z", "formSchemaHash": "aute ut", "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "a436b8fa4c66a8cf8f7064c1", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "7e829e3fb9324d2aeaa61e56", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 8795928, "createdBy": null, "created": "2002-09-24T07:24:49.308Z", "lastUpdatedBy": null, "lastUpdated": "2024-09-16T20:04:04.712Z", "formSchemaHash": "tempor minim adipisicing ullamco", "legacyWrapper": false } ], "options": { "adapterMap": { "old_name": "new_name" } } }
{ "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 retrieved search results", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "a343e09e39ec447eaafe972f", "lastExecuted": null, "migrationVersion": -99332112, "createdBy": "Pronghorn", "created": "1997-08-10T22:48:39.256Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1981-08-24T07:00:18.149Z", "_id": "245d126fb282c6055c9ad3fa" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "23d561dbd80b3a1dbb229e63", "lastExecuted": 92427746, "migrationVersion": 22013418, "createdBy": "40d7a4d4cebd328688cb6840", "created": "1967-11-12T23:16:55.741Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1999-06-02T15:59:48.381Z", "_id": "c7e8988b40415ffd51de61b1" } } ] }
{ "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" } } } ] } } } } } } ] }