Share via


HciExtensions.GetStorageContainers Method

Definition

Overloads

GetStorageContainers(ResourceGroupResource)

Gets a collection of StorageContainerResources in the ResourceGroupResource. MockingTo mock this method, please mock GetStorageContainers() instead.

GetStorageContainers(SubscriptionResource, CancellationToken)

Lists all of the storage containers in the specified subscription. Use the nextLink property in the response to get the next page of storage containers.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/storageContainers
  • Operation Id: StorageContainers_ListAll

GetStorageContainers(ResourceGroupResource)

Source:
HciExtensions.cs

Gets a collection of StorageContainerResources in the ResourceGroupResource. MockingTo mock this method, please mock GetStorageContainers() instead.

public static Azure.ResourceManager.Hci.StorageContainerCollection GetStorageContainers (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetStorageContainers : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Hci.StorageContainerCollection
<Extension()>
Public Function GetStorageContainers (resourceGroupResource As ResourceGroupResource) As StorageContainerCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of StorageContainerResources and their operations over a StorageContainerResource.

Exceptions

resourceGroupResource is null.

Applies to

GetStorageContainers(SubscriptionResource, CancellationToken)

Source:
HciExtensions.cs

Lists all of the storage containers in the specified subscription. Use the nextLink property in the response to get the next page of storage containers.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/storageContainers
  • Operation Id: StorageContainers_ListAll
public static Azure.Pageable<Azure.ResourceManager.Hci.StorageContainerResource> GetStorageContainers (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetStorageContainers : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Hci.StorageContainerResource>
<Extension()>
Public Function GetStorageContainers (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of StorageContainerResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of StorageContainerResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to