Get-XenHostPatch
\[Deprecated\] Gets the HostPatch objects in the pool.
Syntax
Get-XenHostPatch [[-Ref] <XenRef[Host_patch]>] [-BestEffort] [-SessionOpaqueRef <string>]
[<CommonParameters>]
Get-XenHostPatch [-Uuid] <guid> [-BestEffort] [-SessionOpaqueRef <string>]
[<CommonParameters>]
Get-XenHostPatch [-Name] <string> [-BestEffort] [-SessionOpaqueRef <string>]
[<CommonParameters>]
Description
DEPRECATED. This class has been deprecated.
Retrieves the HostPatch objects in the pool. With no parameters the cmdlet returns the whole collection; use -Name, -Uuid or -Ref to select one.
HostPatch: Represents a patch stored on a server.
Parameters
-BestEffort
If set, the cmdlet continues processing further objects instead of throwing a terminating error when an operation fails for one object.
| Attribute | Value |
|---|---|
| Type | SwitchParameter |
| Required | False |
| Position | Named |
| Accepts pipeline input | False |
-Name
The name of the HostPatch to operate on.
| Attribute | Value |
|---|---|
| Type | string |
| Required | True |
| Position | 0 |
| Accepts pipeline input | True (ByPropertyName) |
| Aliases | name_label |
-Ref
The HostPatch object to operate on, specified by its opaque reference.
| Attribute | Value |
|---|---|
| Type | XenRef[Host_patch] |
| Required | False |
| Position | 0 |
| Accepts pipeline input | True (ByPropertyName) |
| Aliases | opaque_ref |
-SessionOpaqueRef
The session object on which to run the cmdlet. This overrides the default session and lets you target a specific open XenServer connection.
| Attribute | Value |
|---|---|
| Type | string |
| Required | False |
| Position | Named |
| Accepts pipeline input | False |
-Uuid
The UUID of the HostPatch to operate on.
| Attribute | Value |
|---|---|
| Type | guid |
| Required | True |
| Position | 0 |
| Accepts pipeline input | True (ByPropertyName) |
Inputs
-
XenRef[Host_patch] -
guid -
string
Outputs
-
Host_patch[]
Examples
Example 1: List every HostPatch
PS> Get-XenHostPatch
Retrieves every HostPatch object in the pool. With no parameters the cmdlet fetches the whole collection.
Example 2: Retrieve one HostPatch by name
PS> Get-XenHostPatch -Name "Demo HostPatch"
Retrieves a single HostPatch. -Name matches on name\_label, which is not unique, so every match is operated on.
Example 3: Retrieve one HostPatch by uuid
PS> Get-XenHostPatch -Uuid 1871ac51-ce6b-efc3-7fd0-28bc65aa39ff
Retrieves a single HostPatch. -Uuid is the way to be sure of exactly one object.
Related links
-
Class: HostPatch
-
Using the XenServer PowerShell module