< Back
Get-VDisk
Post
NAME Get-VDisk
SYNOPSIS
This cmdlet lists VDisk objects based on the specified filters.
SYNTAX
Get-VDisk [[-Name] <String[]>] [-Datastore <Datastore[]>] [-Server <VIServer[]>] [<CommonParameters>]
Get-VDisk -Id <String[]> [-Server <VIServer[]>] [<CommonParameters>]
DESCRIPTION
This cmdlet lists VDisk objects based on the specified filters.
PARAMETERS
-Datastore <Datastore[]>
Specifies the datastore from which you want to retrieve the VDisk objects.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-Id <String[]>
Filters the VDisk objects by ID.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String[]>
Filters the VDisk objects by name.
Required? false
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-Server <VIServer[]>
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this
parameter, the command runs on the default servers. For more information about default servers, see the
description of Connect-VIServer.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Zero or more VDisk objects
NOTES
-------------------------- 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 LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... VDisk.html
Copy-VDisk
Move-VDisk
New-VDisk
Remove-VDisk
Set-VDisk
SYNOPSIS
This cmdlet lists VDisk objects based on the specified filters.
SYNTAX
Get-VDisk [[-Name] <String[]>] [-Datastore <Datastore[]>] [-Server <VIServer[]>] [<CommonParameters>]
Get-VDisk -Id <String[]> [-Server <VIServer[]>] [<CommonParameters>]
DESCRIPTION
This cmdlet lists VDisk objects based on the specified filters.
PARAMETERS
-Datastore <Datastore[]>
Specifies the datastore from which you want to retrieve the VDisk objects.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-Id <String[]>
Filters the VDisk objects by ID.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String[]>
Filters the VDisk objects by name.
Required? false
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-Server <VIServer[]>
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this
parameter, the command runs on the default servers. For more information about default servers, see the
description of Connect-VIServer.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Zero or more VDisk objects
NOTES
-------------------------- 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 LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... VDisk.html
Copy-VDisk
Move-VDisk
New-VDisk
Remove-VDisk
Set-VDisk