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": 43282707, "type": true, "enabled": false, "actionType": -95809557.74057242, "actionId": "nisi id adipisicing proident", "formData": "eiusmod incididunt", "firstRunAt": "laboris occaecat aute id", "processMissedRuns": -52629582.598840676, "repeatUnit": -2009388, "repeatFrequency": -22863972.80607803, "repeatInterval": 24967018.932042435, "_id": -46895495, "formId": "reprehenderit" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "6f6e64642076d2e658e39e38", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "1e573aecede7881c7c63ad5e", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 61818130, "createdBy": "id ullamco magna incididunt", "created": "2013-03-08T03:09:04.27Z", "lastUpdatedBy": "eiusmod", "lastUpdated": "2012-06-11T10:10:39.518Z", "formSchemaHash": null }, { "title": "triggers" }, { "title": "triggers" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "7bc6a2ebbeb798c91c8dde4f", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "690918fe73f7b239a4987238", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 23740001, "migrationVersion": 52237669, "createdBy": "nisi fugiat officia", "created": "1998-06-24T12:53:16.68Z", "lastUpdatedBy": "exercitation ullamco in nisi enim", "lastUpdated": "2009-08-27T20:58:20.063Z", "formSchemaHash": "nostrud Lorem" } ], "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": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "4b5500ab2f101e0557ae62dd", "lastExecuted": null, "migrationVersion": 60881546, "createdBy": "Pronghorn", "created": "1973-11-26T07:31:30.337Z", "lastUpdatedBy": "a1c62229a70a14b0cea51abd", "lastUpdated": "1999-08-02T14:53:06.687Z", "_id": "4fa935c84aca44a3cc7c064c" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "079461cc2cec4b1613be3ee2", "lastExecuted": null, "migrationVersion": -79017003, "createdBy": "Pronghorn", "created": "2023-05-20T06:24:19.08Z", "lastUpdatedBy": "f1ea68f551644ab1bb515156", "lastUpdated": "1986-05-11T06:27:05.835Z", "_id": "42b3dbdaf3ec9765d7439fb2" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "28fd12d597078bb7b553a090", "lastExecuted": null, "migrationVersion": -1817474, "createdBy": "Pronghorn", "created": "2009-08-19T13:45:11.569Z", "lastUpdatedBy": "928955b11c457c4a3479b2f6", "lastUpdated": "2021-02-16T01:17:49.399Z", "_id": "3f0b5f8c1cfc3b251f9d5b55" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "a2223cef07e03df981b86a2f", "lastExecuted": null, "migrationVersion": -89282733, "createdBy": "Pronghorn", "created": "1954-03-18T03:55:16.527Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1999-12-13T10:06:04.795Z", "_id": "c5e245961b47e59a423a2d39" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "aaf3b02b03b8c8f6a623dd07", "lastExecuted": 46232517, "migrationVersion": -80336477, "createdBy": "9e87b9fb1f4815bc539c666b", "created": "2015-05-18T00:49:06.914Z", "lastUpdatedBy": "18e779336e14f04ed32d8aa5", "lastUpdated": "2009-12-31T11:52:20.672Z", "_id": "580213a7fd502cc157baf58e" } } ] }
{ "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" } } } ] } } } } } } ] }