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": false,
"actionType": "automations",
"actionId": "c92e7d9cb6a349fb397559a2",
"source": "velit Excepteur amet",
"topic": "ex laborum amet laboris",
"_id": "b9a2b2417725f1610aa906bd",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 85340466,
"migrationVersion": 98129743,
"legacyWrapper": false,
"createdBy": null,
"created": "1951-11-03T07:26:13.39Z",
"lastUpdatedBy": null,
"lastUpdated": "1961-04-23T16:48:24.622Z"
}
],
"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": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "376414c158e6170366058321",
"lastExecuted": 43654274,
"migrationVersion": 94056676,
"createdBy": "Pronghorn",
"created": "2011-10-29T18:46:02.244Z",
"lastUpdatedBy": "35557d7d04469ea77f50b9a7",
"lastUpdated": "1960-02-22T20:44:36.051Z",
"_id": "9e4301011675f6c4d8aa8cbc"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "1215abcd474ac4693c9a280e",
"lastExecuted": 1958156,
"migrationVersion": -71509812,
"createdBy": "Pronghorn",
"created": "2016-12-24T06:10:34.381Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1976-09-21T02:26:19.883Z",
"_id": "a1516129de49db2050d4875c"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "0723502bc9fb24af6ba6a84e",
"lastExecuted": null,
"migrationVersion": 53255152,
"createdBy": "ce2f43cf1be7e0606adb4748",
"created": "2015-05-20T16:47:23.414Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1966-08-30T17:14:30.138Z",
"_id": "b98e14a3fa8805ddb7e6b637"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "472895fba269f8dc1d0ddc1d",
"lastExecuted": 21361544,
"migrationVersion": -95071190,
"createdBy": "Pronghorn",
"created": "1954-08-28T06:40:19.558Z",
"lastUpdatedBy": "9e24828632b70a4c2d2a8917",
"lastUpdated": "1997-05-28T10:34:35.931Z",
"_id": "cce31608fc1b247d1ccac807"
}
}
]
}