Get-XenPVSCacheStorageProperty
Gets a property of a PVSCacheStorage object.
Syntax
Get-XenPVSCacheStorageProperty [-PVSCacheStorage] <PVS_cache_storage>
-XenProperty {Uuid | Host | SR | Site | Size | VDI} [-BestEffort]
[-SessionOpaqueRef <string>] [<CommonParameters>]
Get-XenPVSCacheStorageProperty [-Ref] <XenRef[PVS_cache_storage]>
-XenProperty {Uuid | Host | SR | Site | Size | VDI} [-BestEffort]
[-SessionOpaqueRef <string>] [<CommonParameters>]
Description
Gets a specified property of a PVSCacheStorage object. Use the -XenProperty parameter to select which property to retrieve.
Uuid: Get the uuid field of the given PVS\_cache\_storage.
Host: Get the host field of the given PVS\_cache\_storage.
SR: Get the SR field of the given PVS\_cache\_storage.
Site: Get the site field of the given PVS\_cache\_storage.
Size: Get the size field of the given PVS\_cache\_storage.
VDI: Get the VDI field of the given PVS\_cache\_storage.
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 |
-PVSCacheStorage
The PVSCacheStorage object to operate on.
| Attribute | Value |
|---|---|
| Type | PVS_cache_storage |
| Required | True |
| Position | 0 |
| Accepts pipeline input | True (ByValue) |
-Ref
The PVSCacheStorage object to operate on, specified by its opaque reference.
| Attribute | Value |
|---|---|
| Type | XenRef[PVS_cache_storage] |
| Required | True |
| 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 |
-XenProperty
Selects which property to use.
| Attribute | Value |
|---|---|
| Type | XenPVSCacheStorageProperty |
| Required | True |
| Position | Named |
| Accepts pipeline input | False |
| Accepted values | Uuid, Host, SR, Site, Size, VDI |
Inputs
-
PVS_cache_storage -
XenRef[PVS_cache_storage]
Outputs
-
System.Object
Examples
Example 1: Get the Host property
PS> Get-XenPVSCacheStorage -Uuid 1871ac51-ce6b-efc3-7fd0-28bc65aa39ff | Get-XenPVSCacheStorageProperty -XenProperty Host
Gets the Host property of a PVSCacheStorage.
Example 2: Get the SR property
PS> Get-XenPVSCacheStorage -Uuid 1871ac51-ce6b-efc3-7fd0-28bc65aa39ff | Get-XenPVSCacheStorageProperty -XenProperty SR
Gets the SR property of a PVSCacheStorage.
Example 3: Get the Site property
PS> Get-XenPVSCacheStorage -Uuid 1871ac51-ce6b-efc3-7fd0-28bc65aa39ff | Get-XenPVSCacheStorageProperty -XenProperty Site
Gets the Site property of a PVSCacheStorage.
Related links
-
Class: PVSCacheStorage
-
Using the XenServer PowerShell module