Citrix Virtual Apps and Desktops SDK

Get-Applibappdiskobjectreference

Returns the number of objects holding references to AppDisks.

Syntax

Get-AppLibAppDiskObjectReference -AppDiskUid <Guid> [-BearerToken <String>] [-AdminAddress <String>] [<CommonParameters>]

Get-AppLibAppDiskObjectReference [-AppDiskName] <String> [-BearerToken <String>] [-AdminAddress <String>] [<CommonParameters>]
<!--NeedCopy-->

Detailed Description

Returns, for a given AppDisk name or UID, the number of references by objects in other services (e.g. Broker Desktop Groups).

Parameters

Name Description Required? Pipeline Input Default Value
AppDiskName The name of the AppDisk. true false  
AppDiskUid The unique identifier of the AppDisk. true true (ByPropertyName)  
BearerToken Specifies the bearer token assigned to the calling user false false  
AdminAddress Specifies the address of a XenDesktop controller the PowerShell snap-in will connect to. You can provide this as a host name or an IP address. false false Localhost. Once a value is provided by any cmdlet, this value becomes the default.

Input Type

Return Values

Citrix.Applibrary.Sdk.Appdiskreferences
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.
References <Appdiskusage[]>
Objects Specifying The Referencing Type (E.G. Broker Desktop Group) And The Number Of References By Objects Of That Type.

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-AppLibAppDiskObjectReference -AppDiskUid 7585f0de-192e-4847-a6d8-22713c3a2f42

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

          AppDiskName   : Disk1

          References    : {Citrix.AppLibrary.Sdk.AppDiskUsage}
<!--NeedCopy-->

Description

Returns the references to an AppDisk referenced by UID.

Example 2

C:\PS>Get-AppLibAppDiskObjectReference -AppDiskUid Disk1

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

          AppDiskName   : Disk1

          References    : {Citrix.AppLibrary.Sdk.AppDiskUsage}
<!--NeedCopy-->

Description

Returns the references to an AppDisk referenced by name.

Get-Applibappdiskobjectreference