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": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "b86ddfe973d8677dd803380d", "source": "minim eiusmod esse labore est", "topic": "reprehenderit voluptate", "_id": "bfc94efdb343867beffa6081", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 86236275, "legacyWrapper": false, "createdBy": "nulla voluptate sed", "created": "1962-11-25T09:45:15.892Z", "lastUpdatedBy": "adipisicing", "lastUpdated": "2017-09-26T19:56:34.725Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "1943a72f286c0b8d98147ed3", "verb": "POST", "routeName": "bS3EQa", "_id": "7be93f281d96d4be0b496109", "description": "Some helpful information about the document", "lastExecuted": 10954757, "migrationVersion": 2752562, "createdBy": "officia", "created": "2013-09-28T07:00:42.965Z", "lastUpdatedBy": null, "lastUpdated": "1962-01-21T14:43:38.219Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "0baae5e5c6a2ce1491fb3485", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "8b09195ab3a6751e2bbc364e", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 53556322, "createdBy": "fugiat sint adipisicing elit pariatur", "created": "1980-08-09T12:13:24.401Z", "lastUpdatedBy": "minim id", "lastUpdated": "2015-09-09T04:01:44.3Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": -88205114, "type": -42820329.75564429, "enabled": false, "actionType": "exercitation dolor", "actionId": true, "formData": false, "firstRunAt": 93140205, "processMissedRuns": false, "repeatUnit": true, "repeatFrequency": false, "repeatInterval": 3155443.776940465, "_id": "nulla ipsum ex nisi culpa", "formId": -66486069 } ], "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": false, "actionType": "automations", "actionId": "c24b629f31a90fc64f909e1c", "lastExecuted": 92493979, "migrationVersion": -61848576, "createdBy": "5650dfcb93857f00754d0a10", "created": "1965-01-20T22:09:49.893Z", "lastUpdatedBy": "fe9cc569dc794b6236ee59de", "lastUpdated": "1945-08-16T00:18:17.345Z", "_id": "bd3c3c351af6d60472ffd153" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "3632042c61fe28fa51615bd9", "lastExecuted": null, "migrationVersion": -43711968, "createdBy": "Pronghorn", "created": "2018-04-08T01:51:03.889Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1982-08-07T17:12:15.853Z", "_id": "b9ac17fba218f412229c931f" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "a13dee8a84b2c6b8cb4a10fd", "lastExecuted": null, "migrationVersion": 56798647, "createdBy": "01d35ed8bf8af96b79346e2d", "created": "1960-09-01T03:00:46.928Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2008-06-01T16:55:00.147Z", "_id": "72c53c6f02dafbacb1d6eb64" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "4fbb9fa20975673f1666e91d", "lastExecuted": 14955103, "migrationVersion": 87897917, "createdBy": "Pronghorn", "created": "2011-12-28T08:43:27.979Z", "lastUpdatedBy": "860b46b773798b6f45716729", "lastUpdated": "1957-08-29T23:58:00.844Z", "_id": "ec3a7a92057d0365319b403c" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "9ca2dc30b3b035a68cf23ab9", "lastExecuted": 80605008, "migrationVersion": -39569360, "createdBy": "8a1539de98337cfdf35a0747", "created": "2024-06-29T22:59:38.547Z", "lastUpdatedBy": "a939a90ba6847d7be98ca3e2", "lastUpdated": "2019-05-24T22:08:14.832Z", "_id": "0c46936d3611220b6a1985db" } } ] }
{ "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" } } } ] } } } } } } ] }