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": "c811d76b1054c30f006dbf88",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"_id": "3e582e1eb4ee62571139bfb3",
"formId": null,
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -63435109,
"createdBy": null,
"created": "2024-04-27T02:16:15.813Z",
"lastUpdatedBy": "sed Excepteur sint",
"lastUpdated": "1995-10-21T04:39:04.808Z",
"formSchemaHash": "ullamco incididunt"
}
],
"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": "157edd0f2321348b750d4755",
"lastExecuted": null,
"migrationVersion": -79978396,
"createdBy": "Pronghorn",
"created": "1979-08-28T12:26:01.56Z",
"lastUpdatedBy": "8d9936e7448280f74343da28",
"lastUpdated": "1991-03-07T03:02:18.812Z",
"_id": "4d3d4688cea141b6b74f78bd"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "f8d6e71791ea0f3840651eb9",
"lastExecuted": 19165831,
"migrationVersion": -69372576,
"createdBy": "Pronghorn",
"created": "1983-06-12T14:23:58.363Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2015-05-22T14:06:00.602Z",
"_id": "1d50c1f6c536aa77d190f451"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "ee8ed5fbcfaff46c32c640bd",
"lastExecuted": 2849766,
"migrationVersion": 31411171,
"createdBy": "Pronghorn",
"created": "1960-04-27T05:32:26.664Z",
"lastUpdatedBy": "3633264ca499f54febab9296",
"lastUpdated": "2002-07-22T17:22:54.59Z",
"_id": "8d5e37bbd948afa5ff606ab4"
}
}
]
}