06-28-2023 06:33 AM
I am trying to update the network device location and type using the PATCH method for the ers/config/networkdevice/name/{name} API endpoint. Please see attached screenshot for details.
Response below:
"ERSResponse": {
"operation": "PATCH-patch by name-networkdevice",
"messages": [
{
"title": "Validation Error - Illegal values: [trustsecsettings: sgaNotificationAndUpdates: coaSourceHost must be a valid value of node type Standalone/PPAN/Policy with Session services]",
"type": "ERROR",
"code": "Application resource validation exception"
}
],
Solved! Go to Solution.
07-02-2023 07:25 AM
@rajgar The error is about TrustSec settings so it appears that you had it configured but that caused validation error.
I tried one with RADIUS but no TrustSec settings and was able to update the groups. Here is my test input:
curl --include --insecure --location \
--header 'Content-Type:application/json' \
--header 'Accept: application/json' \
--user $ise_username:$ise_password \
--request PATCH https://$ise_hostname/ers/config/networkdevice/name/PATCH_Test \
--data '
{
"NetworkDevice" : {
"NetworkDeviceGroupList" : [
"Location#All Locations",
"Device Type#All Device Types#TEST",
"IPSEC#Is IPSEC Device#No",
"Vendors#Vendors",
"Deployment Phase#Deployment Phase#test"]
}
}'
07-02-2023 07:25 AM
@rajgar The error is about TrustSec settings so it appears that you had it configured but that caused validation error.
I tried one with RADIUS but no TrustSec settings and was able to update the groups. Here is my test input:
curl --include --insecure --location \
--header 'Content-Type:application/json' \
--header 'Accept: application/json' \
--user $ise_username:$ise_password \
--request PATCH https://$ise_hostname/ers/config/networkdevice/name/PATCH_Test \
--data '
{
"NetworkDevice" : {
"NetworkDeviceGroupList" : [
"Location#All Locations",
"Device Type#All Device Types#TEST",
"IPSEC#Is IPSEC Device#No",
"Vendors#Vendors",
"Deployment Phase#Deployment Phase#test"]
}
}'
07-03-2023 05:05 AM
that makes sense. Appreciate sharing a working example.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide