Udostępnij za pośrednictwem


StorageExtensions Class

Definition

A class to add extension methods to Azure.ResourceManager.Storage.

public static class StorageExtensions
type StorageExtensions = class
Public Module StorageExtensions
Inheritance
StorageExtensions

Methods

CheckStorageAccountNameAvailability(SubscriptionResource, StorageAccountNameAvailabilityContent, CancellationToken)

Checks that the storage account name is valid and is not already in use.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability
  • Operation Id: StorageAccounts_CheckNameAvailability
  • Default Api Version: 2023-05-01
  • Resource: StorageAccountResource
CheckStorageAccountNameAvailabilityAsync(SubscriptionResource, StorageAccountNameAvailabilityContent, CancellationToken)

Checks that the storage account name is valid and is not already in use.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability
  • Operation Id: StorageAccounts_CheckNameAvailability
  • Default Api Version: 2023-05-01
  • Resource: StorageAccountResource
GetBlobContainerResource(ArmClient, ResourceIdentifier)

Gets an object representing a BlobContainerResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a BlobContainerResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetBlobContainerResource(ResourceIdentifier) instead.

GetBlobInventoryPolicyResource(ArmClient, ResourceIdentifier)

Gets an object representing a BlobInventoryPolicyResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, BlobInventoryPolicyName) to create a BlobInventoryPolicyResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetBlobInventoryPolicyResource(ResourceIdentifier) instead.

GetBlobServiceResource(ArmClient, ResourceIdentifier)

Gets an object representing a BlobServiceResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a BlobServiceResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetBlobServiceResource(ResourceIdentifier) instead.

GetDeletedAccount(SubscriptionResource, AzureLocation, String, CancellationToken)

Get properties of specified deleted account resource.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/deletedAccounts/{deletedAccountName}
  • Operation Id: DeletedAccounts_Get
  • Default Api Version: 2023-05-01
  • Resource: DeletedAccountResource
GetDeletedAccountAsync(SubscriptionResource, AzureLocation, String, CancellationToken)

Get properties of specified deleted account resource.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/deletedAccounts/{deletedAccountName}
  • Operation Id: DeletedAccounts_Get
  • Default Api Version: 2023-05-01
  • Resource: DeletedAccountResource
GetDeletedAccountResource(ArmClient, ResourceIdentifier)

Gets an object representing a DeletedAccountResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, AzureLocation, String) to create a DeletedAccountResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDeletedAccountResource(ResourceIdentifier) instead.

GetDeletedAccounts(SubscriptionResource)

Gets a collection of DeletedAccountResources in the SubscriptionResource. MockingTo mock this method, please mock GetDeletedAccounts() instead.

GetDeletedAccounts(SubscriptionResource, CancellationToken)

Lists deleted accounts under the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Storage/deletedAccounts
  • Operation Id: DeletedAccounts_List
  • Default Api Version: 2023-05-01
  • Resource: DeletedAccountResource
GetDeletedAccountsAsync(SubscriptionResource, CancellationToken)

Lists deleted accounts under the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Storage/deletedAccounts
  • Operation Id: DeletedAccounts_List
  • Default Api Version: 2023-05-01
  • Resource: DeletedAccountResource
GetEncryptionScopeResource(ArmClient, ResourceIdentifier)

Gets an object representing an EncryptionScopeResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create an EncryptionScopeResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetEncryptionScopeResource(ResourceIdentifier) instead.

GetFileServiceResource(ArmClient, ResourceIdentifier)

Gets an object representing a FileServiceResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a FileServiceResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetFileServiceResource(ResourceIdentifier) instead.

GetFileShareResource(ArmClient, ResourceIdentifier)

Gets an object representing a FileShareResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a FileShareResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetFileShareResource(ResourceIdentifier) instead.

GetImmutabilityPolicyResource(ArmClient, ResourceIdentifier)

Gets an object representing an ImmutabilityPolicyResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create an ImmutabilityPolicyResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetImmutabilityPolicyResource(ResourceIdentifier) instead.

GetNetworkSecurityPerimeterConfigurationResource(ArmClient, ResourceIdentifier)

