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": "consectetur velit",
"type": "Ut ut",
"enabled": -87322081,
"actionType": "in dolore ad",
"actionId": true,
"formData": false,
"firstRunAt": -47844326.88825051,
"processMissedRuns": "nostrud pariatur",
"repeatUnit": false,
"repeatFrequency": 9886278.943709567,
"repeatInterval": 82344651.26149946,
"_id": -37139654.73831764,
"formId": 88046861.71860051
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "20284858236b2b53bce53b8c",
"source": "minim",
"topic": "dolor ipsum nulla adipisicing ut",
"_id": "5dba466e884ba0ee947c8d1d",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 42441252,
"migrationVersion": 98348579,
"legacyWrapper": true,
"createdBy": "tempor",
"created": "2002-04-01T01:03:45.463Z",
"lastUpdatedBy": "proident",
"lastUpdated": "1953-04-09T23:16:34.749Z"
},
{
"name": -3252457.857066199,
"type": true,
"enabled": -1514065,
"actionType": "dolore aliqua",
"actionId": "laboris",
"formData": false,
"firstRunAt": "non aliquip",
"processMissedRuns": -27355564.053291604,
"repeatUnit": -74198848,
"repeatFrequency": -95275562.35365324,
"repeatInterval": true,
"_id": false,
"formId": 12808880
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "189cedc2efb7c6fb09d9f030",
"source": "consectetur",
"topic": "eu do in pariatur",
"schema": null,
"_id": "7becc0d259a26b9584c198a3",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 99447560,
"migrationVersion": 88120005,
"legacyWrapper": true,
"createdBy": "eiusmod Lorem voluptate eu ullamco",
"created": "2019-01-19T20:44:12.312Z",
"lastUpdatedBy": "fugiat",
"lastUpdated": "1982-04-21T05:21:11.0Z"
},
{
"title": "triggers"
}
],
"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 imported 3 of 4 documents",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "d33c06e2dde01f1fa0cfe48e",
"lastExecuted": 17835916,
"migrationVersion": -50802726,
"createdBy": "Pronghorn",
"created": "2006-07-27T20:09:41.886Z",
"lastUpdatedBy": "8f279bcec753514267026c42",
"lastUpdated": "1955-04-27T00:53:24.08Z",
"_id": "7c8c5a918a251932df80785f"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "1c00b8c82876983284fb7281",
"lastExecuted": null,
"migrationVersion": 62233692,
"createdBy": "e3433a7c399751210c1872c8",
"created": "2001-11-28T15:32:33.416Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1995-05-24T21:40:29.45Z",
"_id": "fa6e2724517837d166236511"
}
}
]
}