Does anybody have an idea why the following happens, and what the solution might be?
I'm trying to perform a commit-all via the REST API using the the following URL:
I get the following response even though the name of the device-group is correct:
<response status="error" code="17">
commit-all -> shared-policy -> device-group has unexpected text.
commit-all -> shared-policy -> device-group is invalid
Solved! Go to Solution.
That's what I thought at first as well, so I've already renamed the device group, made sure there are no additional characters or special characters (even took the dash out) and still I keep running into this error. I've also made a new device group, and it still won't work.
This is what works for me on 6.1
<response status="success" code="19"><result><msg><line>Job enqueued with jobid 82</line></msg><job>82</job></result></response>
Were you missing name tag? Also, it failed when I had space after PA_VM_6.1.
Can you try it?
That indeed works on 6.1, but still fails on 7.0:
<response status="error" code="17"> <msg> <line> commit-all -> shared-policy -> device-group -> name has unexpected text. </line> <line> commit-all -> shared-policy -> device-group is invalid
</line> </msg> </response>
I have a PAN config that is in json format that I want to implement on a PAN fw. It seems that the fw will only take config in "set" command format or .xml. Is there a way to drop this json config onto the fw, or convert it to a .xml format?
The XML document format to commit shared policies to device groups on Panorama using the PAN-OS XML API has changed in PAN-OS 7.0. This change is due to an enhancement to permit a commit to devices within the device group: the device group name is now an attribute node instead of a text node.
The change in the XML API request is as follows:
– PAN-OS 6.1 and earlier releases: /api/?type=commit&action=all&cmd= DeviceGroupName
– PAN-OS 7.0 and later releases: /api/?type=commit&action=all&cmd= <entryname='devicegroupname'>
I did find some bugs related to this which all seem to be fixed in PAN-OS 7.0.3.
If you still see the issue on 7.0.3 then I'd recommend opening a case with TAC.
Hope it helps.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!
The Live Community thanks you for your participation!