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": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "ec613c0c9437b147927170ed", "source": "cillum pariatur", "topic": "mollit", "_id": "479bda8a243d30aa04997dd6", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 22889321, "migrationVersion": 81703656, "legacyWrapper": true, "createdBy": "amet occaecat sunt", "created": "1977-12-08T17:39:19.676Z", "lastUpdatedBy": "in aute ad", "lastUpdated": "1961-07-18T05:04:50.476Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "d6ec79d919fcd66fbf1cf601", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "846176d51db5c3a35d0a6213", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 14304135, "createdBy": "id adipisicing in sunt", "created": "1946-08-24T09:43:57.938Z", "lastUpdatedBy": "mollit aute reprehenderit consequat", "lastUpdated": "1951-10-26T01:00:42.468Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "93c75d7b381b2f58ee9aced3", "verb": "POST", "routeName": "CBKZ9F", "schema": null, "_id": "44eb00269baeea7c49b85f2a", "description": "Some helpful information about the document", "lastExecuted": 70448935, "migrationVersion": 49523437, "createdBy": "ut", "created": "2001-07-28T03:25:22.547Z", "lastUpdatedBy": "amet voluptate", "lastUpdated": "2022-06-29T10:30:53.572Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "b1c514cd46ea9b25ba9ba2f8", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "327aab27480f6f02816ec44c", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -38425059, "createdBy": null, "created": "1965-10-30T02:30:22.211Z", "lastUpdatedBy": "est", "lastUpdated": "2007-10-03T03:57:02.623Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "23a9aa7bc3e474fb1d1e5116", "source": "reprehenderit", "topic": "qui non incididunt", "schema": null, "_id": "3e10127c6c915a3bc8ebe784", "description": "Some helpful information about the document", "lastExecuted": 10236873, "migrationVersion": 34782557, "legacyWrapper": false, "createdBy": "in", "created": "1968-05-30T17:08:08.198Z", "lastUpdatedBy": null, "lastUpdated": "2008-01-20T01:39:38.458Z" } ], "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": "aac1a85960321b4e7a1d07e7", "lastExecuted": null, "migrationVersion": 14496470, "createdBy": "Pronghorn", "created": "1957-05-12T09:33:59.55Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1973-01-15T18:17:27.91Z", "_id": "f9603bb913a933501096666a" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "19082298bbf917dccdac64c6", "lastExecuted": 7440620, "migrationVersion": 90663240, "createdBy": "Pronghorn", "created": "2002-08-06T18:15:59.603Z", "lastUpdatedBy": "de1b2176ebe2a0801a62718f", "lastUpdated": "1958-06-27T14:26:25.552Z", "_id": "61940745515a74d2ee4b06f0" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "f23da1d440901abd92c5fd5c", "lastExecuted": 46868573, "migrationVersion": 51581947, "createdBy": "Pronghorn", "created": "2023-04-30T22:56:34.806Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2017-12-29T04:36:12.267Z", "_id": "41903caf7d7ad55fcef20692" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "c6998ce5e3294f6b754f4312", "lastExecuted": 43325169, "migrationVersion": -95394603, "createdBy": "Pronghorn", "created": "1948-12-02T06:06:32.672Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1956-05-30T14:46:58.583Z", "_id": "f94127d97d9501c5e499dbb5" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "2ae58fb74510eb776f45600d", "lastExecuted": null, "migrationVersion": 61004918, "createdBy": "aa457fbb090be5c8c2ed1f9a", "created": "2000-01-05T19:27:02.623Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1945-05-21T03:24:04.016Z", "_id": "3553b50a84048a7f2019b669" } } ] }
{ "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" } } } ] } } } } } } ] }