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": "d61c937d81790b14b46dbcc3",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"_id": "c538c723e704464b4fed2d7f",
"formId": null,
"description": "Some helpful information about the document",
"lastExecuted": 35500814,
"migrationVersion": 74841952,
"createdBy": null,
"created": "1990-01-30T08:12:57.09Z",
"lastUpdatedBy": null,
"lastUpdated": "2011-06-23T12:34:53.192Z",
"formSchemaHash": "enim",
"legacyWrapper": true
},
{
"name": "myCoolDocumentName",
"type": "manual",
"enabled": false,
"actionType": "automations",
"actionId": "43ec47d9a2e40846b72e58e5",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"_id": "b3cf85d5a125f12d46fc7ad9",
"formId": "myCoolDocumentName",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -18371825,
"createdBy": "veniam in",
"created": "1952-05-11T11:36:09.598Z",
"lastUpdatedBy": null,
"lastUpdated": "2021-12-18T15:54:43.5Z",
"formSchemaHash": null,
"legacyWrapper": true
},
{
"name": "myCoolDocumentName",
"type": "manual",
"enabled": true,
"actionType": "automations",
"actionId": "0d5173683bb627d4870ed45a",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"_id": "e19c6823d4c270b22280e760",
"formId": "myCoolDocumentName",
"description": "Some helpful information about the document",
"lastExecuted": 26850546,
"migrationVersion": 44557202,
"createdBy": null,
"created": "2020-12-07T10:16:52.997Z",
"lastUpdatedBy": "ea",
"lastUpdated": "1993-05-22T14:08:51.722Z",
"formSchemaHash": null,
"legacyWrapper": false
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "afb9f544fbcc70b0a1f21f17",
"source": "ad aliquip esse",
"topic": "laborum eiusmod deserunt",
"_id": "87dc9f4df02c4fed98997c28",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 75894703,
"migrationVersion": 92033441,
"legacyWrapper": false,
"createdBy": "enim nostrud veniam tempor",
"created": "1953-04-14T20:55:24.132Z",
"lastUpdatedBy": null,
"lastUpdated": "1958-11-10T14:47:39.492Z"
}
],
"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": "0999b196f4256074ead02f2f",
"lastExecuted": 13976069,
"migrationVersion": -50224795,
"createdBy": "Pronghorn",
"created": "2001-08-24T11:57:56.446Z",
"lastUpdatedBy": "fdbc8960626e5c31908d370d",
"lastUpdated": "1982-03-21T17:31:05.37Z",
"_id": "31551c0a1e58a4a9b7158767"
}
}
]
}