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": "manual",
"enabled": true,
"actionType": "automations",
"actionId": "75289cf4317c15ac1ded738b",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"_id": "4ca174f22312add6a1d40a8e",
"formId": "myCoolDocumentName",
"description": "Some helpful information about the document",
"lastExecuted": 53077111,
"migrationVersion": 33212607,
"createdBy": "tempor voluptate esse",
"created": "2020-07-23T07:11:54.454Z",
"lastUpdatedBy": "officia veniam qui ullamco",
"lastUpdated": "1997-10-03T21:38:18.315Z",
"formSchemaHash": "magna velit"
},
{
"name": -38664933,
"type": false,
"enabled": -34708260.529093325,
"actionType": 29748904.348202825,
"actionId": false,
"formData": "labore sed consectetur laboris nostrud",
"firstRunAt": -28048904.770425722,
"processMissedRuns": true,
"repeatUnit": false,
"repeatFrequency": "reprehenderit consectetur cillum",
"repeatInterval": -16560727,
"_id": 90630382,
"formId": false
}
],
"options": {
"adapterMap": {
"staging": "production"
}
}
}
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": "c46f60972a695ad130f0c8e2",
"lastExecuted": 9089696,
"migrationVersion": 41734431,
"createdBy": "Pronghorn",
"created": "2003-12-29T12:06:50.481Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1996-12-23T10:30:14.689Z",
"_id": "2c568a1d19e696535f2f1be5"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "9b7d2287894c9765fd03f840",
"lastExecuted": null,
"migrationVersion": -11591033,
"createdBy": "Pronghorn",
"created": "1968-07-25T21:42:25.602Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1987-09-20T10:18:10.203Z",
"_id": "3c7191480322ee634e40125d"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "a00e06ea5c2c9f18ec45e186",
"lastExecuted": 68133891,
"migrationVersion": -32476623,
"createdBy": "Pronghorn",
"created": "1983-02-24T06:16:41.568Z",
"lastUpdatedBy": "27f5058a6a739304f63250bb",
"lastUpdated": "1954-06-10T01:16:48.98Z",
"_id": "677ce05de826493f06046c86"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "2eb5787560fdca6ab1486139",
"lastExecuted": null,
"migrationVersion": 25358247,
"createdBy": "174adccf5bb834ae4006ef35",
"created": "2006-09-15T14:26:12.281Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1999-03-01T11:32:09.681Z",
"_id": "3325a54aad4460621191816e"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "428ed372dcf56b1fc5f79caf",
"lastExecuted": 44797162,
"migrationVersion": -25084306,
"createdBy": "Pronghorn",
"created": "1974-04-09T15:43:18.138Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1950-04-26T23:05:04.412Z",
"_id": "625fcdb237f374fca43b6d50"
}
}
]
}