Hi all. Relatively new to using the API, and having an issue that is troubling me. Perhaps someone could help out. We have a requirement to move a large number of addresses and address-groups from the Shared region, to specific device-groups, as part of a major clean-up operation. I have taken this on, as the automation guy, and am running into an error that doesn't make total sense to me, when i try to move an address. My feeling is that there is a mistake in the request that I'm making that is causing the error to occur, but I'm not familiar enough with the API syntax to be able to readily diagnose. I am trying to move the address 'python test' from Shared to DC03-QAINTERNET, and I've been basing the attempts off the notes here: https://docs.paloaltonetworks.com/pan-os/9-1/pan-os-panorama-api/pan-os-xml-api-request-types/configuration-api/move-configuration Here is the call I'm making: https://URL/api/ ? APIKEY& type =config&action=move&xpath=/config/shared/address/entry[@name= 'python test' ] &cmd= <request cmd= "multi-move" to= "/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='Extranet-Shared']/address" > <selected- list > <source xpath= "/config/shared/address" > <member>python test</member> </source> </selected- list > < all -errors>no</ all -errors> </request> (I've broken out the xml for easier reading) I have edited this call from the original call in the documentation I found, but the result is the same. I got the above xml from using the Debug feature, recording the move when I did it in the UI, and tried to incorporate it using the documentation. I get this response: <response status="error" code="13"><msg><line>Cannot move a top level object that is not moveable</line></msg></response> the problem is that I know this is a moveable address, as I have moved it back and forth using the UI. I'm using the show command before calling the move command, and that is working successfully. I have created this address in the Shared space, and it is not in an address group, so that's not an issue. I have edited the call from the original call in the documentation I found, but the result is the same. I got the above xml from using the Debug feature, recording the move when I did it in the UI. Another thing that I wonder about is that, looking up the error codes here (https://docs.paloaltonetworks.com/pan-os/9-1/pan-os-panorama-api/get-started-with-the-pan-os-xml-api/pan-os-xml-api-error-codes) i see that error code 13 is 'Object not found', which makes me thing that there's something in my syntax that's off a little. Any help with this would be greatly appreciated. Thank you, -Timothy
... View more