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": "DM7HpmuGe6",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "7655681273ddfc4b9274e12c",
"lastExecuted": null,
"migrationVersion": 65930761,
"createdBy": "3c3d247bd582e1616a18ee61",
"created": "2005-06-09T11:45:45.846Z",
"lastUpdatedBy": "64c9183fa65ed5923794d790",
"lastUpdated": "2008-06-23T08:09:03.894Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "Excepteur irure",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "b35b7ae951f6feb1f1685a3c",
"lastExecuted": 60159196,
"migrationVersion": -63597017,
"createdBy": "Pronghorn",
"created": "1969-06-20T14:11:35.775Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2004-09-16T01:57:25.279Z",
"source": "ad occaecat ex incididunt fugiat",
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "02e4461d4fcab95136334b51",
"lastExecuted": 30091494,
"migrationVersion": 90927259,
"createdBy": "97b259fae913578fae2e49a9",
"created": "2007-06-23T09:07:05.07Z",
"lastUpdatedBy": "f7cfd24e41d9598fb8d2a4b4",
"lastUpdated": "1961-11-12T07:11:10.47Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": null,
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "bb75becdc9cb6e7cb3d40b64",
"lastExecuted": null,
"migrationVersion": 51676896,
"createdBy": "c44188738f4ae5a6dbe1ce09",
"created": "2008-02-07T23:25:00.499Z",
"lastUpdatedBy": "24d817bff0542e64e829a204",
"lastUpdated": "1946-07-01T03:48:22.061Z",
"repeatInterval": 120000,
"formId": null
}
]
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| createdTigger |
object |
The result of the create operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "d17ff046bce7d16bb01c9fef",
"lastExecuted": null,
"migrationVersion": 42511152,
"createdBy": "Pronghorn",
"created": "1970-10-14T14:02:00.419Z",
"lastUpdatedBy": "e24f1362858766b778527c36",
"lastUpdated": "1952-07-23T23:27:07.618Z",
"_id": "57828a932ed6b9f7998ff7ec"
}
}