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": "in magna",
"type": true,
"enabled": 45079619,
"actionType": "dolore fugiat in aliquip irure",
"actionId": -69184872,
"formData": true,
"firstRunAt": 53028230.92307922,
"processMissedRuns": "reprehenderit elit sed nostrud",
"repeatUnit": 99419329.40950182,
"repeatFrequency": -18174098.55228363,
"repeatInterval": 79744756,
"_id": false,
"formId": "anim irure et ad dolore"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": true,
"actionType": "automations",
"actionId": "9c49e485cf5182393ea85339",
"source": "dolore exercitation ad aliqua dolore",
"topic": "Lorem pariatur id irure cupidatat",
"schema": null,
"_id": "4fe7ea82e8d45dc917a709af",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 59797814,
"legacyWrapper": true,
"createdBy": "proident nisi sit et",
"created": "1977-04-01T23:57:50.931Z",
"lastUpdatedBy": "dolore veniam sint anim Lorem",
"lastUpdated": "2010-09-15T16:18:35.97Z"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "ef83cc435566efb3a5ba80ea",
"source": "culpa esse mollit nisi",
"topic": "culpa non in Excepteur",
"_id": "1215abac22450f3306264494",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 62459896,
"legacyWrapper": true,
"createdBy": null,
"created": "1954-08-03T10:39:16.406Z",
"lastUpdatedBy": null,
"lastUpdated": "1967-06-01T06:10:50.858Z"
},
{
"title": "triggers"
},
{
"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": "132ecfdde1f4d7de18425ccd",
"lastExecuted": null,
"migrationVersion": -25643617,
"createdBy": "Pronghorn",
"created": "1997-01-21T16:09:47.535Z",
"lastUpdatedBy": "75594f62e3e6733f79f4f0d1",
"lastUpdated": "1993-10-30T01:22:45.596Z",
"_id": "fe7bc0a9d497275cea0748f8"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "564b609f0dad68a636e4613a",
"lastExecuted": null,
"migrationVersion": 23821680,
"createdBy": "Pronghorn",
"created": "1978-10-10T09:28:16.768Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1973-08-29T02:45:53.896Z",
"_id": "ffb1e2150e2d3e2a6d05e561"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "ab9fed3cb3c0c3adb3c0b702",
"lastExecuted": 43510747,
"migrationVersion": -53251668,
"createdBy": "Pronghorn",
"created": "1951-03-11T21:37:51.643Z",
"lastUpdatedBy": "10c68e4d2d2255d9e3e4c6cb",
"lastUpdated": "1983-02-08T17:21:01.435Z",
"_id": "867f30aae99e3ab21c141720"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "ebaeb5957f8ed35c2ac88bc6",
"lastExecuted": 93067622,
"migrationVersion": -48520583,
"createdBy": "668a7241519d1251fc1818b4",
"created": "1977-07-13T18:56:52.384Z",
"lastUpdatedBy": "47c1dcc3ecfc50c127652f74",
"lastUpdated": "1996-09-17T22:45:06.991Z",
"_id": "d47035fb697912e51aa170b1"
}
}
]
}