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": "046576b036233954cc76dda3",
"verb": "POST",
"routeName": "IEhAAw6sR7",
"_id": "9f1de29b6345550c1d5b856d",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 63888005,
"migrationVersion": 73310869,
"createdBy": "sunt adipisicing officia culpa",
"created": "2001-02-10T17:26:32.838Z",
"lastUpdatedBy": null,
"lastUpdated": "1968-09-28T12:02:57.486Z"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"enabled": false,
"actionType": "automations",
"actionId": "e24c8a8cccd012eb8c5d1082",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"_id": "140468e791cea9fd8cce39e6",
"formId": "myCoolDocumentName",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 92498526,
"createdBy": "do enim",
"created": "1969-08-05T20:13:07.374Z",
"lastUpdatedBy": null,
"lastUpdated": "1988-12-05T14:21:12.092Z",
"formSchemaHash": "deserunt Excepteur",
"legacyWrapper": false
}
],
"options": {
"adapterMap": {
"old_name": "new_name"
}
}
}
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": false,
"actionType": "automations",
"actionId": "52ae580a81bbd25b6c612cff",
"lastExecuted": 42966035,
"migrationVersion": -58388690,
"createdBy": "Pronghorn",
"created": "1978-11-26T09:49:03.432Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1949-04-26T07:35:00.854Z",
"_id": "9f31178e9f5c2b0ddb26f2ee"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "826de044f2fc8b53fa39a8b9",
"lastExecuted": null,
"migrationVersion": 8543910,
"createdBy": "Pronghorn",
"created": "2012-08-29T14:02:39.267Z",
"lastUpdatedBy": "bad97e76bada8bef34a6ad9e",
"lastUpdated": "1964-08-01T08:01:47.239Z",
"_id": "8b13da883a3e09809d87f750"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "83fcf934d8bbaa36bda729ef",
"lastExecuted": 34101531,
"migrationVersion": 39014875,
"createdBy": "f36b003ea961e7b2704a73c9",
"created": "1979-10-02T22:50:53.426Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1975-07-24T19:32:42.396Z",
"_id": "e7818432f8fece5e4d7e7842"
}
}
]
}