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": "1i_yASZawS",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "52832bfd5663e167a842d14c",
"lastExecuted": null,
"migrationVersion": -5910573,
"createdBy": "Pronghorn",
"created": "1981-12-31T09:38:11.847Z",
"lastUpdatedBy": "2b73c22b2662f2527f0feba5",
"lastUpdated": "1991-10-18T01:47:16.594Z",
"verb": "POST",
"schema": null,
"jst": "cbbbcf3b8ffde6d3b7a2eddd"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "aliquip amet do",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "c81ca1c3915930c6f2c2b8fe",
"lastExecuted": null,
"migrationVersion": -22605411,
"createdBy": "Pronghorn",
"created": "1979-08-15T07:38:58.701Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1951-10-30T22:06:08.915Z",
"source": "cillum mollit dolore non sunt",
"schema": null,
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c4b2f009aaf46d65627c4767",
"lastExecuted": 30058773,
"migrationVersion": 11571663,
"createdBy": "6558905128502db297e36592",
"created": "1981-11-08T23:03:17.278Z",
"lastUpdatedBy": "cedbbca8d0b1bc0261f6ab01",
"lastUpdated": "2020-02-22T18:21:02.236Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "consectetur voluptate anim veniam laborum",
"legacyWrapper": false,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": null,
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "efd8e4814eee42eb85ad0b1c",
"lastExecuted": null,
"migrationVersion": -80934139,
"createdBy": "Pronghorn",
"created": "1965-07-19T16:34:38.396Z",
"lastUpdatedBy": "0095dd0bf798adb00e1e2337",
"lastUpdated": "2004-10-28T19:04:16.061Z",
"repeatInterval": 30000,
"formId": "58175cf60c2073fcdefa5d61"
}
]
}
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": true,
"actionType": "automations",
"actionId": "cd24721d899ce5e43dfb5fa5",
"lastExecuted": 54904582,
"migrationVersion": 18150756,
"createdBy": "d854ef170ffe7335c6a93125",
"created": "1954-04-28T15:01:59.78Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1974-08-12T04:45:34.612Z",
"_id": "1c066b73d5e1aa94ae297d20"
}
}