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": false,
"actionType": "automations",
"actionId": "926269bd23872099601bfec4",
"verb": "POST",
"routeName": "Mlks6kGUgTL",
"_id": "25cfcbf2573fe01be7a5dd8d",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 11191998,
"migrationVersion": -17801416,
"createdBy": null,
"created": "2023-06-14T18:13:56.338Z",
"lastUpdatedBy": "quis dolore",
"lastUpdated": "1984-05-29T22:34:28.878Z"
}
],
"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": "6b9948c8798157a4f072f172",
"lastExecuted": null,
"migrationVersion": 9742684,
"createdBy": "Pronghorn",
"created": "1947-01-25T23:17:51.168Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1946-08-08T06:04:20.505Z",
"_id": "522df408a4a28b805be277f3"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "69f184d2ae395bdd29b1eae8",
"lastExecuted": null,
"migrationVersion": 77271532,
"createdBy": "7e0e9828a6fa9147870198fa",
"created": "1983-04-01T12:07:21.72Z",
"lastUpdatedBy": "f4952226004c7328dc7df733",
"lastUpdated": "1966-11-17T15:13:14.552Z",
"_id": "8054a0270f60876177c1ca93"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "9dd62b078e3c22d9b07f4dd5",
"lastExecuted": 57264808,
"migrationVersion": 59998175,
"createdBy": "Pronghorn",
"created": "2013-10-20T21:51:21.143Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1991-12-25T13:16:58.714Z",
"_id": "5d9472445850757b6a0cffb2"
}
}
]
}