Gets an object representing a NetworkSecurityPerimeterConfigurationResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a NetworkSecurityPerimeterConfigurationResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetNetworkSecurityPerimeterConfigurationResource(ResourceIdentifier) instead.

GetObjectReplicationPolicyResource(ArmClient, ResourceIdentifier)

Gets an object representing an ObjectReplicationPolicyResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create an ObjectReplicationPolicyResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetObjectReplicationPolicyResource(ResourceIdentifier) instead.

GetQueueServiceResource(ArmClient, ResourceIdentifier)

Gets an object representing a QueueServiceResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a QueueServiceResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetQueueServiceResource(ResourceIdentifier) instead.

GetSkus(SubscriptionResource, CancellationToken)

Lists the available SKUs supported by Microsoft.Storage for given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Storage/skus
  • Operation Id: Skus_List
  • Default Api Version: 2023-05-01
GetSkusAsync(SubscriptionResource, CancellationToken)

Lists the available SKUs supported by Microsoft.Storage for given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Storage/skus
  • Operation Id: Skus_List
  • Default Api Version: 2023-05-01
GetStorageAccount(ResourceGroupResource, 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
GetStorageAccountAsync(ResourceGroupResource, 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
GetStorageAccountLocalUserResource(ArmClient, ResourceIdentifier)

Gets an object representing a StorageAccountLocalUserResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a StorageAccountLocalUserResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetStorageAccountLocalUserResource(ResourceIdentifier) instead.

GetStorageAccountManagementPolicyResource(ArmClient, ResourceIdentifier)

Gets an object representing a StorageAccountManagementPolicyResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, ManagementPolicyName) to create a StorageAccountManagementPolicyResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetStorageAccountManagementPolicyResource(ResourceIdentifier) instead.

GetStorageAccountMigrationResource(ArmClient, ResourceIdentifier)

Gets an object representing a StorageAccountMigrationResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, StorageAccountMigrationName) to create a StorageAccountMigrationResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetStorageAccountMigrationResource(ResourceIdentifier) instead.

GetStorageAccountResource(ArmClient, ResourceIdentifier)

Gets an object representing a StorageAccountResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a StorageAccountResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetStorageAccountResource(ResourceIdentifier) instead.

GetStorageAccounts(ResourceGroupResource)

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

GetStorageAccounts(SubscriptionResource, CancellationToken)

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

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts
  • Operation Id: StorageAccounts_List
  • Default Api Version: 2023-05-01
  • Resource: StorageAccountResource
GetStorageAccountsAsync(SubscriptionResource, CancellationToken)

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

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts
  • Operation Id: StorageAccounts_List
  • Default Api Version: 2023-05-01
  • Resource: StorageAccountResource
GetStoragePrivateEndpointConnectionResource(ArmClient, ResourceIdentifier)

Gets an object representing a StoragePrivateEndpointConnectionResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a StoragePrivateEndpointConnectionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetStoragePrivateEndpointConnectionResource(ResourceIdentifier) instead.

GetStorageQueueResource(ArmClient, ResourceIdentifier)

Gets an object representing a StorageQueueResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a StorageQueueResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetStorageQueueResource(ResourceIdentifier) instead.

GetStorageTaskAssignmentResource(ArmClient, ResourceIdentifier)

Gets an object representing a StorageTaskAssignmentResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a StorageTaskAssignmentResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetStorageTaskAssignmentResource(ResourceIdentifier) instead.

GetTableResource(ArmClient, ResourceIdentifier)

Gets an object representing a TableResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a TableResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetTableResource(ResourceIdentifier) instead.

GetTableServiceResource(ArmClient, ResourceIdentifier)

Gets an object representing a TableServiceResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a TableServiceResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetTableServiceResource(ResourceIdentifier) instead.

GetUsagesByLocation(SubscriptionResource, AzureLocation, CancellationToken)

Gets the current usage count and the limit for the resources of the location under the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages
  • Operation Id: Usages_ListByLocation
  • Default Api Version: 2023-05-01
GetUsagesByLocationAsync(SubscriptionResource, AzureLocation, CancellationToken)

Gets the current usage count and the limit for the resources of the location under the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages
  • Operation Id: Usages_ListByLocation
  • Default Api Version: 2023-05-01

Applies to