Summary
Import Triggers
Description
Import Triggers.
Route
PUT /operations-manager/triggers
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
triggers | array | yes | An array of exported Trigger documents. |
options | object | yes | Optional parameters. |
{ "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "b6d02a7d34cdfd5f88b871ea", "verb": "POST", "routeName": "R", "_id": "73b7cd054ddc903a346ba2a4", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 31201106, "migrationVersion": -11889703, "createdBy": "id sunt anim voluptate proident", "created": "2015-08-16T22:10:07.097Z", "lastUpdatedBy": "est deserunt enim sit et", "lastUpdated": "1951-05-22T00:57:07.126Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "fd42eabc7b3f59e3691a384e", "source": "consequat Duis dolor eu", "topic": "exercitation fugiat incididunt", "schema": null, "_id": "fa7990d5645dd74316f2bee7", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 34815019, "legacyWrapper": true, "createdBy": null, "created": "1983-10-24T20:20:29.471Z", "lastUpdatedBy": "ad proident sunt", "lastUpdated": "2005-11-29T09:57:06.541Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "5ec1fb277832f5b94dc2ad25", "source": "amet voluptate minim dolore", "topic": "aliquip Duis in sint nulla", "schema": null, "_id": "e3fd60deae393f629b4708cb", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 38490387, "legacyWrapper": true, "createdBy": null, "created": "1988-01-29T10:08:22.457Z", "lastUpdatedBy": "enim irure ut eu dolore", "lastUpdated": "1980-05-19T13:21:06.754Z" }, { "name": false, "type": -51315930.9652973, "enabled": 1362048.0538377464, "actionType": 23362621.28375916, "actionId": false, "formData": true, "firstRunAt": "cupidatat in nostrud", "processMissedRuns": "Duis Excepteur culpa veniam", "repeatUnit": false, "repeatFrequency": true, "repeatInterval": true, "_id": -71092756, "formId": "dolor" } ], "options": { "adapterMap": { "old_name": "new_name" } } }
{ "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
Name | Type | Description |
---|---|---|
createdTigger | object | The result of the import operation. |
{ "message": "Successfully imported 3 of 4 documents", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "32d1e1cd62084f0061703c3f", "lastExecuted": null, "migrationVersion": 31443612, "createdBy": "Pronghorn", "created": "1964-06-29T06:01:47.488Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2015-01-06T23:18:59.369Z", "_id": "1dc7d0bf3486c76bf961f7de" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "8875248720f75be43bb12c00", "lastExecuted": 36615195, "migrationVersion": -96090052, "createdBy": "043982a5da29e1c355be536c", "created": "2003-06-11T23:07:59.083Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1979-08-26T10:54:03.231Z", "_id": "e2e9be514f9aa4e421654cf5" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "1b0f2962c239307f7640667a", "lastExecuted": 71122708, "migrationVersion": -10512580, "createdBy": "Pronghorn", "created": "1973-05-10T07:58:34.897Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1958-12-05T17:31:56.03Z", "_id": "6b1e5e8dc9a475ed7f861195" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "1eea086db3ec3031cf10b074", "lastExecuted": 4133150, "migrationVersion": -8063208, "createdBy": "bcb4435668debc4e4ffae683", "created": "1967-02-12T23:37:56.212Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1967-02-04T22:47:33.328Z", "_id": "77796b787fd31abda746547e" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "17ba0248fd653f124a48d8ee", "lastExecuted": 7859405, "migrationVersion": 90793612, "createdBy": "268673e033f38089d5ddcf2e", "created": "2004-01-07T09:53:35.756Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2001-05-30T12:55:15.531Z", "_id": "4667fc0651814612e048b2fa" } } ] }
{ "title": "createdTigger", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "allOf": [ { "$ref": "trigger-common#/definitions/commonFields" }, { "$ref": "common#/definitions/metadataFields" }, { "type": "object", "properties": { "_id": { "$ref": "common#/definitions/ObjectIdLikeString" } } } ] } } } } } } ] }