cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
686
Views
0
Helpful
5
Replies

Adding Device Group via Rest API

shane.lakey
Level 1
Level 1

I'm trying to add a simple Network device group and I'm getting an error on the name saying it is invalid.

ABC-DEF - Group Name

API POST - /ers/config/networkdevicegroup

Body -

{
"NetworkDeviceGroup": {
"name": "Location#All Locations#ABC-DEF",
"othername": "Location"
}
}

Response:

{
"ERSResponse": {
"operation": "POST-create-networkdevicegroup",
"messages": [
{
"title": "Validation Error - Illeagal values: [The request content has an invalid name. Please verify name contains alphanumeric characters, underscore, minus, pound signs, dot only.]",
"type": "ERROR",
"code": "Application resource validation exception"
}
],
"link": {
"rel": "related",
"href": "https://xxx:9060/ers/config/networkdevicegroup",
"type": "application/xml"
}
}
}

1. I can create the name ABC-DEF from the GUI

2. If I remove the - from the name it works

3. This used to work just fine

Please let me know what I can do to overcome this issue.

 

1 Accepted Solution

Accepted Solutions

Charlie Moreton
Cisco Employee
Cisco Employee

Please open a TAC case so an API bug can be created.

View solution in original post

5 Replies 5

Charlie Moreton
Cisco Employee
Cisco Employee

Please open a TAC case so an API bug can be created.

shane.lakey
Level 1
Level 1

That doesn't sound like a quick solution.  Can you recommend any work arounds?

You've already provided them.

  1. Remove the hyphen
  2. Create the NDG in the GUI

The truth is, you've found a bug, if you don't work with TAC to report it, then it doesn't get fixed.

shane.lakey
Level 1
Level 1

Thank you Charlie.  Any hint that this might be fixed in any other version.

Current Version:

Version 2.7.0.356
Installed Patches 2,3,7
Product Identifier (PID) ISE-VM-K9
Version Identifier (VID) V01
Serial Number (SN) xxxxxx
ADE-OS Version 3.0.7.057

I tried the same in ISE 3.2 patch 1 and get the same results. It appears you are the first to find this bug.

Please open a TAC case to report this and they can submit a bug for it.