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": "1b3be2f8b55eca08dcae847b",
"verb": "POST",
"routeName": "hMVyu54B1ne",
"schema": null,
"_id": "3a74bd5f388a55497ce53c21",
"description": "Some helpful information about the document",
"lastExecuted": 17731936,
"migrationVersion": -9218949,
"createdBy": null,
"created": "1992-09-03T11:37:07.4Z",
"lastUpdatedBy": "tempor",
"lastUpdated": "2013-04-16T21:44:00.873Z"
}
],
"options": {
"adapterMap": {
"staging": "production"
}
}
}
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": "16664ee4d343d01ff0bd3f29",
"lastExecuted": null,
"migrationVersion": 13707420,
"createdBy": "8e81508cfde7fa136bab35ef",
"created": "1948-08-02T02:19:55.318Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2021-12-17T01:07:21.547Z",
"_id": "db95ef45e3da1629d055b478"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "7689c5217ea3ea07d819d01d",
"lastExecuted": 11714621,
"migrationVersion": -75380006,
"createdBy": "241ddc19cdfb968743d4ffe2",
"created": "1992-07-24T22:21:45.968Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2023-08-27T02:50:12.145Z",
"_id": "e0c368699eb4a858efd0921c"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "846eddd94b8ba67219bb4f59",
"lastExecuted": 63092401,
"migrationVersion": 73096358,
"createdBy": "36c55e11487e4c2dc0b9b000",
"created": "1987-12-27T03:24:52.831Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1991-12-09T14:52:37.703Z",
"_id": "5cf0e3f7a12459a9b997b3df"
}
}
]
}