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": "endpoint", "enabled": true, "actionType": "automations", "actionId": "024aa211c67afdc9a4003498", "verb": "POST", "routeName": "1jP4QFeQ8r", "schema": null, "_id": "db10d1e9699a42e7b49ab391", "description": "Some helpful information about the document", "lastExecuted": 18917970, "migrationVersion": -79507584, "createdBy": "ullamco", "created": "1972-11-09T23:04:41.206Z", "lastUpdatedBy": null, "lastUpdated": "1986-07-15T07:40:57.719Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "930dfeabfaee6a6404300b59", "verb": "POST", "routeName": "K9", "_id": "5e280d6a2302afdcfe308569", "description": "Some helpful information about the document", "lastExecuted": 60391213, "migrationVersion": 6528126, "createdBy": "ad consectetur nostrud in cupidatat", "created": "1985-07-16T00:48:26.567Z", "lastUpdatedBy": "laboris nisi", "lastUpdated": "1965-12-26T13:11:06.263Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "8243aaf51571135b13d8a419", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "9f34449947fb48fde09aa2b1", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 73480061, "migrationVersion": 5145048, "createdBy": "quis", "created": "2007-12-18T04:48:12.005Z", "lastUpdatedBy": null, "lastUpdated": "1994-06-09T06:55:56.375Z", "formSchemaHash": "dolor non tempor sit mollit", "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "91c143cc5e0bda45ef13fc53", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "e7408a8bc1a0a4604eaedc5f", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 10479011, "migrationVersion": -77521132, "createdBy": "cillum nostrud deserunt adipisicing aliquip", "created": "2004-06-16T10:19:09.476Z", "lastUpdatedBy": "nostrud", "lastUpdated": "1993-12-29T22:14:10.392Z", "formSchemaHash": "officia anim", "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "05c83ebd4df7635f4d224bb5", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "2f68944b273d920b05733e4e", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -5630575, "createdBy": null, "created": "1963-07-02T19:03:10.578Z", "lastUpdatedBy": "labore occaecat laboris", "lastUpdated": "2001-05-08T22:12:38.98Z", "formSchemaHash": null, "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": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "e7662d28c5f2546f33c6ce7b", "lastExecuted": 89295861, "migrationVersion": -66863724, "createdBy": "Pronghorn", "created": "2020-01-20T13:12:56.729Z", "lastUpdatedBy": "5061c3e21c6f7e5b11998c58", "lastUpdated": "2021-03-03T18:26:26.603Z", "_id": "690418217987ac27f44a989d" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "af30227725dd623602483849", "lastExecuted": 63193548, "migrationVersion": -67736966, "createdBy": "Pronghorn", "created": "1997-07-14T02:43:38.039Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1951-04-08T13:34:29.708Z", "_id": "6e144b28f3c79fd51140852b" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "6a16803432f54480724bd29b", "lastExecuted": 22369952, "migrationVersion": -30171935, "createdBy": "Pronghorn", "created": "1987-07-18T16:12:27.293Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1983-05-01T14:29:50.609Z", "_id": "9ed24e4e2caee5bb07f99e1d" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "7f0fa7a385f524f5295ccae7", "lastExecuted": 38548605, "migrationVersion": -77820335, "createdBy": "080af07a56a7903d730938b3", "created": "1952-11-02T22:56:02.162Z", "lastUpdatedBy": "86d4f46c22b58df27b232bb9", "lastUpdated": "1981-09-04T02:24:29.601Z", "_id": "0444251547c917e979d4ee6c" } } ] }
{ "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" } } } ] } } } } } } ] }