Summary
Import Triggers
Description
Import Triggers.
Route
PUT /operations-manager/triggers
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
triggers |
array |
yes |
An array of exported Trigger documents. |
options |
object |
yes |
Optional parameters. |
Copied to Clipboard
{
"triggers": [
{
"name": "myCoolDocumentName",
"type": "manual",
"enabled": false,
"actionType": "automations",
"actionId": "b80419a30ce7a394984ced7e",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"_id": "7e4cb4417340cee87a939f74",
"formId": "myCoolDocumentName",
"description": "Some helpful information about the document",
"lastExecuted": 82972317,
"migrationVersion": -76780305,
"createdBy": "amet enim veniam deserunt",
"created": "2016-05-23T06:50:51.64Z",
"lastUpdatedBy": "id velit",
"lastUpdated": "1995-07-26T09:02:50.11Z",
"formSchemaHash": "quis deserunt reprehenderit"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "5c3c0461397f2bd52f899a16",
"source": "cillum tempor velit",
"topic": "id Duis dolore",
"_id": "d4b97053de732c114f86223b",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -32176796,
"createdBy": "laboris",
"created": "2021-12-16T01:51:21.066Z",
"lastUpdatedBy": null,
"lastUpdated": "1965-12-07T18:21:35.644Z"
}
],
"options": {
"adapterMap": {
"old_name": "new_name"
}
}
}
Copied to Clipboard
{
"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
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
The result of the import operation. |
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "2abc0388ee88afac53fc1e4f",
"lastExecuted": null,
"migrationVersion": 57103033,
"createdBy": "edb37223f3727834e24fa062",
"created": "2015-10-03T03:55:14.451Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1982-09-23T15:38:57.171Z",
"_id": "9a45fa9386ae3aa56352d531"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "2e0ea7b430f37fe2e8da4aac",
"lastExecuted": 9751517,
"migrationVersion": -61527718,
"createdBy": "d5fe3b8af60c05e72296a4c9",
"created": "1992-07-16T11:20:56.005Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2025-01-01T10:39:16.939Z",
"_id": "963e43f332f594496432c6c4"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "ff0f6b2e9a8cf0d38aab6011",
"lastExecuted": null,
"migrationVersion": 21814994,
"createdBy": "Pronghorn",
"created": "1986-10-08T14:35:37.68Z",
"lastUpdatedBy": "0a6cb2e0d4537dfd1554d0de",
"lastUpdated": "1996-06-10T07:19:42.339Z",
"_id": "aecd6604428895cae8f7c0c4"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "eb27e98a4cca6688954b2b2b",
"lastExecuted": 40550206,
"migrationVersion": -7624147,
"createdBy": "c040c24fd65f594e651fbd0d",
"created": "1979-10-16T18:20:59.641Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1975-10-03T05:25:39.822Z",
"_id": "b424d08310b806dd5f69d6f5"
}
}
]
}