- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2019 10:29 AM
I've successfully implemented a `delete` method already for endpoints via their unique id.
What I want to do is remove a specific MAC address from an identity group, without deleting the MAC itself from ISE. How do I do this?
Solved! Go to Solution.
- Labels:
-
Identity Services Engine (ISE)
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2019 11:34 AM
API_OLD_DEVICE2 = "https://ABCDEFGH:9060/ers/config/endpoint/"+ temp (or your endpoint ID string; all depends on your code)
API_ERS_USER = "ERS_USER","PASSWORD"
API_DATA = {
"ERSEndPoint" : {
"staticGroupAssignment" : "true",
"description" : "test",
"groupId" : "",
}
}
r = requests.put(url=API_OLD_DEVICE2, auth=API_ERS_USER, verify=True, json=API_DATA)
print "**********************"
print "ISE Request", r.reason
print "**********************"
See what happens when leaving groupID with "" instead of specifying a specific group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 04:07 AM
Note: To remove an endpoint from an ID group, simply change staticGroupAssignment to false.
I tried this and it worked
Source:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2019 10:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2019 10:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2019 10:39 PM
It's the "Update" operation of the endpoint API (like Mike said it's an HTTP PUT).
Do you know, that the API documentation in the ISE live system is pretty good for this?
https://{FQDN-YOUR-ISE}:9060/ers/sdk
For your specific question:
API URL: https://{FQDN-YOUR-ISE}:9060/ers/config/endpoint/{id}
Method: PUT
Content (json):
{ "ERSEndPoint" : { "groupId" : "groupId"
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2019 10:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2019 11:34 AM
API_OLD_DEVICE2 = "https://ABCDEFGH:9060/ers/config/endpoint/"+ temp (or your endpoint ID string; all depends on your code)
API_ERS_USER = "ERS_USER","PASSWORD"
API_DATA = {
"ERSEndPoint" : {
"staticGroupAssignment" : "true",
"description" : "test",
"groupId" : "",
}
}
r = requests.put(url=API_OLD_DEVICE2, auth=API_ERS_USER, verify=True, json=API_DATA)
print "**********************"
print "ISE Request", r.reason
print "**********************"
See what happens when leaving groupID with "" instead of specifying a specific group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 04:07 AM
Note: To remove an endpoint from an ID group, simply change staticGroupAssignment to false.
I tried this and it worked
Source:
