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": "13ef0df81f48ac43418ea6bc",
"verb": "POST",
"routeName": "Um42",
"schema": null,
"_id": "9dac490ce7dccbb4154787d9",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 99707436,
"createdBy": "nulla mollit dolor exercitation ex",
"created": "1986-02-18T16:44:43.431Z",
"lastUpdatedBy": "occaecat esse dolore nisi",
"lastUpdated": "1954-06-08T23:17:02.012Z"
}
],
"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": true,
"actionType": "automations",
"actionId": "71ca8155e40f9f6e581aa752",
"lastExecuted": 45229881,
"migrationVersion": -6537819,
"createdBy": "Pronghorn",
"created": "1950-10-16T15:40:39.007Z",
"lastUpdatedBy": "9fd2ac773a3312d8778eef4a",
"lastUpdated": "2013-12-06T10:39:59.953Z",
"_id": "153d28c0436e14a997e73b0b"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "b703680b378ea6c5f3ecb127",
"lastExecuted": 96533350,
"migrationVersion": 91281766,
"createdBy": "Pronghorn",
"created": "1993-09-04T06:12:09.116Z",
"lastUpdatedBy": "3d606b210f3e4c4adde7ba58",
"lastUpdated": "1954-12-16T04:37:18.396Z",
"_id": "6c3591599c4827acc0ca882f"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c47a79ae6ca37f8384b45a99",
"lastExecuted": null,
"migrationVersion": 90964060,
"createdBy": "e5ad652cbdac1a1472b0da85",
"created": "1954-10-06T07:53:11.378Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1947-06-07T12:42:13.811Z",
"_id": "af8acbcb7d1acd41c30d9696"
}
}
]
}