Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Updating variable value using script on some other server #4036

zaara1 ·

Suppose I am working on server X .I have a script on that server X which wants to update the value of a variable (z_variable)present in configuration A>B on some other server Z.How can one do that.Please let me know how to script that.Thanks

  • replies 5
  • views 626
  • stars 0
robinshen ADMIN ·

Unfortunately this is not possible. Can you please describe your usage scenario? Maybe we can find some other approaches.

zaara1 ·

I have to send the value of a certain variable on server Z from server X.The result of certain variable which is being computed on server X needs to be send to server Z.On server Z this variable is under the configuration A>B.

robinshen ADMIN ·
zaara1 ·

If I do not want to create a job which will change the value of variable and I trigger that job from other server using rest api.
Isnt there any rest api which can change tha variable value.
As I checked below is the way of changing
Retrieve full xml representation of configuration root/test into a temp file using below command: curl -u admin:admin http://localhost:8810/rest/configurations/ > tempfile.xml
Here needs to be replaced with query result of first step.

3.Edit tempfile.xml and change the description property to desired value (or add description element if it does not exist).
4.Post back modified content using below command: curl -X POST -u admin:admin --data-binary "@tempfile.xml" http://localhost:8810/rest/configurations

Can we know any direct rest api to change value of a variable instead of fetching full xml and editing and then reposting it.

robinshen ADMIN ·

Currently no, you may submit an improvement request at track.pmease.com