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": "manual", "enabled": false, "actionType": "automations", "actionId": "53c4165a62bfa3dd47b2e546", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "28b4a064c72dc559d5782c90", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 14700709, "createdBy": null, "created": "1959-12-05T16:24:19.075Z", "lastUpdatedBy": null, "lastUpdated": "1997-12-19T03:35:05.453Z", "formSchemaHash": "Excepteur et laborum qui pariatur", "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "7ec27249e2af1d761ab74001", "source": "sunt sint officia nisi ea", "topic": "ipsum dolore Lorem consectetur dolore", "_id": "ebcf129b0f200339e620ad30", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 95740111, "migrationVersion": 4450401, "legacyWrapper": true, "createdBy": null, "created": "2023-09-06T17:07:14.164Z", "lastUpdatedBy": "exercitation ea", "lastUpdated": "2015-07-02T12:58:55.366Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "59cab37f242872037bda2228", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "236af75d6538999b2b103425", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 31549972, "migrationVersion": 28022467, "createdBy": "sed laboris", "created": "1991-11-16T09:48:27.187Z", "lastUpdatedBy": "ex esse sint elit id", "lastUpdated": "1979-12-05T17:09:55.417Z", "formSchemaHash": "aliquip est", "legacyWrapper": true } ], "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 created the requested item", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "1f0f55516f25880d616a28e2", "lastExecuted": null, "migrationVersion": -32306431, "createdBy": "Pronghorn", "created": "2014-01-30T20:36:06.159Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1988-12-24T22:16:28.942Z", "_id": "ca31f2c5a93016055e4d7885" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "b12f5b6ff09d95cb6e50e9e6", "lastExecuted": 91783796, "migrationVersion": 15161992, "createdBy": "Pronghorn", "created": "1960-12-07T09:45:16.193Z", "lastUpdatedBy": "755804feb228c9f54fe7fc59", "lastUpdated": "1950-09-22T13:16:18.201Z", "_id": "69fe8f10ed7c02058691f4d0" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "216ab4b2d50405252c3bbb31", "lastExecuted": null, "migrationVersion": 74302658, "createdBy": "Pronghorn", "created": "1953-12-23T21:02:54.258Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1992-01-11T00:22:12.82Z", "_id": "d970c6f201107b9be0d8fb61" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "119148ae348520e111d629d1", "lastExecuted": 85318548, "migrationVersion": 79861798, "createdBy": "02a26568f751cd72eb1cb334", "created": "1986-01-07T15:22:44.354Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1982-02-04T14:54:22.691Z", "_id": "0cd099adfa1a876678f9994d" } } ] }
{ "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" } } } ] } } } } } } ] }