cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1357
Views
5
Helpful
2
Replies

XML Template for REST API bulk adding endpoints with custom attributes

jason.w1
Level 1
Level 1

I've been able to successfully add endpoints in bulk using the PUT endpoint/bulk/submit API call, but I'm having issues finding an XML template that outlines how to add custom attributes. Can anyone assist? This is what I'm using now.

 

Thanks

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:endpointBulkRequest operationType="create" resourceMediaType="vnd.com.cisco.ise.identity.endpoint.1.0+xml" xmlns:ns4="identity.ers.ise.cisco.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns4:resourcesList>
  <ns4:endpoint>
  <groupId>xxxxxxxxxxxxxxxxxxxxxxxxxxxxx</groupId>
  <mac>00:00:00:00:00:AA</mac>
  <staticGroupAssignment>true</staticGroupAssignment>
  <staticProfileAssignment>false</staticProfileAssignment>
 </ns4:endpoint>
  <ns4:endpoint>
  <groupId>xxxxxxxxxxxxxxxxxxxxx</groupId>
  <mac>00:00:00:00:00:BB</mac>
  <staticGroupAssignment>true</staticGroupAssignment>
  <staticProfileAssignment>false</staticProfileAssignment>
 </ns4:endpoint>
</ns4:resourcesList>
</ns4:endpointBulkRequest>
1 Accepted Solution

Accepted Solutions

thomas
Cisco Employee
Cisco Employee

You must first define your custom attributes in the ISE GUI - you cannot add/create them via API.

This is shown in ISE ERS API Examples :

Once you have done that, I recommend doing a GET on an endpoint with custom attributes to see the format and you can use that for your adding/updating your existing endpoints.

ISE APIs are publicly documented @ https://cs.co/ise-api including the one for endpoint.  Note that if you open up the POST configuration it provides an example body and by changing the Parameter content type to application/xml it will show you a complete example including custom attributes:

image.png

 

View solution in original post

2 Replies 2

thomas
Cisco Employee
Cisco Employee

You must first define your custom attributes in the ISE GUI - you cannot add/create them via API.

This is shown in ISE ERS API Examples :

Once you have done that, I recommend doing a GET on an endpoint with custom attributes to see the format and you can use that for your adding/updating your existing endpoints.

ISE APIs are publicly documented @ https://cs.co/ise-api including the one for endpoint.  Note that if you open up the POST configuration it provides an example body and by changing the Parameter content type to application/xml it will show you a complete example including custom attributes:

image.png

 

Hi Thomas,

 

Thanks for the help, I should have been a little more verbose in my question. I have been able to create single endpoints with custom attributes using json, the attributes already exist in ISE. It's the XML for the bulk call that was tripping me up. I think I see how to get it working in the screenshot you shared, but my other question is, I'm not able to load the swagger UI. I've tried both https://{ise-ip}/api/swagger-ui/index.html and also with port 9060, without the port, it just takes me to the admin login, with the port, I get an error that the page cannot be found. Any advice?

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: