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": "f9738dbb585e6a402a5095a2",
"verb": "POST",
"routeName": "1lxarKgPVpd",
"_id": "98b57f72654d6deca1e87180",
"description": "Some helpful information about the document",
"lastExecuted": 73119806,
"migrationVersion": 51301246,
"createdBy": "sit in",
"created": "2005-03-04T22:50:07.574Z",
"lastUpdatedBy": null,
"lastUpdated": "1959-03-10T21:01:47.14Z"
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "07b25f5f43cd1aa1889e43d6",
"verb": "POST",
"routeName": "b6tY",
"schema": null,
"_id": "35a473917a24f5888650a32f",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -94903839,
"createdBy": "laborum Lorem incididunt",
"created": "2019-08-16T05:33:00.483Z",
"lastUpdatedBy": null,
"lastUpdated": "1995-03-23T19:00:55.195Z"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"enabled": false,
"actionType": "automations",
"actionId": "5e39aaf9532dee2963348331",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"_id": "aaa86156f5003229bbda457d",
"formId": null,
"description": "Some helpful information about the document",
"lastExecuted": 91652326,
"migrationVersion": -47227672,
"createdBy": "nostrud",
"created": "1998-09-17T10:58:26.114Z",
"lastUpdatedBy": null,
"lastUpdated": "1988-10-04T12:26:29.826Z",
"formSchemaHash": null
},
{
"name": 78344502.74466515,
"type": -58754149,
"enabled": 55132348,
"actionType": "amet proident",
"actionId": "id",
"formData": false,
"firstRunAt": false,
"processMissedRuns": -92444460.43151373,
"repeatUnit": -57925836.440482035,
"repeatFrequency": true,
"repeatInterval": 74524155,
"_id": 57329238,
"formId": 63475985
}
],
"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": "316ded37b722db95f5a9c72f",
"lastExecuted": null,
"migrationVersion": 78432502,
"createdBy": "3bb11831e33215f14343fc17",
"created": "1997-08-01T04:22:11.307Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2000-02-04T10:40:53.543Z",
"_id": "3f26759372eabd16abbede62"
}
}
]
}