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": "4e1dec7cf78147e2aa2b57c6", "verb": "POST", "routeName": "Pu", "schema": null, "_id": "757faff352537239a0c49456", "description": "Some helpful information about the document", "lastExecuted": 59848970, "migrationVersion": 21328859, "createdBy": null, "created": "1960-11-06T12:22:44.462Z", "lastUpdatedBy": "cillum do velit", "lastUpdated": "1967-11-05T21:58:33.982Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "a83d36109a1ac5b35f83bac4", "verb": "POST", "routeName": "oVQdz9o", "schema": null, "_id": "13b97fc4cb312ff6ee23be4e", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 17137591, "createdBy": "ipsum minim Excepteur voluptate", "created": "1979-10-29T08:55:55.688Z", "lastUpdatedBy": "nulla amet", "lastUpdated": "1991-02-17T15:33:59.226Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "7ab84c8b854da485e80c6fd2", "verb": "POST", "routeName": "NkquW9QEt", "_id": "a4f42ca6874c173590c882bc", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 53781625, "migrationVersion": -51516568, "createdBy": "sit enim elit nisi est", "created": "2000-03-05T19:40:02.753Z", "lastUpdatedBy": null, "lastUpdated": "1987-03-29T18:38:12.791Z" } ], "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": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "e1ed865814f050db0dce191d", "lastExecuted": null, "migrationVersion": 54624432, "createdBy": "Pronghorn", "created": "1997-06-06T12:39:33.752Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2005-10-03T19:08:45.89Z", "_id": "a4252867fc9adaa6701b97fa" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "d0307d3ee22a38296bd8b130", "lastExecuted": null, "migrationVersion": -96346930, "createdBy": "d8af5c2f799db824ab37ae33", "created": "2003-11-19T21:33:09.814Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1993-12-22T09:14:42.055Z", "_id": "b5e58e234346aeb033ecfd9f" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "5695d876f2b69c6cb830f77f", "lastExecuted": 55297959, "migrationVersion": -50342374, "createdBy": "3a70b40909e9dfecdff242ee", "created": "2013-01-16T16:34:50.323Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1982-02-19T18:10:52.58Z", "_id": "4a561734646d17298d61f222" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "92ed65d2f946862d80a8414a", "lastExecuted": 58461024, "migrationVersion": -5848551, "createdBy": "16dbda6f6e2fe4283972216f", "created": "2021-09-10T21:44:34.899Z", "lastUpdatedBy": "a57c460c2b6e92e3c4d771a7", "lastUpdated": "1973-05-21T11:04:32.319Z", "_id": "3ec885ff960457e76dbffc2b" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "8a16686e88c02ff397b246ee", "lastExecuted": null, "migrationVersion": 63221589, "createdBy": "5f1052cc9e2e5aa205569477", "created": "2011-08-18T05:36:06.89Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2000-07-22T21:22:39.049Z", "_id": "1255cc76840a54149551a034" } } ] }
{ "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" } } } ] } } } } } } ] }