PureStorageAvsVmVolumeCollection.GetAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get a volume in an AVS VM
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PureStorage.Block/storagePools/{storagePoolName}/avsVms/{avsVmId}/avsVmVolumes/{volumeId}
- Operation Id: AvsVmVolume_Get
- Default Api Version: 2024-11-01-preview
- Resource: PureStorageAvsVmVolumeResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PureStorageBlock.PureStorageAvsVmVolumeResource>> GetAsync(string volumeId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PureStorageBlock.PureStorageAvsVmVolumeResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PureStorageBlock.PureStorageAvsVmVolumeResource>>
Public Overridable Function GetAsync (volumeId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PureStorageAvsVmVolumeResource))
Parameters
- volumeId
- String
ID of the volume in the AVS VM.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
volumeId
is an empty string, and was expected to be non-empty.
volumeId
is null.