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": true,
"actionType": "automations",
"actionId": "2d1b7e116805c7d778854086",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"_id": "8db4129ea582e8f660aa28e9",
"formId": null,
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 26394695,
"createdBy": "proident voluptate Duis",
"created": "1973-03-28T12:46:21.469Z",
"lastUpdatedBy": "in",
"lastUpdated": "1967-09-19T20:05:39.315Z",
"formSchemaHash": null,
"legacyWrapper": true
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "b5737121104188ab9e643b78",
"verb": "POST",
"routeName": "e2kRIi80",
"schema": null,
"_id": "7897d291cd1254c98ba5a2ea",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -73861010,
"createdBy": null,
"created": "1992-01-08T22:31:15.825Z",
"lastUpdatedBy": "occaecat Lorem",
"lastUpdated": "1988-07-18T20:25:06.738Z"
}
],
"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": false,
"actionType": "automations",
"actionId": "653ffdecdf489dd714701446",
"lastExecuted": 86520893,
"migrationVersion": -83428145,
"createdBy": "Pronghorn",
"created": "1995-06-10T21:39:56.659Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2015-09-17T16:36:53.971Z",
"_id": "0b6e59b0eaec1cddc4e57acf"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "db56511616110d64ca77a65d",
"lastExecuted": null,
"migrationVersion": -14198603,
"createdBy": "24054edff1b08a92ac5bc2f7",
"created": "1992-08-26T00:32:53.374Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1999-11-22T22:58:07.336Z",
"_id": "68bb919766b21255346ab339"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "51369ca1523f48826c8129c0",
"lastExecuted": null,
"migrationVersion": -52526334,
"createdBy": "Pronghorn",
"created": "2022-01-12T19:48:08.133Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1993-06-27T21:41:04.632Z",
"_id": "c1d6c6a0ecf21d1c82aaffbd"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "5b29b3c3cd454da5f2ba31c5",
"lastExecuted": null,
"migrationVersion": 40316254,
"createdBy": "Pronghorn",
"created": "1999-12-20T20:18:04.508Z",
"lastUpdatedBy": "cb09ff7156b58f025314e7eb",
"lastUpdated": "2010-08-07T09:44:04.759Z",
"_id": "c495dc82b0419f0ab1b39865"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "1bad9c0b6653aac9918c0cf3",
"lastExecuted": null,
"migrationVersion": 80468346,
"createdBy": "dac09781328f63c4c2873786",
"created": "2021-11-26T09:07:31.818Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2011-12-21T13:43:23.186Z",
"_id": "3b14f2012c06d7a7583a4664"
}
}
]
}