MockableFileSharesSubscriptionResource.GetUsageDataAsync Method
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.
Get file shares usage data.
- Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.FileShares/locations/{location}/getUsageData.
- Operation Id. : InformationalOperations_GetUsageData.
- Default Api Version. : 2025-09-01-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.FileShares.Models.FileShareUsageDataResult>> GetUsageDataAsync(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
abstract member GetUsageDataAsync : Azure.Core.AzureLocation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.FileShares.Models.FileShareUsageDataResult>>
override this.GetUsageDataAsync : Azure.Core.AzureLocation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.FileShares.Models.FileShareUsageDataResult>>
Public Overridable Function GetUsageDataAsync (location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of FileShareUsageDataResult))
Parameters
- location
- AzureLocation
The name of the Azure region.
- cancellationToken
- CancellationToken
The cancellation token to use.