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": "manual",
"enabled": false,
"actionType": "automations",
"actionId": "b796b017109a9e4fcdc03ef1",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"_id": "f2bba4c29e64368721d88c8f",
"formId": "myCoolDocumentName",
"description": "Some helpful information about the document",
"lastExecuted": 65441254,
"migrationVersion": 83608390,
"createdBy": "mollit elit",
"created": "2010-06-10T12:04:10.359Z",
"lastUpdatedBy": null,
"lastUpdated": "1969-03-01T13:20:25.49Z",
"formSchemaHash": "incididunt cupidatat sed id nisi",
"legacyWrapper": true
},
{
"name": 97408529,
"type": "incididunt ut magna nulla",
"enabled": true,
"actionType": 63931238.25575438,
"actionId": false,
"formData": "in fugiat consequat irure magna",
"firstRunAt": false,
"processMissedRuns": "aute",
"repeatUnit": -33321071,
"repeatFrequency": -54200003.48811529,
"repeatInterval": -64689174.333875954,
"_id": "sint",
"formId": true
},
{
"name": "myCoolDocumentName",
"type": "manual",
"enabled": true,
"actionType": "automations",
"actionId": "7c43c787506e1cb4c310f770",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"_id": "62a5c37e2bd971af198baf5c",
"formId": null,
"description": "Some helpful information about the document",
"lastExecuted": 2421434,
"migrationVersion": -12183893,
"createdBy": "reprehenderit et",
"created": "2017-07-21T22:53:58.046Z",
"lastUpdatedBy": "labore",
"lastUpdated": "1983-03-03T19:07:07.724Z",
"formSchemaHash": "reprehenderit elit anim",
"legacyWrapper": false
}
],
"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": "dc5003e3d1c5b90d0e1eb614",
"lastExecuted": 23947991,
"migrationVersion": -63621324,
"createdBy": "3460ae8951924d7fda8c2adb",
"created": "1993-11-16T12:33:42.774Z",
"lastUpdatedBy": "83b5196d6aae19db160b4302",
"lastUpdated": "2015-05-07T09:11:24.972Z",
"_id": "a3877fcba63c92d77c5a2e5a"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "b24792801ec706844ed4f6bd",
"lastExecuted": 37865138,
"migrationVersion": 13883847,
"createdBy": "Pronghorn",
"created": "2008-05-01T16:55:54.578Z",
"lastUpdatedBy": "0c804d2f08d21b5e14f4ab62",
"lastUpdated": "1961-07-25T14:15:42.271Z",
"_id": "b97af3d2a2320d55892889c4"
}
}
]
}