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": true,
"actionType": "automations",
"actionId": "d6e0e8b30ce3c8cf2dd90437",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"_id": "46f386c53aa412c02082d4b9",
"formId": null,
"description": "Some helpful information about the document",
"lastExecuted": 92385153,
"migrationVersion": -59902657,
"createdBy": "labore",
"created": "1984-07-30T13:23:38.598Z",
"lastUpdatedBy": "irure consectetur sit esse",
"lastUpdated": "1962-03-31T00:58:46.722Z",
"formSchemaHash": "magna ullamco"
},
{
"name": false,
"type": -8334902,
"enabled": 11284722.154894978,
"actionType": -8611907,
"actionId": 43817389,
"formData": false,
"firstRunAt": -97588921.92747925,
"processMissedRuns": "Excepteur exercitation nisi Lorem",
"repeatUnit": "officia tempor minim dolore",
"repeatFrequency": 64245798,
"repeatInterval": "aute pariatur in",
"_id": 11268594.12806125,
"formId": 90809773.32804036
},
{
"name": "myCoolDocumentName",
"type": "manual",
"enabled": true,
"actionType": "automations",
"actionId": "fbe2f7bde3444183c575237b",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"_id": "1a7311678fd82f2192bf29a6",
"formId": null,
"description": "Some helpful information about the document",
"lastExecuted": 59875490,
"migrationVersion": -70495829,
"createdBy": null,
"created": "1945-07-22T22:39:16.921Z",
"lastUpdatedBy": null,
"lastUpdated": "1977-01-03T16:08:53.526Z",
"formSchemaHash": null
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "c608d87388997e72e47dc64b",
"verb": "POST",
"routeName": "W",
"schema": null,
"_id": "4c81dfece83de52ec713ce23",
"description": "Some helpful information about the document",
"lastExecuted": 35844196,
"migrationVersion": 30885794,
"createdBy": null,
"created": "1971-03-19T23:16:22.17Z",
"lastUpdatedBy": null,
"lastUpdated": "2008-09-15T02:58:27.949Z"
}
],
"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": true,
"actionType": "automations",
"actionId": "541ec8364740f7f409f11add",
"lastExecuted": 5100894,
"migrationVersion": 66658241,
"createdBy": "b35710c167f85f9fae858a73",
"created": "2003-10-11T09:46:48.536Z",
"lastUpdatedBy": "9ec945241a75f09210f65145",
"lastUpdated": "1946-01-30T01:40:15.88Z",
"_id": "a001f4b777885fe43dfb2327"
}
}
]
}