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": "315f669f2e196c3471d5f0ed", "verb": "POST", "routeName": "qkz9JSCVr", "_id": "fd61625dce819437df72f528", "description": "Some helpful information about the document", "lastExecuted": 44634934, "migrationVersion": -44224395, "createdBy": "commodo in", "created": "1987-02-16T09:25:08.106Z", "lastUpdatedBy": null, "lastUpdated": "1995-10-03T12:45:24.791Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "c34d103a727216f7052e2e38", "source": "Ut dolore in aliquip est", "topic": "consectetur", "schema": null, "_id": "b7b8570da19d68633e4dd8ff", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 86395931, "legacyWrapper": true, "createdBy": null, "created": "2001-02-24T16:25:55.619Z", "lastUpdatedBy": "qui velit pariatur", "lastUpdated": "1975-06-29T15:42:44.923Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "53848f4c7937fd1999f14f12", "verb": "POST", "routeName": "XDU", "_id": "bd31ccea5af9c6e28bd94051", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 44822080, "createdBy": null, "created": "2020-05-20T13:43:14.891Z", "lastUpdatedBy": "mollit", "lastUpdated": "1977-12-31T12:14:41.875Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "79701bc72b6f561fd5f539b9", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "8cb4c0e9d4a57191051d18c3", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 68889079, "createdBy": null, "created": "2003-05-30T20:27:16.757Z", "lastUpdatedBy": "eu nostrud", "lastUpdated": "1965-04-27T09:35:12.05Z", "formSchemaHash": "minim ullamco nulla", "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "58a6c7c4e780eabd5e3cff20", "source": "aute", "topic": "est cillum voluptate laborum", "schema": null, "_id": "bb11de65494c724089b8b5be", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 83229877, "legacyWrapper": true, "createdBy": null, "created": "1965-09-17T18:55:48.392Z", "lastUpdatedBy": null, "lastUpdated": "1947-05-16T07:21:05.126Z" } ], "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 imported 3 of 4 documents", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "646498d20a4e7f8dce456ad4", "lastExecuted": null, "migrationVersion": -81263328, "createdBy": "Pronghorn", "created": "2018-12-08T23:44:48.921Z", "lastUpdatedBy": "a5d28fc7fa2628251dc59763", "lastUpdated": "1989-04-07T18:30:05.481Z", "_id": "449954d292c416db779aef0d" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "eb3f377c039096cad2cc0ee7", "lastExecuted": 67590770, "migrationVersion": 93601089, "createdBy": "Pronghorn", "created": "1981-08-22T10:03:27.208Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2003-08-15T12:40:51.646Z", "_id": "775659ea0d964d1a26765166" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "5f0abcfa7ede3ac8e97bd39e", "lastExecuted": null, "migrationVersion": 40757105, "createdBy": "Pronghorn", "created": "1955-05-11T02:32:45.557Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1973-05-27T18:36:25.998Z", "_id": "31d7644249309f87c569f37a" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "89b0a8b20aec10aa930d75d5", "lastExecuted": null, "migrationVersion": -6894166, "createdBy": "Pronghorn", "created": "2009-01-28T03:41:54.487Z", "lastUpdatedBy": "63dba6d4b5ad3cd158b07da6", "lastUpdated": "1997-06-07T08:41:13.69Z", "_id": "bbbf62520f79aa6d900a172e" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "91fc71b8feb666b4396b9cb5", "lastExecuted": 43719304, "migrationVersion": -31718206, "createdBy": "Pronghorn", "created": "1974-05-27T17:54:37.704Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1977-04-26T08:36:40.552Z", "_id": "8d6b2be7fc50a14202b6bf26" } } ] }
{ "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" } } } ] } } } } } } ] }