This website uses cookies essential to its operation, for analytics, and for personalized content. By continuing to browse this site, you acknowledge the use of cookies. For details on cookie usage on our site, read our Privacy Policy
Hello, I have been trying to figure out if there is a way to enable and disable TS Agents through the API. We run a bunch of Citrix farms and the agents will be going up and down during reboots and usage. What I want to do is to disable a server when it goes down and then enable it when it comes back up. I have searched through the /api commands and the API pdf download but, nothing is explained all that well and the site doesn't seem to have many questions about it. Below is what I have pieced together from testing other code but, it doesn't seem to work. I keep getting the error below. https://10.5.1.8/api/?type=config&action=edit&key=****&xpath=/config/devices/entry/vsys/entry[@name='vsys1']/user-id-agent/entry[@name='usragent02']&element= <entry name='usragent02><disabled>yes</disabled></entry> <response status =" success " code =" 19 " > <result total-count =" 1 " count =" 1 " > <config> <rematch> yes </rematch> </config> </result> </response>
... View more