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": "4f292e17b579bc89bfe07e11", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "6903eec702e38af3bf94809e", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 14533306, "createdBy": null, "created": "2009-07-20T00:33:05.177Z", "lastUpdatedBy": null, "lastUpdated": "2006-07-03T14:43:24.756Z", "formSchemaHash": "sit irure" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "ab46400e908af8c8fc5aee47", "source": "sit nostrud do", "topic": "magna ad ut reprehenderit in", "schema": null, "_id": "088cfd01003455099fef2cbe", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 82117799, "migrationVersion": -89055144, "createdBy": "aute esse sit veniam cupidatat", "created": "2020-11-14T02:43:58.581Z", "lastUpdatedBy": null, "lastUpdated": "1948-05-20T05:49:37.926Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "a2592636fd7a5980a465b23a", "source": "eiusmod labore minim", "topic": "aute ullamco consectetur labore", "_id": "2cf0ef1c48d2b98ae7afe9e9", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -81165251, "createdBy": null, "created": "1998-05-05T09:20:05.792Z", "lastUpdatedBy": null, "lastUpdated": "1988-01-15T10:55:14.185Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "537795a7f64c4b99592b6b4e", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "52e4da755b8dfe9bea6163f2", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 85434440, "createdBy": "irure dolor enim sint sed", "created": "1968-08-23T21:21:19.17Z", "lastUpdatedBy": null, "lastUpdated": "1953-05-19T06:13:57.606Z", "formSchemaHash": null }, { "name": false, "type": 5354086.941728875, "enabled": false, "actionType": 84871376, "actionId": 40598938.57200572, "formData": 57041215, "firstRunAt": -56839288, "processMissedRuns": false, "repeatUnit": false, "repeatFrequency": "aliquip", "repeatInterval": 3438003.153515458, "_id": 9936106, "formId": 66156940 } ], "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": "aa05fca19eeda513daab4f71", "lastExecuted": 33001415, "migrationVersion": -29773695, "createdBy": "6e0434f13fc1e1680addf025", "created": "1981-07-17T02:21:50.249Z", "lastUpdatedBy": "387f032d08ea63332a5b1344", "lastUpdated": "1972-08-22T22:41:38.371Z", "_id": "576daf6ca7e5029cecea7edf" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "da4a84395c7e52aa1c86e70b", "lastExecuted": null, "migrationVersion": 72786412, "createdBy": "Pronghorn", "created": "1975-12-28T09:31:49.962Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1973-04-29T01:37:14.605Z", "_id": "c43bab548746ee103b7876bb" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "2afeae68637bbcab56823a0c", "lastExecuted": null, "migrationVersion": -79671155, "createdBy": "Pronghorn", "created": "1973-10-14T08:19:01.037Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1946-11-25T03:54:49.584Z", "_id": "87349810ca1faf9272efbc20" } } ] }
{ "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" } } } ] } } } } } } ] }