Share via


MockableHciVmResourceGroupResource.GetHciVmStorageContainerAsync Method

Definition

Gets a storage container

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}
  • Operation Id: StorageContainer_Get
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmStorageContainerResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Hci.Vm.HciVmStorageContainerResource>> GetHciVmStorageContainerAsync(string storageContainerName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetHciVmStorageContainerAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Hci.Vm.HciVmStorageContainerResource>>
override this.GetHciVmStorageContainerAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Hci.Vm.HciVmStorageContainerResource>>
Public Overridable Function GetHciVmStorageContainerAsync (storageContainerName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of HciVmStorageContainerResource))

Parameters

storageContainerName
String

Name of the storage container.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

storageContainerName is null.

storageContainerName is an empty string, and was expected to be non-empty.

Applies to