cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1342
Views
0
Helpful
3
Replies

ise 3.1.0.518 bulk endpoint as json

biZ
Level 1
Level 1

Hi,

 

Does anyone have a JSON snippet for this?  Does this work?  Documentation seems to think so...

 

https://pubhub.devnetcloud.com/media/identity-services-engine-api-v1/docs/endpoints/configuration/endpoint.html#!/endpoint/put_ers_config_endpoint_bulk_submit

 

image.png

Getting a "XML Schema Validation Failed :: at line 1, column 1 : Content is not allowed in prolog."

 

i have this working with XML, alternatively, can someone share the appropriate xml for a bulk operation?  The XML I had working in 2.x is returning an ERS Validation error "Default values have been used"

3 Replies 3

thomas
Cisco Employee
Cisco Employee

It is difficult troubleshoot scripting and API issues without actual code.

If you have a query working with XML output, the only difference for JSON vs XML should be the Accept: application/json header instead of Accept: application/xml.

hslai
Cisco Employee
Cisco Employee

You are correct that bulk requests with ISE ERS work with XML only.

As Thomas suggested, we need to see an example of your XML request to validate its working in ISE 2.x and not working in ISE 3.x.

 

biZ
Level 1
Level 1

It is working with XML, i'm just getting a weird error in the ISE not sure what i'm doing wrong.  Working on 2.x without issues.

xmlheaders = {'Content-Type': 'application/xml',
              'Accept': 'application/xml'}


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:endpointBulkRequest operationType="create"
                         resourceMediaType="vnd.com.cisco.ise.identity.endpoint.1.0+xml"
                         xmlns:xs="http://www.w3.org/2001/XMLSchema"
                         xmlns:ns4="identity.ers.ise.cisco.com">
	<ns4:resourcesList>
		<ns4:endpoint description="00:0a:f7:89:2e:08">
			<groupId>d2c81410-ba15-11ec-9930-4e2799c40b5c</groupId>
			<mac>00:0a:f7:89:2e:08</mac>
			<staticGroupAssignment>true</staticGroupAssignment>
			<staticProfileAssignment>false</staticProfileAssignment>
		</ns4:endpoint>
		<ns4:endpoint description="b8:a4:4f:2e:82:94">
			<groupId>eebf0820-bad5-11ec-9930-4e2799c40b5c</groupId>
			<mac>b8:a4:4f:2e:82:94</mac>
			<staticGroupAssignment>true</staticGroupAssignment>
			<staticProfileAssignment>false</staticProfileAssignment>
		</ns4:endpoint>
		<ns4:endpoint description="b8:a4:4f:2e:82:93">
			<groupId>eebf0820-bad5-11ec-9930-4e2799c40b5c</groupId>
			<mac>b8:a4:4f:2e:82:93</mac>
			<staticGroupAssignment>true</staticGroupAssignment>
			<staticProfileAssignment>false</staticProfileAssignment>
		</ns4:endpoint>
	</ns4:resourcesList>
</ns4:endpointBulkRequest>
 

Untitled.png

 

The endpoints are uploaded correctly, just wondering what the issue is?

 

Cheers!