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": "9e041e68bd5b0b8642b8864b",
"verb": "POST",
"routeName": "tE",
"schema": null,
"_id": "92ccf17ee36f5ce050102bad",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -29570897,
"createdBy": null,
"created": "1950-01-22T16:31:47.0Z",
"lastUpdatedBy": null,
"lastUpdated": "1954-02-24T00:59:36.802Z"
},
{
"name": false,
"type": "aute",
"enabled": false,
"actionType": false,
"actionId": -66100247,
"formData": false,
"firstRunAt": "ipsum",
"processMissedRuns": 46148526.73686841,
"repeatUnit": 74624747,
"repeatFrequency": 15190557.742067277,
"repeatInterval": -66098786.3906545,
"_id": 92193926,
"formId": false
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "8d3aba7d0bb4a9d08f009803",
"source": "cupidatat reprehenderit",
"topic": "non cillum elit minim",
"_id": "4610fc6a775e418b03fb161c",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 35367231,
"migrationVersion": -96262787,
"legacyWrapper": true,
"createdBy": null,
"created": "1972-11-25T23:45:41.261Z",
"lastUpdatedBy": null,
"lastUpdated": "1976-09-15T21:40:08.092Z"
}
],
"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": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "5c0a74c86c70f2e2283b8ac9",
"lastExecuted": null,
"migrationVersion": -11328196,
"createdBy": "Pronghorn",
"created": "1957-11-28T11:57:50.485Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2017-04-06T03:06:05.077Z",
"_id": "49c8d9d546a8c8802bc50f3f"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "29684315b0c2eeb53e32365a",
"lastExecuted": 66767229,
"migrationVersion": -4440289,
"createdBy": "Pronghorn",
"created": "1972-10-08T20:02:19.525Z",
"lastUpdatedBy": "72c19d5f2fe38d584c1439b2",
"lastUpdated": "1977-02-20T08:48:38.375Z",
"_id": "a35e238353ec3b4ef1789f76"
}
}
]
}