04-12-2022 05:10 PM
Hi,
Does anyone have a JSON snippet for this? Does this work? Documentation seems to think so...
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"
04-20-2022 02:20 PM
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.
04-20-2022 08:38 PM
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.
04-20-2022 09:43 PM - edited 04-20-2022 09:48 PM
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>
The endpoints are uploaded correctly, just wondering what the issue is?
Cheers!
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