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": true,
"actionType": "automations",
"actionId": "be1d4bf7bcb84c06d28925e1",
"verb": "POST",
"routeName": "aQednvjo",
"schema": null,
"_id": "1b6f3faa47f121606b52d033",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -81811477,
"createdBy": null,
"created": "1974-01-08T01:18:58.055Z",
"lastUpdatedBy": "laborum voluptate amet culpa sunt",
"lastUpdated": "1959-07-09T15:50:28.004Z"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "6f11ef7e8e5034d6533a71c0",
"source": "occaecat",
"topic": "ex commodo aute",
"schema": null,
"_id": "1752a74cff1e488cec59ffc7",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 70775522,
"migrationVersion": 42659955,
"legacyWrapper": false,
"createdBy": null,
"created": "1971-12-22T02:59:36.05Z",
"lastUpdatedBy": "ipsum aliqua sit Lorem mollit",
"lastUpdated": "1994-09-29T05:55:45.04Z"
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "2d73b0b227a7f10902f8df7f",
"verb": "POST",
"routeName": "cmnZ",
"schema": null,
"_id": "ce272e026cef205b28acb154",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 73889718,
"migrationVersion": 53762238,
"createdBy": "cillum ex exercitation mollit anim",
"created": "1964-04-14T12:00:45.122Z",
"lastUpdatedBy": "in laboris anim mollit",
"lastUpdated": "1966-10-07T01:18:04.645Z"
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "d0d28b6d796401b9d64cf31b",
"verb": "POST",
"routeName": "4xExWHW",
"_id": "41f190aef2ef30e0c58cb426",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 13494849,
"migrationVersion": 10703670,
"createdBy": null,
"created": "2019-03-25T06:39:11.895Z",
"lastUpdatedBy": "et ut est in veniam",
"lastUpdated": "2023-07-11T00:51:41.841Z"
},
{
"name": true,
"type": -18958412.60913311,
"enabled": -67075375.093235046,
"actionType": -66490746.61767504,
"actionId": true,
"formData": "elit proident fugiat in",
"firstRunAt": false,
"processMissedRuns": 37268434.50688401,
"repeatUnit": 10344561,
"repeatFrequency": false,
"repeatInterval": -31471699,
"_id": 57824243,
"formId": true
}
],
"options": {
"adapterMap": {
"staging": "production"
}
}
}
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 imported 3 of 4 documents",
"data": [
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "f5af42bb6d71112562d00532",
"lastExecuted": 98478878,
"migrationVersion": -16965499,
"createdBy": "Pronghorn",
"created": "1988-07-26T07:14:42.31Z",
"lastUpdatedBy": "af2645d423360483beb1b704",
"lastUpdated": "2002-08-19T07:38:22.565Z",
"_id": "f312627fa557f8a211e4dee5"
}
}
]
}