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": false,
"actionType": "automations",
"actionId": "8f225f69f80fe67a3ce18730",
"verb": "POST",
"routeName": "B",
"schema": null,
"_id": "e8044f9aa8ddd66283775201",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 46571682,
"createdBy": null,
"created": "1986-04-01T19:30:57.414Z",
"lastUpdatedBy": "id nostrud veniam aliqua incididunt",
"lastUpdated": "1960-09-27T07:47:06.318Z"
}
],
"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": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "ef183bf54ced710598370da2",
"lastExecuted": null,
"migrationVersion": -67327169,
"createdBy": "bdbdd960c1271b9a98bb2616",
"created": "1984-12-26T14:45:30.09Z",
"lastUpdatedBy": "c77cdcaf843eca8ad6a139d8",
"lastUpdated": "2015-06-20T03:24:03.49Z",
"_id": "15324a28dd93c24f750eaec1"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "4d1a7add3e62aeb9afaddf1d",
"lastExecuted": 56999209,
"migrationVersion": 38561901,
"createdBy": "8c39bbc161eb6bf6c9087a9a",
"created": "2005-07-09T21:26:39.097Z",
"lastUpdatedBy": "8945bfe1c4943ebaad5c367a",
"lastUpdated": "1977-06-26T21:12:00.017Z",
"_id": "6250300ffd7e9db79dc6391b"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "d627b658cdc808157c7909d8",
"lastExecuted": null,
"migrationVersion": -46963639,
"createdBy": "Pronghorn",
"created": "1962-04-24T02:22:11.386Z",
"lastUpdatedBy": "a27aa4f1a7d7a2842ce81c60",
"lastUpdated": "1982-07-15T16:43:58.163Z",
"_id": "589ac1bea84270c313556793"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "d7078c8338e8ec276b1354b5",
"lastExecuted": 33618047,
"migrationVersion": -15247941,
"createdBy": "Pronghorn",
"created": "2020-07-09T16:35:42.648Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1988-11-02T23:55:57.762Z",
"_id": "1b1379f99f3b5da812601261"
}
}
]
}