Get-VDisk Command | Vmware PowerCLI Reference

Get-VDisk

This cmdlet lists VDisk objects based on the specified filters.

Syntax

Get-VDisk
-Id < String[] >
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Id String[] named
Filters the VDisk objects by ID.
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.
Get-VDisk
[-Datastore < Datastore[] > ]
[-Name < String[] > ]
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional Datastore Datastore[] named
  • pipeline
  • wildcards
Specifies the datastore from which you want to retrieve the VDisk objects.
optional Name String[] named
  • wildcards
Filters the VDisk objects by name.
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.

Output

VMware.VimAutomation.ViCore.Types.V1.Storage.VDisk.VDisk

Examples

Example 1

Get-VDisk -Name 'MyDisk' -Datastore $ds

Retrieves the VDisk objects named 'MyDisk' from the $ds datastore.

Example 2

Get-VDisk -Id 'VDiskId'

Retrieves the VDisk with Id 'VDiskId'.

Related Commands

VDisk

This cmdlet copies the specified VDisk objects to the specified datastore.

This cmdlet lists VDisk objects based on the specified filters.

This cmdlet moves the specified VDisk objects to the specified datastore.

This cmdlet creates a managed VDisk object whose lifecycle is independent of a virtual machine`s lifecycle on the specified datastore.

This cmdlet removes VDisk objects and the associated backings from the datastore.

This cmdlet renames, inflates, or extends the size of the specified VDisk object.