Share via


PureStorageAvsVmVolumeCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • 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.NullableResponse<Azure.ResourceManager.PureStorageBlock.PureStorageAvsVmVolumeResource>> GetIfExistsAsync(string volumeId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.PureStorageBlock.PureStorageAvsVmVolumeResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.PureStorageBlock.PureStorageAvsVmVolumeResource>>
Public Overridable Function GetIfExistsAsync (volumeId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(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.

Applies to