Create an Alert
Select
SaaS
Customer Managed
This operation creates an alert.
- application/json
Request Body
alertDetail object
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
alertEntity object
errorResp object
{
"alertEntity": {
"alertId": 0
},
"errorResp": {
"errorCode": 0
}
}
{
"alertEntity": {
"alertId": 42
},
"errorResp": {
"errorCode": 0
}
}
POST /alertrule
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/AlertRule' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"alertDetail": {
"alertType": 0,
"notifTypeListOperationType": 0,
"alertSeverity": 0,
"notifType": [
0
],
"criteria": {
"criteria": 0
},
"EntityList": {
"associationsOperationType": 0,
"associations": [
{
"clientId": 0,
"_type_": 0
}
]
},
"userList": {
"userListOperationType": 0,
"userList": [
{
"_type_": 0,
"userId": 0
}
]
},
"alertrule": {
"alertName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/AlertRule' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"alertDetail": {
"alertType": 0,
"notifTypeListOperationType": 0,
"alertSeverity": 0,
"notifType": [
0
],
"criteria": {
"criteria": 0
},
"EntityList": {
"associationsOperationType": 0,
"associations": [
{
"clientId": 0,
"_type_": 0
}
]
},
"userList": {
"userListOperationType": 0,
"userList": [
{
"_type_": 0,
"userId": 0
}
]
},
"alertrule": {
"alertName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/AlertRule' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"alertDetail": {
"alertType": 0,
"notifTypeListOperationType": 0,
"alertSeverity": 0,
"notifType": [
0
],
"criteria": {
"criteria": 0
},
"EntityList": {
"associationsOperationType": 0,
"associations": [
{
"clientId": 0,
"_type_": 0
}
]
},
"userList": {
"userListOperationType": 0,
"userList": [
{
"_type_": 0,
"userId": 0
}
]
},
"alertrule": {
"alertName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/AlertRule' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"alertDetail": {
"alertType": 0,
"notifTypeListOperationType": 0,
"alertSeverity": 0,
"notifType": [
0
],
"criteria": {
"criteria": 0
},
"EntityList": {
"associationsOperationType": 0,
"associations": [
{
"clientId": 0,
"_type_": 0
}
]
},
"userList": {
"userListOperationType": 0,
"userList": [
{
"_type_": 0,
"userId": 0
}
]
},
"alertrule": {
"alertName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/AlertRule' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"alertDetail": {
"alertType": 0,
"notifTypeListOperationType": 0,
"alertSeverity": 0,
"notifType": [
0
],
"criteria": {
"criteria": 0
},
"EntityList": {
"associationsOperationType": 0,
"associations": [
{
"clientId": 0,
"_type_": 0
}
]
},
"userList": {
"userListOperationType": 0,
"userList": [
{
"_type_": 0,
"userId": 0
}
]
},
"alertrule": {
"alertName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/AlertRule' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"alertDetail": {
"alertType": 0,
"notifTypeListOperationType": 0,
"alertSeverity": 0,
"notifType": [
0
],
"criteria": {
"criteria": 0
},
"EntityList": {
"associationsOperationType": 0,
"associations": [
{
"clientId": 0,
"_type_": 0
}
]
},
"userList": {
"userListOperationType": 0,
"userList": [
{
"_type_": 0,
"userId": 0
}
]
},
"alertrule": {
"alertName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/AlertRule' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"alertDetail": {
"alertType": 0,
"notifTypeListOperationType": 0,
"alertSeverity": 0,
"notifType": [
0
],
"criteria": {
"criteria": 0
},
"EntityList": {
"associationsOperationType": 0,
"associations": [
{
"clientId": 0,
"_type_": 0
}
]
},
"userList": {
"userListOperationType": 0,
"userList": [
{
"_type_": 0,
"userId": 0
}
]
},
"alertrule": {
"alertName": "string"
}
}
}'