Get-XenRepositoryProperty

Last published : Nov 12, 2026
Gets a property of a Repository object.

Syntax

Get-XenRepositoryProperty [-Repository] <Repository>
    -XenProperty {Uuid | NameLabel | NameDescription | BinaryUrl | SourceUrl | Update | Hash | UpToDate | GpgkeyPath | Origin | Certificate}
    [-BestEffort] [-SessionOpaqueRef <string>] [<CommonParameters>]
Get-XenRepositoryProperty [-Ref] <XenRef[Repository]>
    -XenProperty {Uuid | NameLabel | NameDescription | BinaryUrl | SourceUrl | Update | Hash | UpToDate | GpgkeyPath | Origin | Certificate}
    [-BestEffort] [-SessionOpaqueRef <string>] [<CommonParameters>]

Description

Gets a specified property of a Repository object. Use the -XenProperty parameter to select which property to retrieve.
Uuid: Get the uuid field of the given Repository.
NameLabel: Get the name/label field of the given Repository.
NameDescription: Get the name/description field of the given Repository.
BinaryUrl: Get the binary\_url field of the given Repository.
SourceUrl: Get the source\_url field of the given Repository.
Update: Get the update field of the given Repository.
Hash: Get the hash field of the given Repository.
UpToDate: Get the up\_to\_date field of the given Repository. (Removed.)
GpgkeyPath: Get the gpgkey\_path field of the given Repository.
Origin: Get the origin field of the given Repository.
Certificate: Get the certificate field of the given Repository.

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

-Ref

The Repository object to operate on, specified by its opaque reference.
Attribute Value
Type XenRef[Repository]
Required True
Position 0
Accepts pipeline input True (ByPropertyName)
Aliases opaque_ref

-Repository

The Repository object to operate on.
Attribute Value
Type Repository
Required True
Position 0
Accepts pipeline input True (ByValue)

-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 XenRepositoryProperty
Required True
Position Named
Accepts pipeline input False
Accepted values Uuid, NameLabel, NameDescription, BinaryUrl, SourceUrl, Update, Hash, UpToDate, GpgkeyPath, Origin, Certificate

Inputs

  • Repository
  • XenRef[Repository]

Outputs

  • System.Object

Examples

Example 1: Get the BinaryUrl property

PS> Get-XenRepository -Name "Demo Repository" | Get-XenRepositoryProperty -XenProperty BinaryUrl
Gets the BinaryUrl property of a Repository.

Example 2: Get the SourceUrl property

PS> Get-XenRepository -Name "Demo Repository" | Get-XenRepositoryProperty -XenProperty SourceUrl
Gets the SourceUrl property of a Repository.

Example 3: Get the Update property

PS> Get-XenRepository -Name "Demo Repository" | Get-XenRepositoryProperty -XenProperty Update
Gets the Update property of a Repository.