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": "bde73d1f9612cef27504c8ae", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "dce792263b7707005a93d79d", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 69421442, "createdBy": "consectetur tempor cupidatat do", "created": "2015-12-15T19:21:44.351Z", "lastUpdatedBy": null, "lastUpdated": "1983-09-17T10:58:54.631Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "52ef9bd5c8f08bf678ddf83b", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "23dfd252b341a0967936a233", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 35714647, "migrationVersion": 62438337, "createdBy": null, "created": "2017-11-14T09:34:44.013Z", "lastUpdatedBy": "veniam", "lastUpdated": "2004-03-30T01:17:11.221Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "0dfa41cb9c8d481f53cb76f9", "verb": "POST", "routeName": "MFTeI3", "_id": "43cdc54ab3a76c93de056fa4", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -13391813, "createdBy": "nisi veniam", "created": "1989-03-28T17:58:31.638Z", "lastUpdatedBy": "enim id in exercitation", "lastUpdated": "2011-02-27T12:04:22.859Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "9e832018221eea5ce8c0053b", "source": "dolor in", "topic": "dolore dolor anim amet", "_id": "24e0eddca95272eb4d3457da", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 93364117, "migrationVersion": 59253804, "legacyWrapper": true, "createdBy": "in commodo culpa", "created": "1966-03-29T18:21:00.309Z", "lastUpdatedBy": null, "lastUpdated": "1963-04-09T19:36:17.875Z" }, { "name": "exercitation", "type": -20149113, "enabled": true, "actionType": -45952641.99281024, "actionId": 45191328.05013952, "formData": -74456173.8228254, "firstRunAt": 94416678, "processMissedRuns": 1019141.9519453645, "repeatUnit": 81820305.90560085, "repeatFrequency": 52413290.266668975, "repeatInterval": "qui Lorem", "_id": false, "formId": -7330259 } ], "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 imported 3 of 4 documents", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "1063884973fce41fc71e2cef", "lastExecuted": null, "migrationVersion": -42896113, "createdBy": "Pronghorn", "created": "1987-01-16T23:50:23.725Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1980-12-09T16:57:26.418Z", "_id": "743c71ccf7f3c0e4937377b3" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "68f29ecc182ae32adbd473e7", "lastExecuted": 80032034, "migrationVersion": -66603627, "createdBy": "Pronghorn", "created": "1981-02-19T22:31:25.793Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2008-01-09T07:32:13.957Z", "_id": "538237c277cc7c29034ee46a" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "c807a76b9fe7d0e4735290f0", "lastExecuted": 43480881, "migrationVersion": -58869389, "createdBy": "Pronghorn", "created": "2017-01-13T23:22:03.114Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2012-08-19T19:10:02.387Z", "_id": "5b8a4e772a5268bf29b0457f" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "b36b51228912e8f3542cf1eb", "lastExecuted": 97522229, "migrationVersion": -95577842, "createdBy": "c752df608922d0c094d2ffd8", "created": "2004-06-18T00:54:52.294Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1985-03-08T03:18:58.122Z", "_id": "c7a71f0e16c4eb34663ee1c6" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "18304a084bf46dd1474c4239", "lastExecuted": 28274383, "migrationVersion": -42533341, "createdBy": "Pronghorn", "created": "1950-04-10T21:58:59.662Z", "lastUpdatedBy": "b7d272621c5cf6dda1bf8b07", "lastUpdated": "1973-04-24T18:27:03.577Z", "_id": "7465e07be55b3059980e4b62" } } ] }
{ "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" } } } ] } } } } } } ] }