...
- Output Host (type: List<KeyValuePair<string,string>): outputs an object of type List<KeyValuePair<string,string>. Key is Hostname and value is UUID.
For getting each item from the output object we recommend using the Custom ForEach activity of KeyValuePair<String,String>.
List Hosts VMs
This activity retrives a list of VM Hosts
Activity Parameters
The List Hosts VMs activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- Connection (text box editor type) (type: string): the Citrix Host Session. The Output from Connect to Citrix activity should be used as Input here.
- Address (text box editor type) (type: string): enter the IP Address of the Host (e.g. 10.201.0.21)
- Hostname (text box editor type) (type: string): enter the Hostname of target machine. In order to obtain hostname value you can use ListPoolHosts activity.
- UUID (text box editor type) (type: string): enter the UUID of the host. Takes precedence over the Hostname. In order to obtain the UUID value you can use ListPoolHosts activity
The Read Only Output parameters block contains the possible output values that the activity will provide:
- Output Count (type: string) : outputs the number of VMs
- Output VMs List (type: List<KeyValuePair<string,List<KeyValuePair<string,string>>>): outputs an object of typeList<KeyValuePair<string,List<KeyValuePair<string,string>>>. You can access the items with the following keys power_state, name_label, name_description, uuid.
- To retrive the items you will need 2 foreach activities as in the image above. The first one will need to be type KeyValuePair<string,List<KeyValuePair<string,string>>. In Iterator.key you will retrive the UUID for each VM in the host. Tthe second foreach will be <KeyValuePair<string,string> and will get as argument Iterator.Value from the first. This one will retrive in Iterator1,key power_state, name_label, name_description, uuid and in Iterator1.Value the values for each key.
To retrive the items
Set HA state
This activity enables High Availability for pool.
Activity Parameters
The Set HA state activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity returns the state of HA
Activity Parameters
The Get HA state activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity designates a new pool master.
Activity Parameters
The Designate Pool activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity changes the maintenance mode of a host if it's not Pool Master.
Activity Parameters
The Maintenance Mode activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity returns the maintenance status of host.
Activity Parameters
The Get Maintenance mode activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity shuts down Citrix Guest.
Activity Parameters
The Guest ShutDown By Name activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity shuts down Citrix Host.
Activity Parameters
The ShutDown Host By IP activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity force shuts down Citrix Host.
Activity Parameters
The Force ShutDown Host By IP activity parameters can be provided by manual inserted values or via IN arguments or variables:
...