Create Intent
Intent Creation
Add a new Intent Configuration; Available values for highlighted field names: alertType: [ Intent, SdwanIntent ] enabled : [ true , false ] severity : [ Warning, Critical, Moderate, Info ] intentTypeId : [ MtuMismatch, HsrpStpColocation, PortModeMismatch, NativeVlanMismatch, TrunkPortVlanMismatch, DuplexMismatch, PortChannelMismatch, DuplicateMacAddress, DuplicateIPAddress, StpMetricInconsistency ]
Some of these intent types support additional paramters. Available parameters values for those intent types are as follows:
intentTypeId | paramValues.id | ValueType | Values |
---|---|---|---|
DuplexMismatch | CheckMgmtInterface | BOOLEAN | true , false |
SkipWhenNoInfo | BOOLEAN | true , false | |
SkipAutoDuplex | BOOLEAN | true , false | |
HsrpConfiguration | SkipDownInterfaces | BOOLEAN | true , false |
CheckActiveStandby | BOOLEAN | true , false | |
CheckSingleActive | BOOLEAN | true , false | |
MtuMismatch | CheckMgmtInterface | BOOLEAN | true , false |
SkipWhenNoInfo | BOOLEAN | true , false | |
DuplicateMacAddress | -- | ||
DuplicateIPAddress | -- | ||
HsrpStpColocation | -- | ||
NativeVlanMismatch | -- | ||
NativeVlanTagMismatch | -- | ||
PortChannelMismatch | -- | ||
PortModeMismatch | -- | ||
StpMetricInconsistency | -- | ||
TrunkPortVlanMismatch | -- |
{
"name": "mtuCheck",
"alertType": "Intent",
"intentTypeId": "MtuMismatch",
"filterRules": {
"isValid": "string",
"filterType": "string",
"rules": [
{
"membership": {
"membershipType": "string",
"objectType": 0,
"entities": [
{
"modelKey": "string",
"name": "string"
}
],
"query": "string"
}
}
]
},
"paramValues": [
{
"id": "min-violation-duration",
"values": "VIOLATION_DURATION_FIVE_MINUTES",
"valueType": "FIXED_MULTI_CHOICE_SINGLE_VALUE"
}
],
"selected_scope": "All Applications",
"description": "Monitor traffic rate and total bandwidth for applications",
"enabled": true,
"severity": "Info",
"notes": "Mtu check",
"tags": [
" [\"Device Health\", \"MTU\", \"dummy\"]"
],
"notificationSettings": [
{
"type": "string",
"frequency": "string",
"enabled": true,
"receivers": [
"string"
],
"schedule": [
{
"type": "string",
"periodInMS": 0,
"startTimestamp": 0
}
]
}
]
}
Intent name
Intent type
Intent type
filterRules
Intent parameters
Intent scope
Intent description
enabled
Intent severity
Intent notes
Intent tags
notificationSettings
OK
"AlertConfigIntentResponse Object"
Intent type
categories
Intent description
enabled
Exclusion parameters
filterRules
Intent type
Intent model key
Intent name
Intent notes
notificationSettings
Intent parameters
Intent scope
Intent severity
Intent tags
Bad Request
"ApiError Object"
code
message
details
Un-authorized
"ApiError Object"
code
message
details
Name conflicts with already existing intent
"ApiError Object"
code
message
details
Internal Error
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/api/ni/alert-configs/intents/