ATTENTION Customers, All Partners and Employees: The Customer Support Portal (CSP) will be undergoing maintenance and unavailable on Saturday, November 7, 2020, from 11 am to 11 pm PST. Please read our blog for more information.
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