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": false, "actionType": "automations", "actionId": "7875e04093d4be0cc97e7704", "verb": "POST", "routeName": "yWVFsOJmT", "_id": "489945db933226a32c423e1a", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -91128366, "createdBy": "aliquip nulla fugiat ad adipisicing", "created": "1961-10-18T00:18:00.191Z", "lastUpdatedBy": null, "lastUpdated": "1973-10-14T00:21:10.03Z" }, { "name": true, "type": "aute", "enabled": "magna in", "actionType": true, "actionId": 62274275.15565899, "formData": true, "firstRunAt": -78395259.02723445, "processMissedRuns": "ipsum dolore nostrud occaecat", "repeatUnit": "ex sed", "repeatFrequency": -79143445, "repeatInterval": -80477160.09436226, "_id": 21582462, "formId": -13495604 }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "4fde8898ccb067ccdf93e98e", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "64b809a98b648fff509b249a", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 26743163, "migrationVersion": 49604408, "createdBy": "qui", "created": "1975-08-08T08:24:28.48Z", "lastUpdatedBy": "in Lorem do dolore nisi", "lastUpdated": "1971-12-03T00:56:41.319Z", "formSchemaHash": null }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "8afa32f950b83b64d1ff9611", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "705e88c95964f3af10040fc3", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 66590828, "createdBy": null, "created": "1980-04-11T14:22:24.882Z", "lastUpdatedBy": "ullamco exercitation adipisicing elit", "lastUpdated": "2011-04-19T20:10:45.535Z", "formSchemaHash": "dolore in consequat eu" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "32aa461458e74863c26bb663", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "2e0badae6941a42b39926449", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -78285334, "createdBy": "ut dolor ex ipsum", "created": "1991-02-21T18:21:26.191Z", "lastUpdatedBy": "Ut in qui", "lastUpdated": "2022-06-14T02:51:00.32Z", "formSchemaHash": null } ], "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": "418a65b2b8a8133e597afbc2", "lastExecuted": null, "migrationVersion": -63603858, "createdBy": "Pronghorn", "created": "1977-04-09T20:08:02.418Z", "lastUpdatedBy": "17ef6cad710d997500ff7ff6", "lastUpdated": "2010-12-21T12:22:32.421Z", "_id": "df55c631ac7880ef5464b040" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "c9c22f29e8e7c149724bd259", "lastExecuted": 51054740, "migrationVersion": 31541330, "createdBy": "Pronghorn", "created": "1984-10-01T11:40:11.298Z", "lastUpdatedBy": "87a564eb2fbb36a385c28643", "lastUpdated": "1978-05-26T10:00:24.22Z", "_id": "69b04e4a30786a9e5cc00217" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "541879c9c92e4a2c4f009d2c", "lastExecuted": null, "migrationVersion": -61228101, "createdBy": "4ccce640dd442cb1471314a2", "created": "2012-03-11T11:54:17.637Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2008-03-14T01:25:35.162Z", "_id": "ea17a2ea3c6796435519a1e7" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "c3ff42d4bab986758b158fe4", "lastExecuted": null, "migrationVersion": 61640550, "createdBy": "Pronghorn", "created": "1961-10-27T13:36:33.893Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2015-08-22T17:59:24.541Z", "_id": "c4d86cfb7318e9d45357f51c" } } ] }
{ "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" } } } ] } } } } } } ] }