Summary
Create Trigger
Description
Create a new Trigger.
Route
POST /operations-manager/triggers
Roles
admin
apiwrite
engineering
operations
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
trigger |
object |
yes |
The details of the Trigger document to be created. |
Copied to Clipboard
{
"title": "trigger",
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "trigger-create",
"oneOf": [
{
"name": "myCoolDocumentName",
"type": "endpoint",
"routeName": "Hz0uffKM",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "6603a509fe6019c05ab2eaee",
"lastExecuted": null,
"migrationVersion": 24138475,
"createdBy": "60a2ac86f5ef9620946dc6f5",
"created": "1981-06-11T22:35:46.434Z",
"lastUpdatedBy": "9a44d49062e209f615833394",
"lastUpdated": "1955-04-06T07:20:40.102Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "aliqua",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "35ff67630a2ed8b0d677334d",
"lastExecuted": 6225730,
"migrationVersion": 26355444,
"createdBy": "2d751ec5219847b06450b93f",
"created": "1994-08-05T12:38:27.559Z",
"lastUpdatedBy": "7024312ba1eafb4993a5acd3",
"lastUpdated": "1998-01-11T15:01:19.827Z",
"source": "reprehenderit consectetur velit laboris qui",
"schema": null,
"jst": "af821945025d8ab516fd21b9"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "a32d2aa10efbd1c6608ae164",
"lastExecuted": 45982234,
"migrationVersion": 73970804,
"createdBy": "49919549da190fb2cbda5c6a",
"created": "2018-11-04T05:55:22.05Z",
"lastUpdatedBy": "7cdfda6aba19f145a2e3966b",
"lastUpdated": "1981-10-22T19:53:45.792Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"formId": "2a53b709c0836c2bd10ac965"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "ea1c18a72521b73500b9d2c9",
"lastExecuted": null,
"migrationVersion": -53772919,
"createdBy": "d5989e7be744148071d16905",
"created": "1964-06-11T14:00:09.638Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2023-06-20T11:29:47.406Z",
"repeatInterval": 120000,
"formId": "63bf9ab3eb946663cf013ef2"
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
The result of the create operation. |
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "49e1f5e94d13efeb94c15270",
"lastExecuted": 59808639,
"migrationVersion": 84238853,
"createdBy": "69f351a7235e3ab6af7b7f68",
"created": "2003-11-22T19:03:47.588Z",
"lastUpdatedBy": "80b096beddad2805fa9c9d35",
"lastUpdated": "1970-08-14T04:35:41.146Z",
"_id": "7de06ba2826c8cb8077740f6"
}
}