Summary
Import Triggers
Description
Import Triggers.
Route
PUT /operations-manager/triggers
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
triggers |
array |
yes |
An array of exported Trigger documents. |
options |
object |
yes |
Optional parameters. |
Copied to Clipboard
{
"triggers": [
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "739bd051aed079f60acc757b",
"verb": "POST",
"routeName": "lYQYcu-cKU",
"schema": null,
"_id": "601e1a3751928a5bf2a995c9",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 76034042,
"createdBy": "eu",
"created": "2002-01-14T05:03:29.43Z",
"lastUpdatedBy": null,
"lastUpdated": "1957-05-25T14:26:24.007Z"
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "6d3e310f14868645492d5b54",
"verb": "POST",
"routeName": "8p_bGUKd3-",
"schema": null,
"_id": "9c7861fbfa6722149320d991",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 44268403,
"createdBy": null,
"created": "2016-12-24T17:56:41.241Z",
"lastUpdatedBy": null,
"lastUpdated": "1952-02-08T17:14:28.637Z"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"enabled": true,
"actionType": "automations",
"actionId": "2a15f82d81c425a9431e148b",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"_id": "c51f15196b2fa1849a97400a",
"formId": null,
"description": "Some helpful information about the document",
"lastExecuted": 39243201,
"migrationVersion": -56281022,
"createdBy": "ex eiusmod aliquip in dolor",
"created": "2009-12-05T00:23:42.313Z",
"lastUpdatedBy": "amet irure laboris qui",
"lastUpdated": "1971-11-21T19:34:20.431Z",
"formSchemaHash": null,
"legacyWrapper": false
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": true,
"actionType": "automations",
"actionId": "7a6e9a32c45da0f374e4311b",
"source": "laborum",
"topic": "est ut et",
"schema": null,
"_id": "e542082d9f9f8bfe4121fd56",
"description": "Some helpful information about the document",
"lastExecuted": 78668040,
"migrationVersion": 25174616,
"legacyWrapper": false,
"createdBy": null,
"created": "1971-07-18T18:31:19.412Z",
"lastUpdatedBy": "culpa laborum voluptate Ut occaecat",
"lastUpdated": "1996-10-21T13:43:48.796Z"
}
],
"options": {
"adapterMap": {
"old_name": "new_name"
}
}
}
Copied to Clipboard
{
"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
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
The result of the import operation. |
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": [
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "b473b673cd3b22a3e95f8d1d",
"lastExecuted": 69764633,
"migrationVersion": 29317237,
"createdBy": "a5800e2e93cf311afced2361",
"created": "1972-03-17T15:55:32.894Z",
"lastUpdatedBy": "1988631e6275d94384cb88ca",
"lastUpdated": "2015-10-06T04:28:26.141Z",
"_id": "5c441754fdbbd5024d72d67e"
}
}
]
}