Create Alert Definitions
Create Alert Definitions
- application/json
Request Body
- name string
alertType object
- sendIndividualNotifications boolean
associations object[]
alertTarget object
templates object
Responses
- 200
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
- id int32
- name string
{
"id": 0,
"name": "string"
}
Internal Server Error
POST /v4/alertdefinitions
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://localhost/webconsole/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
}
]
},
"sendIndividualNotifications": true,
"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"
}
}
],
"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"
}
}'
curl -L -X POST 'https://localhost/webconsole/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
}
]
},
"sendIndividualNotifications": true,
"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"
}
}
],
"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"
}
}'
curl -L -X POST 'https://localhost/webconsole/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
}
]
},
"sendIndividualNotifications": true,
"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"
}
}
],
"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"
}
}'
curl -L -X POST 'https://localhost/webconsole/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
}
]
},
"sendIndividualNotifications": true,
"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"
}
}
],
"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"
}
}'
curl -L -X POST 'https://localhost/webconsole/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
}
]
},
"sendIndividualNotifications": true,
"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"
}
}
],
"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"
}
}'
curl -L -X POST 'https://localhost/webconsole/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
}
]
},
"sendIndividualNotifications": true,
"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"
}
}
],
"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"
}
}'
curl -L -X POST 'https://localhost/webconsole/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
}
]
},
"sendIndividualNotifications": true,
"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"
}
}
],
"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"
}
}'