Get-VsanDisk
This cmdlet retrieves the host disks that belong to a vSAN disk group. The cmdlet retrieves both SSD and HDD types of disks.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
VMHost | VMHost[] | named |
|
Specifies the hosts that the retrieved disks are attached to. |
optional | CanonicalName | String[] | named |
|
Specifies the canonical names of the retrieved disks. |
optional | ProgressAction | ActionPreference | named |
|
|
optional | Server | VIServer[] | named |
|
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. |
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
Id | String[] | named |
|
Specifies the IDs of the retrieved disks. Note: When a list of values is specified for the Id parameter, the returned objects would have an ID that matches exactly one of the string values in that list. |
optional | ProgressAction | ActionPreference | named |
|
|
optional | Server | VIServer[] | named |
|
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. |
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
optional | CanonicalName | String[] | named |
|
Specifies the canonical names of the retrieved disks. |
optional | ProgressAction | ActionPreference | named |
|
|
optional | Server | VIServer[] | named |
|
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. |
optional | VsanDiskGroup | VsanDiskGroup[] | named |
|
Specifies the vSAN disk groups that the disks are part of. |
Output
VMware.VimAutomation.Storage.Types.V1.Vsan.VsanDiskExamples
Example 1
Get-VsanDisk -CanonicalName "DiskCanonicalName" -VMHost $vmHost
Retrieves all vSAN disks with canonical name "DiskCanonicalName" from the $vmHost virtual machine host.
Example 2
Get-VsanDisk -CanonicalName "DiskCanonicalName" -VsanDiskGroup $vsanDiskGroup
Retrieves all vSAN disks with canonical name "DiskCanonicalName" from the $vsanDiskGroup vSAN disk group.
Example 3
Get-VsanDisk -Id "MyVsanDiskId"
Retrieves the vSAN disk with ID "MyVsanDiskId".
Related Commands
VsanDisk
This cmdlet retrieves the host disks that belong to a vSAN disk group.
This cmdlet adds a host SCSI disk to a vSAN disk group.
This cmdlet removes the specified hard disks from the specified vSAN disk group.
VsanDiskGroup
This cmdlet retrieves vSAN disk groups.
This cmdlet creates a new vSAN disk group backed by the specified devices.
This cmdlet removes vSAN disk groups.