Get-VDisk

This cmdlet lists VDisk objects based on the specified filters.

Syntax

[-Datastore  <Datastore[]>]
[-Name  <String[]>]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional
Datastore
Datastore[] named
  • wildcards
  • pipeline
  • Specifies the datastore from which you want to retrieve the VDisk objects.
    optional
    Name
    String[] named
  • wildcards
  • Filters the VDisk objects by name.
    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.

    -Id  <String[]>
    [-Server  <VIServer[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    Id
    String[] named Filters the VDisk objects by ID.
    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

    Feedback

    Was this page helpful?