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": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "a0bc8a28821091528d09e8ad",
"verb": "POST",
"routeName": "LBHkwzm",
"_id": "dc38c5640f3113b25022e299",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 35526475,
"createdBy": "adipisicing ut",
"created": "2018-12-06T19:54:46.425Z",
"lastUpdatedBy": null,
"lastUpdated": "1994-06-19T17:40:50.878Z"
}
],
"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": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "8cf4cd721563179cd2be220a",
"lastExecuted": null,
"migrationVersion": -8423298,
"createdBy": "bec15a2d778130dfd984b986",
"created": "2024-10-30T20:27:40.805Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2009-03-14T10:35:49.25Z",
"_id": "55d131c055ade51ea232d98f"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "b4e8d5954475a215a4af63d0",
"lastExecuted": null,
"migrationVersion": -92424686,
"createdBy": "5e9c5a89ac6c0899cdbcceb8",
"created": "2012-10-26T22:24:51.464Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1971-01-31T17:07:48.521Z",
"_id": "6636967a23f452a80d216570"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "7edc44b27496d22edfed733a",
"lastExecuted": null,
"migrationVersion": 49290130,
"createdBy": "Pronghorn",
"created": "2012-08-27T00:37:35.003Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1949-10-29T15:37:43.205Z",
"_id": "c3778afb3f09a0d471849b72"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "33c8aa6eb5d55d92725c326b",
"lastExecuted": 88794757,
"migrationVersion": 77769215,
"createdBy": "4f857a01bb6481f0d1301dbe",
"created": "1973-08-30T14:44:03.986Z",
"lastUpdatedBy": "83f9ce951d538e5447c35812",
"lastUpdated": "1958-07-23T16:24:27.761Z",
"_id": "88904b95ab73a326d7899371"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "f77e343e91df333085c188ae",
"lastExecuted": null,
"migrationVersion": 66118638,
"createdBy": "07e82cf0caae7e8f7d397a00",
"created": "2001-07-23T19:30:28.734Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2000-12-25T20:14:28.905Z",
"_id": "6bec588b00b32dcdd86615e5"
}
}
]
}