API set command always results in pending configuration changes

Reply
L0 Member

API set command always results in pending configuration changes

I'm running the following API call to change the device geo-location (which works):

 

/api/?type=config&action=set
&xpath=/config/devices/entry[@name='localhost.localdomain']
&element=<deviceconfig><system><geo-location><latitude>111</latitude></geo-location></system></deviceconfig>
 
I'd also like to validate whether that command updates the configuration or not. Every time I run the call, even if the current configuration is set to 111 (as above), the device shows pending changes.
 
The preview changes report shows no changes, but there is a pending item in 'change summary' which is of type 'Storage Parition - Setup' as below.
 
Wondering if this is the intended behaviour?
 
pending-changes.png
 
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!