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": "be4df5181e54be67c0b46e3e",
"verb": "POST",
"routeName": "aD1l_awm",
"schema": null,
"_id": "8bf5b243ea510877b115ae52",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 45390203,
"createdBy": null,
"created": "2016-04-29T01:50:03.117Z",
"lastUpdatedBy": null,
"lastUpdated": "2015-05-15T22:39:04.199Z"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": true,
"actionType": "automations",
"actionId": "c2e1e922dab168299692a386",
"source": "ad",
"topic": "commodo consequat est",
"_id": "0a18c7cee27489e5c51cbb5f",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 59967895,
"migrationVersion": -91759521,
"createdBy": "dolor",
"created": "1981-10-13T10:50:29.568Z",
"lastUpdatedBy": "id",
"lastUpdated": "1981-08-31T03:54:52.246Z"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"enabled": true,
"actionType": "automations",
"actionId": "539eceff30a056591b0afdc0",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"_id": "1c3ba7ff6dfc5ff41e2a1f38",
"formId": "myCoolDocumentName",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -42891426,
"createdBy": null,
"created": "1975-04-07T08:16:47.26Z",
"lastUpdatedBy": null,
"lastUpdated": "1952-02-17T01:34:13.689Z",
"formSchemaHash": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": true,
"actionType": "automations",
"actionId": "75a426cbb928386f4bd58a41",
"source": "proident dolor",
"topic": "ullamco est fugiat",
"schema": null,
"_id": "e7555556c72e592b7dcb4910",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 25804961,
"createdBy": null,
"created": "2020-09-21T19:03:45.71Z",
"lastUpdatedBy": "ut irure laborum deserunt laboris",
"lastUpdated": "1950-11-26T14:31:47.746Z"
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "e43adaf4a46f1eb0445fc0e7",
"verb": "POST",
"routeName": "hFg",
"schema": null,
"_id": "5942c5af419e662bf8c29f2a",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -8467616,
"createdBy": null,
"created": "1982-08-05T02:57:57.565Z",
"lastUpdatedBy": "ex do amet",
"lastUpdated": "1958-08-09T05:15:35.188Z"
}
],
"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 created the requested item",
"data": [
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "6046d45b08dc3196ec4ba42e",
"lastExecuted": 68672400,
"migrationVersion": 29188756,
"createdBy": "607f3573f06bf6e365251af3",
"created": "2015-01-14T05:36:01.841Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1959-10-25T05:20:17.169Z",
"_id": "0e0e4ba8b81e1a94347e9ac3"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "cd8bb322a9c6a4970713c937",
"lastExecuted": null,
"migrationVersion": -7487613,
"createdBy": "Pronghorn",
"created": "1968-01-04T01:34:15.253Z",
"lastUpdatedBy": "410e8f8cff4884363c70de15",
"lastUpdated": "2011-01-21T07:17:48.263Z",
"_id": "90a32fd66c1a7ef5b404cdea"
}
}
]
}