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": true, "actionType": "automations", "actionId": "e362a8115eea9ef121418d4b", "verb": "POST", "routeName": "0EhcBSlj", "schema": null, "_id": "6dea2c03fa4b5ef34faf5630", "description": "Some helpful information about the document", "lastExecuted": 28412008, "migrationVersion": 23179881, "createdBy": "mollit", "created": "1991-03-17T10:35:17.374Z", "lastUpdatedBy": "culpa consectetur", "lastUpdated": "1997-08-06T16:24:36.026Z" }, { "name": false, "type": true, "enabled": true, "actionType": -95607911.51890378, "actionId": "in non occaecat dolore ea", "formData": -13676985.7747121, "firstRunAt": 32949766, "processMissedRuns": 13395587, "repeatUnit": false, "repeatFrequency": true, "repeatInterval": "enim mollit sit aute", "_id": -30314273.01911451, "formId": -74987606 }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "01836cf36e008b74316d362a", "verb": "POST", "routeName": "cr", "schema": null, "_id": "5564f8882e88313a9991a2fe", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 75664691, "createdBy": null, "created": "1963-09-05T18:01:31.168Z", "lastUpdatedBy": "incididunt", "lastUpdated": "1950-10-15T22:45:47.273Z" } ], "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": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "6ab8ff905ad1abd9d17e4503", "lastExecuted": null, "migrationVersion": 83008516, "createdBy": "d579888f48a037791812ddf3", "created": "2009-10-26T07:15:16.665Z", "lastUpdatedBy": "6bf3e2ac297b8b68b12b12ce", "lastUpdated": "1960-10-13T06:03:43.33Z", "_id": "646a20f1e8406bc276aeec5e" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "f076ea1027714bae7d865d98", "lastExecuted": null, "migrationVersion": -18940520, "createdBy": "f35230fa39b9c044e865994e", "created": "1978-07-21T14:23:16.551Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1958-07-09T11:37:51.844Z", "_id": "af485f58db584759649606ea" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "7af7ce8fde8bd3f306ce8bc4", "lastExecuted": 57197760, "migrationVersion": 94917306, "createdBy": "Pronghorn", "created": "1946-10-13T05:11:51.161Z", "lastUpdatedBy": "7dd96f4713301769235af7b6", "lastUpdated": "2004-12-26T01:16:18.008Z", "_id": "69068d9d080d0cca4a779a4c" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "d306e70eaa03cfda8edaf53f", "lastExecuted": 6959447, "migrationVersion": -5547829, "createdBy": "992b53928e950bf55e7b92b4", "created": "1999-08-13T17:57:57.337Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2006-01-29T20:23:40.091Z", "_id": "dc4fe21ac11646e9c22aba37" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "5ad15d5f4a40578b2f310c97", "lastExecuted": 67516035, "migrationVersion": -94692637, "createdBy": "Pronghorn", "created": "1956-12-05T10:59:33.577Z", "lastUpdatedBy": "d5cf264d1e1b747dd485a3e2", "lastUpdated": "1967-08-04T14:22:54.413Z", "_id": "74bd86e4b1cda744e5c7e9a8" } } ] }
{ "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" } } } ] } } } } } } ] }