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": "959a0cdfe72a5ac0cb88ba7f", "verb": "POST", "routeName": "HAxA", "schema": null, "_id": "b3a35a9a74f9ef706e62f8c9", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 15929710, "createdBy": null, "created": "1998-07-14T15:57:47.783Z", "lastUpdatedBy": "cupidatat consectetur sunt nisi ad", "lastUpdated": "1991-08-12T09:47:35.965Z" }, { "name": false, "type": 79862396, "enabled": "exercitation", "actionType": "do ut ex proident labore", "actionId": false, "formData": -86743277, "firstRunAt": false, "processMissedRuns": true, "repeatUnit": 27893820.862117514, "repeatFrequency": 75160172.51405737, "repeatInterval": "sint enim sunt in sed", "_id": "in nostrud", "formId": "eiusmod ipsum aliqua Excepteur" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "9482a43835cb21c377d15732", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "9d78e676147b8e75597bd667", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 32663047, "migrationVersion": 50565569, "createdBy": null, "created": "1961-09-30T20:56:19.657Z", "lastUpdatedBy": null, "lastUpdated": "1961-04-13T04:00:27.444Z", "formSchemaHash": null, "legacyWrapper": true }, { "title": "triggers" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "8d9fc020b213280c7028cc20", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "26354962742ed5290ae94106", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 3661821, "createdBy": "ut enim ea labore incididunt", "created": "1951-07-02T18:01:45.967Z", "lastUpdatedBy": "incididunt pariatur magna aliquip", "lastUpdated": "2002-06-19T06:30:36.859Z", "formSchemaHash": "in", "legacyWrapper": false } ], "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": false, "actionType": "automations", "actionId": "5be2703ae55c964aff895ee0", "lastExecuted": null, "migrationVersion": -39889088, "createdBy": "Pronghorn", "created": "2001-04-06T13:25:52.609Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1964-03-05T10:03:39.998Z", "_id": "a36fa03f4832fb7d7ab86852" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "3b758035ea99d1e30d3086a4", "lastExecuted": null, "migrationVersion": 36718161, "createdBy": "cd9793e2aceb13f72e879325", "created": "2018-01-28T10:14:19.509Z", "lastUpdatedBy": "8bd191b9665a56787f7f3867", "lastUpdated": "2020-09-17T16:24:01.943Z", "_id": "5479424ada6f79d838e0b998" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "ee33e15f181f110873f6fb21", "lastExecuted": null, "migrationVersion": 47295831, "createdBy": "6b18c2031bc92124df3f7108", "created": "1945-04-18T16:34:35.812Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1995-02-02T16:07:52.289Z", "_id": "d15f65f49f7ef71747138b23" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "36d0989a56c565da8cba334f", "lastExecuted": 11993137, "migrationVersion": -42590792, "createdBy": "Pronghorn", "created": "2021-02-19T02:11:09.424Z", "lastUpdatedBy": "699ece76f94c9e4bbd0d59ea", "lastUpdated": "1979-12-30T01:22:52.357Z", "_id": "683308e5c9839851fb7e4566" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "193b7cd5c3516f4396da3743", "lastExecuted": 57179691, "migrationVersion": 20174832, "createdBy": "12ebd211ec3f0f2d4cf0c50a", "created": "1981-02-19T20:04:06.339Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1963-03-10T09:19:20.318Z", "_id": "346847603151a963d9006112" } } ] }
{ "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" } } } ] } } } } } } ] }