Citrix Virtual Apps and Desktops SDK

Get-Applibappdisk

Gets the list of AppDisks.

Syntax

Get-AppLibAppDisk [[-AppDiskName] <String>] [-AppDiskUid <Guid>] [-ScopeId <Guid>] [-ScopeName <String>] [-ReturnTotalRecordCount] [-MaxRecordCount <Int32>] [-Skip <Int32>] [-SortBy <String>] [-Filter <String>] [-BearerToken <String>] [-AdminAddress <String>] [<CommonParameters>]
<!--NeedCopy-->

Detailed Description

Lets you retrieve the list of defined AppDisks.

Parameters

Name Description Required? Pipeline Input Default Value
AppDiskName The name of the AppDisk. false false  
AppDiskUid The unique identifier of the AppDisk. false false  
ScopeId Gets only results with a scope matching the specified scope identifier. false false  
ScopeName Gets only results with a scope matching the specified scope name. false false  
ReturnTotalRecordCount See about_Prov_Filtering for details. false false false
MaxRecordCount See about_Prov_Filtering for details. false false false
Skip See about_Prov_Filtering for details. false false 0
SortBy See about_Prov_Filtering for details. false false  
Filter See about_Prov_Filtering for details. false false  
BearerToken Specifies the bearer token assigned to the calling user false false  
AdminAddress Specifies the address of a XenDesktop controller that the PowerShell snap-in connects to. You can provide this as a host name or an IP address. false false LocalHost. When a value is provided by any cmdlet, this value becomes the default.

Input Type

Return Values

Citrix.Applibrary.Sdk.Appdisk
This Object Provides Details Of The Appdisk And Contains The Following Information:
Appdiskuid <Guid>
The Unique Identifier For The Appdisk.
Appdiskname <String>
The Name Of The Appdisk.
Description <String>
A Description Of The Appdisk.
Hostingunituid <Guid>
The Unique Identifier Of The Hosting Unit (From The Hosting Unit Powershell Snap-In) That The Scheme Uses.
Hostingunitname <String>
The Name Of The Hosting Unit (From The Hosting Unit Powershell Snap-In) That The Scheme Uses.
Virtualdiskid <Datetime>
The Mcs Disk Identifier For The Appdisk.
Taskid <Guid>
The Identifier Of Any Current Task That Is Running For The Appdisk.
Disklocaluid <Guid>
The Appdna Identifier For The Disk.
Disklocalversion <Guid>
The Appdna Version Specifier For The Disk.
Scopes <Scopereference[]>
The Delegated Administration Scopes In Which The Appdisk Falls
Task <Task<
The State Of Any Current Task That Is Running For The Appdisk.
State <Appdiskstate>
The Overall Lifecycle State Of The Appdisk
Statestring <String>
The Overall Lifecycle State Of The Appdisk As A String
Appdnastate <Appdnastate>
The Appdna Lifecycle State Of The Appdisk
Appdnastatestring <String>
The Appdna Lifecycle State Of The Appdisk As A String
Newversioncreationinprogress <Bool>
A Value Indicating Whether A New Version Of This Appdisk Is Currently Being Created

Notes

In the case of failure, the following errors can result.
Error Codes
———–
PartialData
Only a subset of the available data was returned.
CouldNotQueryDatabase
The query to get the database was not defined.
PermissionDenied
The user does not have administrative rights to perform this operation.
ConfigurationLoggingError
The operation could not be performed because of a configuration logging error.
CommunicationError
An error occurred while communicating with the service.
DatabaseNotConfigured
The operation could not be completed because the database for the service is not configured.
InvalidFilter
A filtering expression was supplied that could not be interpreted for this cmdlet.
ExceptionThrown
An unexpected error occurred. To locate more details, see the Windows event logs on the controller being used, or examine the XenDesktop logs.

Examples

Example 1

C:\PS>Get-AppLibAppDisk

          AppDiskUid                  : 7585f0de-192e-4847-a6d8-22713c3a2f42

          AppDiskName                 : Disk1

          Description                 : Microsoft Office 2013

          MasterStorageID             : 03743136-e43b-4a87-af74-ab71686b3c16

          MasterDiskID                : c0571690-4f57-4476-901b-fe64d6aecb79

          HostingUnitUid              : 01a4a008-8ce8-4165-ba9c-cdf15a6b0501

          HostingUnitName             : HostUnit1

          TaskId                      : 00000000-0000-0000-0000-000000000000

          DiskLocalUid                : 4F8323D9-6978-4CA0-8231-22F9185C71B6

          DiskLocalVersion            : DDA81A28-6BF4-41E1-A120-67F72C164DF6

          DiskParentVersion           :

          Scopes                      :

          Task                        :

          State                       : Ready

          StateString                 : Ready

          AppDNAState                 : NoData

          AppDNAStateString           : NoData

          AppDiskUid                  : 43d82099-1fd7-4617-93f0-25b160813905

          AppDiskName                 : Disk2

          Description                 : Finance Suite

          MasterStorageID             : 03743136-e43b-4a87-af74-ab71686b3c16

          MasterDiskID                : 022cd6e4-34cb-3f7c-e02a-44ac404483b4

          HostingUnitUid              : 01a4a008-8ce8-4165-ba9c-cdf15a6b0501

          HostingUnitName             : HostUnit1

          TaskId                      : 00000000-0000-0000-0000-000000000000

          DiskLocalUid                : 5713AB4B-A021-4D9D-A04C-D80BB1126C19

          DiskLocalVersion            : 72967010-CA6F-467B-9D46-499EF595F02B

          DiskParentVersion           :

          Scopes                      :

          Task                        :

          State                       : Ready

          StateString                 : Ready

          AppDNAState                 : NoData

          AppDNAStateString           : NoData
<!--NeedCopy-->

Description

Returns all of the available AppDisks.

Example 2

C:\PS>Get-AppDisk -AppDiskName Disk[0-1]

          AppDiskUid                  : 7585f0de-192e-4847-a6d8-22713c3a2f42

          AppDiskName                 : Disk1

          Description                 : Microsoft Office 2013

          MasterStorageID             : 03743136-e43b-4a87-af74-ab71686b3c16

          MasterDiskID                : c0571690-4f57-4476-901b-fe64d6aecb79

          HostingUnitUid              : 01a4a008-8ce8-4165-ba9c-cdf15a6b0501

          HostingUnitName             : HostUnit1

          TaskId                      : 00000000-0000-0000-0000-000000000000

          DiskLocalUid                : 4F8323D9-6978-4CA0-8231-22F9185C71B6

          DiskLocalVersion            : DDA81A28-6BF4-41E1-A120-67F72C164DF6

          Scopes                      :

          Task                        :

          State                       : Ready

          StateString                 : Ready

          AppDNAState                 : NoData

          AppDNAStateString           : NoData
<!--NeedCopy-->

Description

Returns all of the AppDisks that have the name ‘Disk0’ or ‘Disk1’.

Get-Applibappdisk