StorageAccountCollection Class
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.
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
- 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.
|
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.
|
Exists(String, Nullable<StorageAccountExpand>, CancellationToken) |
Checks to see if the resource exists in azure.
|
ExistsAsync(String, Nullable<StorageAccountExpand>, CancellationToken) |
Checks to see if the resource exists in azure.
|
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.
|
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.
|
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.
|
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.
|
GetIfExists(String, Nullable<StorageAccountExpand>, CancellationToken) |
Tries to get details for this resource from the service.
|
GetIfExistsAsync(String, Nullable<StorageAccountExpand>, CancellationToken) |
Tries to get details for this resource from the service.
|
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
Azure SDK for .NET