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": "0a2b8717f53a1db44ac5461a",
"source": "ea incididunt",
"topic": "ad cillum",
"_id": "175934b3d47fe09a13ffea29",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -82239787,
"legacyWrapper": false,
"createdBy": "Excepteur ex nisi in",
"created": "1965-05-01T18:07:23.42Z",
"lastUpdatedBy": null,
"lastUpdated": "1988-05-09T13:09:12.357Z"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": true,
"actionType": "automations",
"actionId": "cf15908c497732cf52a8057a",
"source": "ullamco Ut ex",
"topic": "mollit elit cupidatat et",
"schema": null,
"_id": "176d39746fcf4a7e304d4c8b",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -93029659,
"legacyWrapper": true,
"createdBy": null,
"created": "2008-03-24T19:28:05.051Z",
"lastUpdatedBy": "occaecat et",
"lastUpdated": "2018-01-19T04:39:06.325Z"
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "ff76d341c65938ee9a57baa7",
"verb": "POST",
"routeName": "XZ",
"schema": null,
"_id": "f1edb01fa2b2d0a4fdb51bf8",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 81339988,
"migrationVersion": -23165044,
"createdBy": "Ut",
"created": "2013-07-03T20:32:06.16Z",
"lastUpdatedBy": "sit pariatur ut et",
"lastUpdated": "1946-06-25T17:24:46.865Z"
}
],
"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 created the requested item",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "162cc70a9a2d657c13393311",
"lastExecuted": 38830151,
"migrationVersion": 3640598,
"createdBy": "Pronghorn",
"created": "1979-12-26T22:22:13.939Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1978-08-26T18:25:48.605Z",
"_id": "6ea629b90540bb170c4548e9"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "162f514c5e005b3e89dc7de6",
"lastExecuted": null,
"migrationVersion": 56352745,
"createdBy": "8bb44ae1c99428fd7a118646",
"created": "2013-01-27T08:30:37.325Z",
"lastUpdatedBy": "520e74a1b6b3425858e718c4",
"lastUpdated": "2013-01-15T21:39:58.69Z",
"_id": "7b96927194444447170389cc"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "380498c55d5fde334eb71641",
"lastExecuted": null,
"migrationVersion": 8911405,
"createdBy": "Pronghorn",
"created": "1951-08-30T06:36:57.47Z",
"lastUpdatedBy": "3130d476191cafddce9fae2b",
"lastUpdated": "1998-11-12T19:45:56.409Z",
"_id": "82cffab4e8422c4ba4994137"
}
}
]
}