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": "dolore exercitation",
"type": true,
"enabled": false,
"actionType": true,
"actionId": 79140054,
"formData": 75086438.4038766,
"firstRunAt": true,
"processMissedRuns": -87779904,
"repeatUnit": "proident sit mollit dolore",
"repeatFrequency": "id officia Lorem",
"repeatInterval": "nulla anim culpa in",
"_id": 31908496.76419188,
"formId": 89119721
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": true,
"actionType": "automations",
"actionId": "ab6054a2a0b4973166375697",
"source": "sint do mollit",
"topic": "laboris",
"_id": "bdb3a3e5c518f489144ece53",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 27108353,
"migrationVersion": -46816232,
"legacyWrapper": true,
"createdBy": "Duis laboris quis esse irure",
"created": "1966-09-09T23:48:36.66Z",
"lastUpdatedBy": "consequat sit dolor cillum cupidatat",
"lastUpdated": "2002-12-19T22:15:52.777Z"
},
{
"name": false,
"type": -39243676,
"enabled": true,
"actionType": true,
"actionId": -90753409.03595959,
"formData": "dolor nisi",
"firstRunAt": true,
"processMissedRuns": "laboris in in eiusmod",
"repeatUnit": "Ut irure magna laboris",
"repeatFrequency": "ipsum eiusmod magna id",
"repeatInterval": -52768247.51575435,
"_id": -7527166.212390929,
"formId": -8601279
},
{
"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 created the requested item",
"data": [
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "463e93021fd4231b50895a8a",
"lastExecuted": 71230957,
"migrationVersion": -70075357,
"createdBy": "Pronghorn",
"created": "2021-11-30T05:31:55.857Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2020-06-18T17:59:16.457Z",
"_id": "1a814e84838d3103632cc206"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "3aae0102ed398851af2030d6",
"lastExecuted": null,
"migrationVersion": -55108593,
"createdBy": "Pronghorn",
"created": "2014-03-17T10:25:23.969Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1995-10-18T00:24:51.678Z",
"_id": "81fe7356ed6b8f4e36b595f6"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "b7c8b541eeefb6fe0175f710",
"lastExecuted": 27551651,
"migrationVersion": 62538116,
"createdBy": "Pronghorn",
"created": "1993-02-07T04:45:52.868Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1988-10-24T18:12:09.55Z",
"_id": "2016ee8d09678abcf4409705"
}
}
]
}