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": true, "actionType": "automations", "actionId": "a423d07c91b963a3da060f25", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "493f3a55347cadd29b8a4208", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 32125575, "migrationVersion": 6369661, "createdBy": "enim anim exercitation in", "created": "1983-06-01T19:14:05.309Z", "lastUpdatedBy": "reprehenderit sit id voluptate cillum", "lastUpdated": "1947-03-15T16:50:53.734Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "70d9dd4c15f0f4ef5439d05a", "source": "elit qui cillum", "topic": "dolore", "_id": "58e6ec00d6d0b1b1f3aa5c43", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 52344309, "legacyWrapper": false, "createdBy": null, "created": "2023-10-13T17:01:19.658Z", "lastUpdatedBy": null, "lastUpdated": "1992-09-08T02:48:39.921Z" }, { "name": true, "type": "sed et cillum", "enabled": 71533538.76849163, "actionType": false, "actionId": -93758439.66902582, "formData": -43759390.25897258, "firstRunAt": false, "processMissedRuns": 11001049, "repeatUnit": "nisi aliqua", "repeatFrequency": "aliquip", "repeatInterval": true, "_id": "qui dolore pariatur in", "formId": 37162995.041700065 }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "f68ad02cc73942c326de7d23", "source": "sit dolor irure enim amet", "topic": "ex magna aliqua Excepteur ut", "schema": null, "_id": "bf0957f04053c09606d36ad0", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 72913988, "legacyWrapper": true, "createdBy": "laborum reprehenderit sit", "created": "2004-07-13T23:38:31.427Z", "lastUpdatedBy": "culpa aute dolor occaecat aliqua", "lastUpdated": "2014-05-26T08:50:23.792Z" } ], "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 created the requested item", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "afeff58c84ca2eeaa55e23f6", "lastExecuted": 20169071, "migrationVersion": -86360165, "createdBy": "Pronghorn", "created": "1968-01-15T05:52:21.917Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1959-05-11T02:31:53.634Z", "_id": "d4fcc21cfd48ea9b3067de40" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "406e4ee059a83cd3d15b1cad", "lastExecuted": 89811412, "migrationVersion": -62007436, "createdBy": "Pronghorn", "created": "1991-09-25T23:33:05.505Z", "lastUpdatedBy": "169810a3a3309b92dd824f11", "lastUpdated": "2013-06-07T12:13:35.989Z", "_id": "a8598f4c9721c551e813cb99" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "4e871dbefde50bc2c3b3428d", "lastExecuted": null, "migrationVersion": 90446971, "createdBy": "9a667ba25b80127ac8f44f8d", "created": "2017-08-29T08:50:08.807Z", "lastUpdatedBy": "66c5a06f9ea9a52edb3c29c3", "lastUpdated": "1981-10-07T09:30:51.379Z", "_id": "eccd81dc0629a4eec190e54b" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "1d8ba626d2b8c4a772aa7c8d", "lastExecuted": 53602939, "migrationVersion": 48081401, "createdBy": "Pronghorn", "created": "2005-07-31T08:20:19.22Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2002-07-23T18:12:25.977Z", "_id": "fc1e03f96bd1e57005964c59" } } ] }
{ "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" } } } ] } } } } } } ] }