12-22-2022 10:00 AM - edited 01-04-2023 06:48 AM
I'm trying to create an endpoint via the API and assign it to a specific group and can't figure out where I'm going wrong. Can someone give me a hint?
Solved! Go to Solution.
12-22-2022 01:51 PM - edited 12-22-2022 01:52 PM
See ISE ERS API Examples for this exact example and more:
We also have https://cs.co/ise-youtube with multiple webinars on how to do ISE REST APIs like :
▶ ISE REST APIs Introduction
You can look at the Show Notes and jump ahead to the topic(s) you want.
I also have a GitHub repository with all of the examples in the webinar for you to copy and paste :
https://github.com/1homas/20221004_ISE_REST_APIs_Introduction
Since you appear to be using Python, you may also want
https://github.com/1homas/ISE_Python_Scripts
When submitting code, please use the Insert Code option so it is easier to read:
This is what you want:
curl --include --insecure --location \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--user $ISE_USERNAME:$ISE_PASSWORD \
--request POST https://$ISE_HOSTNAME/ers/config/endpoint \
--data '
{
"ERSEndPoint" : {
"name" : "Test Endpoint",
"description" : "My new endpoint",
"mac" : "00:01:02:03:04:05",
"groupId" : "a1bb2030-8c01-11e6-996c-525400b48521",
"staticGroupAssignment" : true
}
}'
12-22-2022 01:51 PM - edited 12-22-2022 01:52 PM
See ISE ERS API Examples for this exact example and more:
We also have https://cs.co/ise-youtube with multiple webinars on how to do ISE REST APIs like :
▶ ISE REST APIs Introduction
You can look at the Show Notes and jump ahead to the topic(s) you want.
I also have a GitHub repository with all of the examples in the webinar for you to copy and paste :
https://github.com/1homas/20221004_ISE_REST_APIs_Introduction
Since you appear to be using Python, you may also want
https://github.com/1homas/ISE_Python_Scripts
When submitting code, please use the Insert Code option so it is easier to read:
This is what you want:
curl --include --insecure --location \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--user $ISE_USERNAME:$ISE_PASSWORD \
--request POST https://$ISE_HOSTNAME/ers/config/endpoint \
--data '
{
"ERSEndPoint" : {
"name" : "Test Endpoint",
"description" : "My new endpoint",
"mac" : "00:01:02:03:04:05",
"groupId" : "a1bb2030-8c01-11e6-996c-525400b48521",
"staticGroupAssignment" : true
}
}'
12-22-2022 03:03 PM
Thank you Thomas. Appreciate the response.
01-04-2023 06:46 AM - edited 01-04-2023 02:05 PM
Fixed my own issue.
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