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": "90433e53588a5036881b92ef", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "8e6977423ea31e402e64087c", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 22280432, "createdBy": null, "created": "1954-05-23T00:06:29.205Z", "lastUpdatedBy": null, "lastUpdated": "1951-05-31T09:44:10.701Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "71d2b5632913a0183a82b943", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "2a46d40c42e4cbb737801ba3", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 30035954, "migrationVersion": 27702132, "createdBy": null, "created": "1955-10-12T00:27:53.474Z", "lastUpdatedBy": "est amet", "lastUpdated": "2016-03-08T22:53:59.694Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "9a5a7820f489353a66e9cd28", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "b173c01c8798feef5938a369", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 31940464, "migrationVersion": 19553406, "createdBy": null, "created": "1950-01-21T02:21:54.08Z", "lastUpdatedBy": null, "lastUpdated": "1983-07-09T02:19:01.965Z", "formSchemaHash": "esse reprehenderit sed id consequat", "legacyWrapper": true }, { "name": 2443736, "type": true, "enabled": false, "actionType": -96224829, "actionId": "culpa aliquip cillum", "formData": true, "firstRunAt": false, "processMissedRuns": 42628274, "repeatUnit": -50955846.75062783, "repeatFrequency": -7093842.753679574, "repeatInterval": -74536922, "_id": -54183644, "formId": "ex id proident nostrud" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "f47a7973928d564841f163af", "verb": "POST", "routeName": "nNnef", "schema": null, "_id": "f1ce4b6eec26a82f654826ec", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -57452345, "createdBy": null, "created": "1975-12-28T20:38:03.818Z", "lastUpdatedBy": null, "lastUpdated": "1980-01-09T09:14:53.21Z" } ], "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": "788dda9f9083817fab7a4d88", "lastExecuted": null, "migrationVersion": -92466428, "createdBy": "Pronghorn", "created": "1986-09-24T21:15:52.073Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1948-01-12T18:18:12.231Z", "_id": "907f2a4d4a4ed557aecc54c8" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "ce8eea7b3022e04501846c53", "lastExecuted": 30576650, "migrationVersion": 65676210, "createdBy": "5ff47494b684b31abea24a35", "created": "2008-07-29T06:52:03.262Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1991-09-17T01:52:47.344Z", "_id": "db8ce03ad1d181119e7f54bb" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "8e99f227888eafdbf7f124b7", "lastExecuted": 71689903, "migrationVersion": -519371, "createdBy": "d4fb5aaf8ae7faa8ed49cc0f", "created": "1946-09-30T06:39:55.509Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1995-09-21T18:08:04.946Z", "_id": "3518cf11add2f11f7ded1f84" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "93e4838a679bcd23f51b951f", "lastExecuted": 42068455, "migrationVersion": -95963787, "createdBy": "Pronghorn", "created": "1954-10-27T17:53:52.476Z", "lastUpdatedBy": "e1e731c1e1fdefc1f5ebe73d", "lastUpdated": "2021-08-26T07:38:16.209Z", "_id": "d97b25f06135c719af131c79" } } ] }
{ "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" } } } ] } } } } } } ] }