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": "3d9981c4d120356f4810b74d",
"verb": "POST",
"routeName": "F1QZZmJ1x",
"schema": null,
"_id": "70e23654f3fa4abe250ff518",
"description": "Some helpful information about the document",
"lastExecuted": 64327288,
"migrationVersion": 29694725,
"createdBy": null,
"created": "2003-07-24T05:12:59.938Z",
"lastUpdatedBy": null,
"lastUpdated": "1973-07-11T20:26:35.068Z"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"enabled": true,
"actionType": "automations",
"actionId": "d121bc106225e983ae2890f4",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"_id": "3f3cdeb6f0487e7022fb1cfc",
"formId": "myCoolDocumentName",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -51432594,
"createdBy": "consectetur et veniam do",
"created": "1999-06-16T12:03:12.621Z",
"lastUpdatedBy": null,
"lastUpdated": "2003-06-02T14:34:21.129Z",
"formSchemaHash": null
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "1418e9af046008788da6b0d6",
"verb": "POST",
"routeName": "g4mQgaqtfMg",
"schema": null,
"_id": "8fa85db6b57072909cfa7b48",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -98189141,
"createdBy": null,
"created": "1967-10-11T20:16:53.101Z",
"lastUpdatedBy": "officia",
"lastUpdated": "2011-01-21T20:28:56.873Z"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "8911d511db434f79d9fa7cd6",
"source": "et",
"topic": "laborum velit in",
"schema": null,
"_id": "52143eb8bd85bdce304286de",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -36903783,
"createdBy": "quis amet adipisicing occaecat enim",
"created": "2022-12-11T02:03:42.592Z",
"lastUpdatedBy": "dolor in officia",
"lastUpdated": "2017-12-18T23:44:29.103Z"
}
],
"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 created the requested item",
"data": [
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "70e8e114c7f469b43fdad660",
"lastExecuted": null,
"migrationVersion": 36985871,
"createdBy": "Pronghorn",
"created": "1992-01-25T09:07:40.204Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2012-08-16T23:25:57.169Z",
"_id": "642c89be7e23ec9adb709c1d"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "4079a1a3c31aad6f4f77d60f",
"lastExecuted": null,
"migrationVersion": 87844944,
"createdBy": "5737d9df5c13edd0cce064ab",
"created": "2013-05-14T13:50:56.199Z",
"lastUpdatedBy": "71ea93961b56a684f2aff20b",
"lastUpdated": "1979-01-05T21:25:11.04Z",
"_id": "e519242a04b5875aee0e3827"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "59ec1aab12268f82ac2f4d2d",
"lastExecuted": 6679806,
"migrationVersion": 69209194,
"createdBy": "949961d18d08acad256ca08c",
"created": "1945-07-09T12:46:32.779Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1960-10-10T21:37:25.357Z",
"_id": "ec35e464b247522c36877824"
}
}
]
}