Condividi tramite


StorageAccountCollection Class

Definition

A class representing a collection of StorageAccountResource and their operations. Each StorageAccountResource in the collection will belong to the same instance of ResourceGroupResource. To get a StorageAccountCollection instance call the GetStorageAccounts method from an instance of ResourceGroupResource.

public class StorageAccountCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Storage.StorageAccountResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Storage.StorageAccountResource>
type StorageAccountCollection = class
    inherit ArmCollection
    interface seq<StorageAccountResource>
    interface IEnumerable
    interface IAsyncEnumerable<StorageAccountResource>
Public Class StorageAccountCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of StorageAccountResource), IEnumerable(Of StorageAccountResource)
Inheritance
StorageAccountCollection
Implements

Constructors

StorageAccountCollection()

Initializes a new instance of the StorageAccountCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, StorageAccountCreateOrUpdateContent, CancellationToken)

Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}
  • Operation Id: StorageAccounts_Create
  • Default Api Version: 2023-05-01
  • Resource: StorageAccountResource
CreateOrUpdateAsync(WaitUntil, String, StorageAccountCreateOrUpdateContent, CancellationToken)

Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}
  • Operation Id: StorageAccounts_Create
  • Default Api Version: 2023-05-01
  • Resource: StorageAccountResource
Exists(String, Nullable<StorageAccountExpand>, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}
  • Operation Id: StorageAccounts_GetProperties
  • Default Api Version: 2023-05-01
  • Resource: StorageAccountResource
ExistsAsync(String, Nullable<StorageAccountExpand>, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}
  • Operation Id: StorageAccounts_GetProperties
  • Default Api Version: 2023-05-01
  • Resource: StorageAccountResource
Get(String, Nullable<StorageAccountExpand>, CancellationToken)

Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}
  • Operation Id: StorageAccounts_GetProperties
  • Default Api Version: 2023-05-01
  • Resource: StorageAccountResource
GetAll(CancellationToken)

Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts
  • Operation Id: StorageAccounts_ListByResourceGroup
  • Default Api Version: 2023-05-01
  • Resource: StorageAccountResource
GetAllAsync(CancellationToken)

Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts
  • Operation Id: StorageAccounts_ListByResourceGroup
  • Default Api Version: 2023-05-01
  • Resource: StorageAccountResource
GetAsync(String, Nullable<StorageAccountExpand>, CancellationToken)

Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}
  • Operation Id: StorageAccounts_GetProperties
  • Default Api Version: 2023-05-01
  • Resource: StorageAccountResource
GetIfExists(String, Nullable<StorageAccountExpand>, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}
  • Operation Id: StorageAccounts_GetProperties
  • Default Api Version: 2023-05-01
  • Resource: StorageAccountResource
GetIfExistsAsync(String, Nullable<StorageAccountExpand>, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}
  • Operation Id: StorageAccounts_GetProperties
  • Default Api Version: 2023-05-01
  • Resource: StorageAccountResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<StorageAccountResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<StorageAccountResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to