Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the above mentioned API, only hostid is required parameter and the other parameters (id and applied) are optional. If admin wants to list all the patches that are not yet applied to a host, set the applied parameter as false and if admin wants to list the applied ones, set the applied parameter as true. If applied parameter is not passed with the API, it will return the list of all applied and not applied patches. To get the details about the single patch, admin need to pass the id (uuid)* *of the patch.

ApiName

Request parameters

Response parameters

Available to regular user

listHostsWithPendingUpdates

  • patchid
  • hostId
  • host name

No

This API will return a list of hosts which have pending updates. Admin can also search hosts with pending updates by passing a parameter patchid, it will return a list of hosts which do not have this patch applied.

New classes for client APIs

  • ListHostUpdatesCmd.java
  • HostUpdatesResponse.java
  • ListHostsWithPendingUpdatesCmd.java
  • HostsWithPendingUpdatesResponse.java

New objects interfaces:

  • HostUpdatesRef.java
  • HostUpdatesService.java

...

Changes to Existing Files:

  • Add a new method in CitrixResourceBase.java to in CitrixResourceBase.java to get the information about the applied patches to a host using XAPI *callsusing *XAPI *calls.
  • Add a new method in ResourceManagerImpl.java* *to get a list of hosts which are up and enabled by hypervisor type.
  • Add a new component HostUpdatesManager.

...