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": true, "actionType": "automations", "actionId": "d3e5b7de0cfd2a839281efa6", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "6c10ffb6751d472fe8bb02c8", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -77872565, "createdBy": "ea aute dolor deserunt", "created": "1995-09-13T02:04:00.381Z", "lastUpdatedBy": null, "lastUpdated": "1946-04-29T13:02:50.155Z", "formSchemaHash": "laboris" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "f2fb926121dacc08110cbdda", "source": "labore", "topic": "quis", "_id": "90c4c170ece485ccec6e34b6", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -90095338, "createdBy": "laboris qui", "created": "2009-05-15T18:54:46.678Z", "lastUpdatedBy": "in occaecat enim", "lastUpdated": "1951-05-07T03:59:55.112Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "b8037d17a09f9210aeb307f5", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "b3df23498e9a9f6450221809", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 68711649, "migrationVersion": -46268394, "createdBy": null, "created": "1984-05-22T00:05:59.887Z", "lastUpdatedBy": "est", "lastUpdated": "1994-10-12T04:02:56.274Z", "formSchemaHash": null } ], "options": { "adapterMap": { "staging": "production" } } }
{ "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": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "7c14ffe923788f523d66e073", "lastExecuted": null, "migrationVersion": -22509394, "createdBy": "cd84d5c34241292f2c69d31c", "created": "1945-05-07T02:35:30.506Z", "lastUpdatedBy": "d39abeaa8e3d9041e58b89ac", "lastUpdated": "2013-10-06T16:49:03.693Z", "_id": "c4fad61e1e4f1d5c747285ff" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "3b5f8fa701de1feeeaa3514e", "lastExecuted": 14363667, "migrationVersion": -11202849, "createdBy": "c3af8171eca65ca010e1de49", "created": "1973-12-17T19:24:20.347Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1992-11-15T16:03:21.418Z", "_id": "a3498c83580b048e6fd73550" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "3c9095961a47817f3fecf84c", "lastExecuted": 30751198, "migrationVersion": 16465098, "createdBy": "cc49494e4e568cc69760863b", "created": "2003-09-06T03:37:59.378Z", "lastUpdatedBy": "d1c8c4bf9b08dc2e5572f965", "lastUpdated": "1951-02-23T19:13:10.877Z", "_id": "157df02977ac02d5ffbb10b9" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "7f2959a501b2979c3ec3d265", "lastExecuted": 70495273, "migrationVersion": -74704634, "createdBy": "b8019c980c3dd872e15cf9ac", "created": "1953-10-19T12:03:46.103Z", "lastUpdatedBy": "a544b2142009a2af8656d2c7", "lastUpdated": "1979-03-11T07:10:34.972Z", "_id": "bf4d05a4c966075bc22715be" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "c67b1c8c3104f728c78d0de3", "lastExecuted": 10628948, "migrationVersion": 861031, "createdBy": "8a516d36b92d962819c1f0c7", "created": "2006-07-25T09:26:14.101Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1964-10-22T04:10:07.004Z", "_id": "48a3c88459fdcbcfac57fa25" } } ] }
{ "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" } } } ] } } } } } } ] }