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": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "bcde88c6e1ac8fefaecd769c", "source": "sunt mollit", "topic": "cillum Excepteur et nulla", "schema": null, "_id": "84e30fe055f9c7aa309334e8", "description": "Some helpful information about the document", "lastExecuted": 79296967, "migrationVersion": -62835506, "legacyWrapper": false, "createdBy": null, "created": "2000-03-17T23:45:36.756Z", "lastUpdatedBy": null, "lastUpdated": "1990-05-03T06:20:51.297Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "a21e2f9d05e8ec98aa177d2a", "verb": "POST", "routeName": "X4XH6ldXRkf", "_id": "4a530d21e94b3aaa0481901f", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -8986353, "createdBy": null, "created": "2008-02-04T08:09:02.453Z", "lastUpdatedBy": "Duis laboris ut dolor reprehenderit", "lastUpdated": "1992-09-14T06:33:33.452Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "fc2fdbe36df6c0dd42383d96", "verb": "POST", "routeName": "awI_StIFSgh", "_id": "77fe0b95336907a505044b3d", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 93914604, "migrationVersion": 70952739, "createdBy": null, "created": "1995-08-30T09:33:21.202Z", "lastUpdatedBy": null, "lastUpdated": "1995-05-27T00:38:22.677Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "331c9aa151ee00fb5498a149", "verb": "POST", "routeName": "mK", "schema": null, "_id": "4d0cece4435a42d26507feec", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 22421217, "createdBy": "in sit nostrud incididunt ullamco", "created": "1954-03-23T05:15:42.794Z", "lastUpdatedBy": "Ut", "lastUpdated": "1993-01-01T16:12:57.723Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "5076331213451be6a93627ea", "source": "eu exercitation Lorem", "topic": "irure voluptate", "schema": null, "_id": "5cd64f45b219c9d8f39739cf", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 62160615, "legacyWrapper": true, "createdBy": "aliquip ea commodo do sit", "created": "1954-05-03T21:17:06.693Z", "lastUpdatedBy": null, "lastUpdated": "1975-02-28T11:55:18.909Z" } ], "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": false, "actionType": "automations", "actionId": "49cd185468e2672d8101ce48", "lastExecuted": null, "migrationVersion": 77632052, "createdBy": "Pronghorn", "created": "1985-08-10T17:55:19.814Z", "lastUpdatedBy": "d178503e4003bfaafd96f688", "lastUpdated": "1978-09-11T11:16:20.318Z", "_id": "5871ecd78d50e38ddefbbb9c" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "ef6e4d3d9545ee01b243ea30", "lastExecuted": null, "migrationVersion": -18395370, "createdBy": "Pronghorn", "created": "1991-12-16T10:34:54.097Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2000-08-17T12:22:48.796Z", "_id": "9d8b873194e759903dbe1cb2" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "7a05de47cf8aa08f3fceea33", "lastExecuted": 44742603, "migrationVersion": 28916470, "createdBy": "83a067c39d8b0b8e8b3a9976", "created": "1955-08-12T13:18:13.924Z", "lastUpdatedBy": "ad8286d305b6ebec7eb3702b", "lastUpdated": "2019-10-21T19:46:27.142Z", "_id": "026f45444c20e2f94277262b" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": false, "actionType": "automations", "actionId": "745e0217ec0f91578df806fb", "lastExecuted": 68788695, "migrationVersion": 62048908, "createdBy": "6f08269ccce82832a6950ddd", "created": "1995-05-25T00:41:49.718Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1998-04-15T12:39:13.955Z", "_id": "65b5f6b14ebfb6c8ced554e7" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "enabled": true, "actionType": "automations", "actionId": "9e381c311292cde4b25110c7", "lastExecuted": null, "migrationVersion": -37697575, "createdBy": "4605a9651785399980f1a728", "created": "2016-12-18T03:32:41.376Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1948-12-13T08:47:12.732Z", "_id": "809cdb86e7ea39ec69bb6727" } } ] }
{ "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" } } } ] } } } } } } ] }