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": -61224108.3881353, "type": 11328271, "enabled": -22498067, "actionType": true, "actionId": -96901204, "formData": 62761327.536666214, "firstRunAt": false, "processMissedRuns": "voluptate in velit", "repeatUnit": false, "repeatFrequency": false, "repeatInterval": "consequat do", "_id": 73184164.58060825, "formId": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "553aca146d41851c984508a7", "verb": "POST", "routeName": "w3hxZ", "_id": "5068589c19872e588e4d9798", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 1962350, "createdBy": "in Lorem aliquip", "created": "1967-11-16T06:52:17.109Z", "lastUpdatedBy": null, "lastUpdated": "1990-02-12T06:43:56.999Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "4c9835f230754de0bb2dd476", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "08fdba5652838e0120ca2128", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 11130010, "migrationVersion": -62033833, "createdBy": "voluptate non deserunt id quis", "created": "1958-08-01T23:36:02.809Z", "lastUpdatedBy": "elit esse sed incididunt", "lastUpdated": "1980-05-11T04:55:46.577Z", "formSchemaHash": null }, { "title": "triggers" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "aef609bf9500efff0b960d00", "source": "dolor mollit incididunt irure", "topic": "in", "_id": "6f13e9b7f4d7cb8780406410", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 55328183, "migrationVersion": -12683103, "createdBy": null, "created": "1994-04-09T00:15:49.617Z", "lastUpdatedBy": null, "lastUpdated": "2002-07-19T09:45:26.745Z" } ], "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": "cbeab4b45fcfa9c717ac5d5c", "lastExecuted": null, "migrationVersion": -49027506, "createdBy": "Pronghorn", "created": "1960-04-25T01:17:07.825Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1969-02-20T22:19:55.751Z", "_id": "5c5d632da3e132bc8343fc56" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "ee8ee9831151652d4f8d4262", "lastExecuted": null, "migrationVersion": 91450132, "createdBy": "Pronghorn", "created": "1953-07-24T06:31:36.615Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1950-01-08T23:02:30.049Z", "_id": "ebdf3d0d2c1ae764371d791d" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "9688f9d48bab74b23e988ce8", "lastExecuted": null, "migrationVersion": 19807209, "createdBy": "c8356822f3cc877f89d932ab", "created": "2008-10-09T12:58:33.556Z", "lastUpdatedBy": "f7e1cb7fd7aaa8be4e85e389", "lastUpdated": "1973-01-13T01:43:48.382Z", "_id": "d54d65b3bb49fe1e2d0e960c" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "e2fc2d9354bfbb06e49d2abc", "lastExecuted": null, "migrationVersion": -84928343, "createdBy": "Pronghorn", "created": "1947-04-19T03:26:03.41Z", "lastUpdatedBy": "3ee358a00e7372ab00fce40e", "lastUpdated": "2011-06-05T23:36:21.337Z", "_id": "e7a582466841ecd0f859f09d" } } ] }
{ "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" } } } ] } } } } } } ] }