Create Alert Definitions
Select
SaaS
Customer Managed
Create Alert Definitions
- application/json
Request Body
- name string
alertType object
- sendIndividualNotifications boolean
Default value:
false
Flag indicating the functionality to send individual notifications
- subscriptionBasedAlert boolean
Default value:
false
Flag to indicate whether its a subscription based alert.
- processDiscoveredVMs boolean
Default value:
false
Flag indicating the functionality to send individual notifications for each discovered virtual machine
associations object[]
alertTarget object
templates object
tokens object
eventCriteriaDetails object
globalConfigInfo object
Responses
- 200
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
- id int32
- GUID string
- name string
{
"id": 0,
"GUID": "string",
"name": "string"
}
Internal Server Error
POST /v4/alertdefinitions
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/AlertDefinitions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"alertType": {
"category": "DATA_AGING",
"criteria": "SUCCEEDED",
"paramsList": [
{
"unit": 0,
"type": 0,
"value": 0,
"paramIndex": 0
}
],
"notificationCriteria": {
"value": 1,
"delayTime": 0,
"persistTime": 0
}
},
"sendIndividualNotifications": false,
"subscriptionBasedAlert": false,
"processDiscoveredVMs": false,
"associations": [
{
"id": 0,
"name": "string",
"type": "ALL_SERVERS",
"parentEntity1": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity2": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity3": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity4": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"flags": {
"exclude": true
}
}
],
"alertTarget": {
"sendAlertTo": [
"LIVEFEEDS"
],
"recipientsOperationType": "ADD",
"recipients": {
"to": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"cc": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"bcc": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"webHookId": 0
}
},
"templates": {
"locale": {
"id": 0,
"name": "string"
},
"email": "string",
"console": "string",
"eventViewer": "string",
"webhook": "string",
"workflow": {
"id": 0,
"name": "string",
"clientId": 0,
"clientName": "string"
},
"workflowInputDetails": "string"
},
"tokens": {
"match": "AND",
"ruleGroups": [
{
"match": "AND",
"rules": [
{
"tokenName": "SUBJECT END",
"value": "string",
"ruleSecValue": "string",
"matchCondition": "EQUALS",
"timeRange": {
"fromTime": "string",
"toTime": "string"
},
"dateRange": {
"fromDate": "string",
"toDate": "string",
"timeRange": [
{
"fromTime": "string",
"toTime": "string"
}
]
},
"tokenFormat": "NONE"
}
]
}
]
},
"eventCriteriaDetails": {
"opBetweenConditions": 0,
"criteriaName": "string",
"conditions": [
{
"name": "string",
"id": 0,
"operation": "EQUALS",
"value": "string",
"fromValue": "string",
"toValue": "string",
"advancedCriteria": [
"NONE"
],
"valuesList": [
0
]
}
]
},
"globalConfigInfo": {
"name": "string",
"commcells": [
{
"id": 0,
"name": "string",
"guid": "string"
}
],
"scope": "string",
"scopeFilterQuery": "string",
"applyOnAllCommCells": true,
"actionOnLocalEntity": "CREATE_NEW"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/AlertDefinitions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"alertType": {
"category": "DATA_AGING",
"criteria": "SUCCEEDED",
"paramsList": [
{
"unit": 0,
"type": 0,
"value": 0,
"paramIndex": 0
}
],
"notificationCriteria": {
"value": 1,
"delayTime": 0,
"persistTime": 0
}
},
"sendIndividualNotifications": false,
"subscriptionBasedAlert": false,
"processDiscoveredVMs": false,
"associations": [
{
"id": 0,
"name": "string",
"type": "ALL_SERVERS",
"parentEntity1": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity2": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity3": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity4": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"flags": {
"exclude": true
}
}
],
"alertTarget": {
"sendAlertTo": [
"LIVEFEEDS"
],
"recipientsOperationType": "ADD",
"recipients": {
"to": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"cc": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"bcc": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"webHookId": 0
}
},
"templates": {
"locale": {
"id": 0,
"name": "string"
},
"email": "string",
"console": "string",
"eventViewer": "string",
"webhook": "string",
"workflow": {
"id": 0,
"name": "string",
"clientId": 0,
"clientName": "string"
},
"workflowInputDetails": "string"
},
"tokens": {
"match": "AND",
"ruleGroups": [
{
"match": "AND",
"rules": [
{
"tokenName": "SUBJECT END",
"value": "string",
"ruleSecValue": "string",
"matchCondition": "EQUALS",
"timeRange": {
"fromTime": "string",
"toTime": "string"
},
"dateRange": {
"fromDate": "string",
"toDate": "string",
"timeRange": [
{
"fromTime": "string",
"toTime": "string"
}
]
},
"tokenFormat": "NONE"
}
]
}
]
},
"eventCriteriaDetails": {
"opBetweenConditions": 0,
"criteriaName": "string",
"conditions": [
{
"name": "string",
"id": 0,
"operation": "EQUALS",
"value": "string",
"fromValue": "string",
"toValue": "string",
"advancedCriteria": [
"NONE"
],
"valuesList": [
0
]
}
]
},
"globalConfigInfo": {
"name": "string",
"commcells": [
{
"id": 0,
"name": "string",
"guid": "string"
}
],
"scope": "string",
"scopeFilterQuery": "string",
"applyOnAllCommCells": true,
"actionOnLocalEntity": "CREATE_NEW"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/AlertDefinitions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"alertType": {
"category": "DATA_AGING",
"criteria": "SUCCEEDED",
"paramsList": [
{
"unit": 0,
"type": 0,
"value": 0,
"paramIndex": 0
}
],
"notificationCriteria": {
"value": 1,
"delayTime": 0,
"persistTime": 0
}
},
"sendIndividualNotifications": false,
"subscriptionBasedAlert": false,
"processDiscoveredVMs": false,
"associations": [
{
"id": 0,
"name": "string",
"type": "ALL_SERVERS",
"parentEntity1": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity2": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity3": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity4": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"flags": {
"exclude": true
}
}
],
"alertTarget": {
"sendAlertTo": [
"LIVEFEEDS"
],
"recipientsOperationType": "ADD",
"recipients": {
"to": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"cc": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"bcc": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"webHookId": 0
}
},
"templates": {
"locale": {
"id": 0,
"name": "string"
},
"email": "string",
"console": "string",
"eventViewer": "string",
"webhook": "string",
"workflow": {
"id": 0,
"name": "string",
"clientId": 0,
"clientName": "string"
},
"workflowInputDetails": "string"
},
"tokens": {
"match": "AND",
"ruleGroups": [
{
"match": "AND",
"rules": [
{
"tokenName": "SUBJECT END",
"value": "string",
"ruleSecValue": "string",
"matchCondition": "EQUALS",
"timeRange": {
"fromTime": "string",
"toTime": "string"
},
"dateRange": {
"fromDate": "string",
"toDate": "string",
"timeRange": [
{
"fromTime": "string",
"toTime": "string"
}
]
},
"tokenFormat": "NONE"
}
]
}
]
},
"eventCriteriaDetails": {
"opBetweenConditions": 0,
"criteriaName": "string",
"conditions": [
{
"name": "string",
"id": 0,
"operation": "EQUALS",
"value": "string",
"fromValue": "string",
"toValue": "string",
"advancedCriteria": [
"NONE"
],
"valuesList": [
0
]
}
]
},
"globalConfigInfo": {
"name": "string",
"commcells": [
{
"id": 0,
"name": "string",
"guid": "string"
}
],
"scope": "string",
"scopeFilterQuery": "string",
"applyOnAllCommCells": true,
"actionOnLocalEntity": "CREATE_NEW"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/AlertDefinitions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"alertType": {
"category": "DATA_AGING",
"criteria": "SUCCEEDED",
"paramsList": [
{
"unit": 0,
"type": 0,
"value": 0,
"paramIndex": 0
}
],
"notificationCriteria": {
"value": 1,
"delayTime": 0,
"persistTime": 0
}
},
"sendIndividualNotifications": false,
"subscriptionBasedAlert": false,
"processDiscoveredVMs": false,
"associations": [
{
"id": 0,
"name": "string",
"type": "ALL_SERVERS",
"parentEntity1": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity2": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity3": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity4": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"flags": {
"exclude": true
}
}
],
"alertTarget": {
"sendAlertTo": [
"LIVEFEEDS"
],
"recipientsOperationType": "ADD",
"recipients": {
"to": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"cc": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"bcc": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"webHookId": 0
}
},
"templates": {
"locale": {
"id": 0,
"name": "string"
},
"email": "string",
"console": "string",
"eventViewer": "string",
"webhook": "string",
"workflow": {
"id": 0,
"name": "string",
"clientId": 0,
"clientName": "string"
},
"workflowInputDetails": "string"
},
"tokens": {
"match": "AND",
"ruleGroups": [
{
"match": "AND",
"rules": [
{
"tokenName": "SUBJECT END",
"value": "string",
"ruleSecValue": "string",
"matchCondition": "EQUALS",
"timeRange": {
"fromTime": "string",
"toTime": "string"
},
"dateRange": {
"fromDate": "string",
"toDate": "string",
"timeRange": [
{
"fromTime": "string",
"toTime": "string"
}
]
},
"tokenFormat": "NONE"
}
]
}
]
},
"eventCriteriaDetails": {
"opBetweenConditions": 0,
"criteriaName": "string",
"conditions": [
{
"name": "string",
"id": 0,
"operation": "EQUALS",
"value": "string",
"fromValue": "string",
"toValue": "string",
"advancedCriteria": [
"NONE"
],
"valuesList": [
0
]
}
]
},
"globalConfigInfo": {
"name": "string",
"commcells": [
{
"id": 0,
"name": "string",
"guid": "string"
}
],
"scope": "string",
"scopeFilterQuery": "string",
"applyOnAllCommCells": true,
"actionOnLocalEntity": "CREATE_NEW"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/AlertDefinitions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"alertType": {
"category": "DATA_AGING",
"criteria": "SUCCEEDED",
"paramsList": [
{
"unit": 0,
"type": 0,
"value": 0,
"paramIndex": 0
}
],
"notificationCriteria": {
"value": 1,
"delayTime": 0,
"persistTime": 0
}
},
"sendIndividualNotifications": false,
"subscriptionBasedAlert": false,
"processDiscoveredVMs": false,
"associations": [
{
"id": 0,
"name": "string",
"type": "ALL_SERVERS",
"parentEntity1": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity2": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity3": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity4": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"flags": {
"exclude": true
}
}
],
"alertTarget": {
"sendAlertTo": [
"LIVEFEEDS"
],
"recipientsOperationType": "ADD",
"recipients": {
"to": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"cc": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"bcc": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"webHookId": 0
}
},
"templates": {
"locale": {
"id": 0,
"name": "string"
},
"email": "string",
"console": "string",
"eventViewer": "string",
"webhook": "string",
"workflow": {
"id": 0,
"name": "string",
"clientId": 0,
"clientName": "string"
},
"workflowInputDetails": "string"
},
"tokens": {
"match": "AND",
"ruleGroups": [
{
"match": "AND",
"rules": [
{
"tokenName": "SUBJECT END",
"value": "string",
"ruleSecValue": "string",
"matchCondition": "EQUALS",
"timeRange": {
"fromTime": "string",
"toTime": "string"
},
"dateRange": {
"fromDate": "string",
"toDate": "string",
"timeRange": [
{
"fromTime": "string",
"toTime": "string"
}
]
},
"tokenFormat": "NONE"
}
]
}
]
},
"eventCriteriaDetails": {
"opBetweenConditions": 0,
"criteriaName": "string",
"conditions": [
{
"name": "string",
"id": 0,
"operation": "EQUALS",
"value": "string",
"fromValue": "string",
"toValue": "string",
"advancedCriteria": [
"NONE"
],
"valuesList": [
0
]
}
]
},
"globalConfigInfo": {
"name": "string",
"commcells": [
{
"id": 0,
"name": "string",
"guid": "string"
}
],
"scope": "string",
"scopeFilterQuery": "string",
"applyOnAllCommCells": true,
"actionOnLocalEntity": "CREATE_NEW"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/AlertDefinitions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"alertType": {
"category": "DATA_AGING",
"criteria": "SUCCEEDED",
"paramsList": [
{
"unit": 0,
"type": 0,
"value": 0,
"paramIndex": 0
}
],
"notificationCriteria": {
"value": 1,
"delayTime": 0,
"persistTime": 0
}
},
"sendIndividualNotifications": false,
"subscriptionBasedAlert": false,
"processDiscoveredVMs": false,
"associations": [
{
"id": 0,
"name": "string",
"type": "ALL_SERVERS",
"parentEntity1": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity2": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity3": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity4": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"flags": {
"exclude": true
}
}
],
"alertTarget": {
"sendAlertTo": [
"LIVEFEEDS"
],
"recipientsOperationType": "ADD",
"recipients": {
"to": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"cc": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"bcc": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"webHookId": 0
}
},
"templates": {
"locale": {
"id": 0,
"name": "string"
},
"email": "string",
"console": "string",
"eventViewer": "string",
"webhook": "string",
"workflow": {
"id": 0,
"name": "string",
"clientId": 0,
"clientName": "string"
},
"workflowInputDetails": "string"
},
"tokens": {
"match": "AND",
"ruleGroups": [
{
"match": "AND",
"rules": [
{
"tokenName": "SUBJECT END",
"value": "string",
"ruleSecValue": "string",
"matchCondition": "EQUALS",
"timeRange": {
"fromTime": "string",
"toTime": "string"
},
"dateRange": {
"fromDate": "string",
"toDate": "string",
"timeRange": [
{
"fromTime": "string",
"toTime": "string"
}
]
},
"tokenFormat": "NONE"
}
]
}
]
},
"eventCriteriaDetails": {
"opBetweenConditions": 0,
"criteriaName": "string",
"conditions": [
{
"name": "string",
"id": 0,
"operation": "EQUALS",
"value": "string",
"fromValue": "string",
"toValue": "string",
"advancedCriteria": [
"NONE"
],
"valuesList": [
0
]
}
]
},
"globalConfigInfo": {
"name": "string",
"commcells": [
{
"id": 0,
"name": "string",
"guid": "string"
}
],
"scope": "string",
"scopeFilterQuery": "string",
"applyOnAllCommCells": true,
"actionOnLocalEntity": "CREATE_NEW"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/AlertDefinitions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"alertType": {
"category": "DATA_AGING",
"criteria": "SUCCEEDED",
"paramsList": [
{
"unit": 0,
"type": 0,
"value": 0,
"paramIndex": 0
}
],
"notificationCriteria": {
"value": 1,
"delayTime": 0,
"persistTime": 0
}
},
"sendIndividualNotifications": false,
"subscriptionBasedAlert": false,
"processDiscoveredVMs": false,
"associations": [
{
"id": 0,
"name": "string",
"type": "ALL_SERVERS",
"parentEntity1": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity2": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity3": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"parentEntity4": {
"id": 0,
"name": "string",
"type": "SERVER_ENTITY"
},
"flags": {
"exclude": true
}
}
],
"alertTarget": {
"sendAlertTo": [
"LIVEFEEDS"
],
"recipientsOperationType": "ADD",
"recipients": {
"to": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"cc": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"bcc": [
{
"id": 0,
"name": "string",
"type": "USER"
}
],
"webHookId": 0
}
},
"templates": {
"locale": {
"id": 0,
"name": "string"
},
"email": "string",
"console": "string",
"eventViewer": "string",
"webhook": "string",
"workflow": {
"id": 0,
"name": "string",
"clientId": 0,
"clientName": "string"
},
"workflowInputDetails": "string"
},
"tokens": {
"match": "AND",
"ruleGroups": [
{
"match": "AND",
"rules": [
{
"tokenName": "SUBJECT END",
"value": "string",
"ruleSecValue": "string",
"matchCondition": "EQUALS",
"timeRange": {
"fromTime": "string",
"toTime": "string"
},
"dateRange": {
"fromDate": "string",
"toDate": "string",
"timeRange": [
{
"fromTime": "string",
"toTime": "string"
}
]
},
"tokenFormat": "NONE"
}
]
}
]
},
"eventCriteriaDetails": {
"opBetweenConditions": 0,
"criteriaName": "string",
"conditions": [
{
"name": "string",
"id": 0,
"operation": "EQUALS",
"value": "string",
"fromValue": "string",
"toValue": "string",
"advancedCriteria": [
"NONE"
],
"valuesList": [
0
]
}
]
},
"globalConfigInfo": {
"name": "string",
"commcells": [
{
"id": 0,
"name": "string",
"guid": "string"
}
],
"scope": "string",
"scopeFilterQuery": "string",
"applyOnAllCommCells": true,
"actionOnLocalEntity": "CREATE_NEW"
}
}'