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": "eventSystem",
"enabled": true,
"actionType": "automations",
"actionId": "f45353bac7423c805a472239",
"source": "amet incididunt non consequat veniam",
"topic": "in",
"_id": "a4a48e0b47f019607f48d6b6",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 15052239,
"legacyWrapper": true,
"createdBy": null,
"created": "2014-06-09T00:54:41.776Z",
"lastUpdatedBy": "est ea enim",
"lastUpdated": "1990-12-24T22:29:00.985Z"
}
],
"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": "6f2daff6736467269ee28d46",
"lastExecuted": 80833518,
"migrationVersion": 12485601,
"createdBy": "Pronghorn",
"created": "1949-11-16T19:17:12.939Z",
"lastUpdatedBy": "7e67cd1c9751cd5d47e2f810",
"lastUpdated": "2014-03-16T15:32:45.073Z",
"_id": "2e551adc18e2e485d04f6720"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "47b08fc17190341a78b808c0",
"lastExecuted": null,
"migrationVersion": 40069338,
"createdBy": "b740d110c1723c6bc0c1a85c",
"created": "2019-01-27T06:58:40.561Z",
"lastUpdatedBy": "892e7a36984309658d70ed06",
"lastUpdated": "1952-03-13T16:24:05.959Z",
"_id": "8d11bf91e58ae906f41665ed"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "6a6dc6b0eb223d32eb4424bb",
"lastExecuted": null,
"migrationVersion": -7160084,
"createdBy": "Pronghorn",
"created": "1998-05-05T07:42:09.358Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1973-07-22T19:03:23.864Z",
"_id": "62bba433382346142c4693c7"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "fdc53cb4b2e9e3ca3b835e07",
"lastExecuted": 63438281,
"migrationVersion": -6495985,
"createdBy": "e46cb3113c891fcdec178745",
"created": "1974-06-20T03:26:05.414Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1975-09-05T03:47:56.99Z",
"_id": "c74755c0d24fe398c3d3bf99"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "0c855e601c260f99d307f072",
"lastExecuted": 85922408,
"migrationVersion": -90771991,
"createdBy": "Pronghorn",
"created": "1968-12-28T14:17:59.498Z",
"lastUpdatedBy": "514254fcc48155fc2f8171e2",
"lastUpdated": "1967-12-19T09:01:19.107Z",
"_id": "966d90ff292f836846f3adb0"
}
}
]
}