NetAppExtensions.GetNetAppResourceUsageAsync 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 current subscription usage of the specific type
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages/{usageType}
- Operation Id: NetAppResourceUsages_Get
- Default Api Version: 2025-01-01
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetApp.Models.NetAppUsageResult>> GetNetAppResourceUsageAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string usageType, System.Threading.CancellationToken cancellationToken = default);
static member GetNetAppResourceUsageAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetApp.Models.NetAppUsageResult>>
<Extension()>
Public Function GetNetAppResourceUsageAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, usageType As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NetAppUsageResult))
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- location
- AzureLocation
The name of the Azure region.
- usageType
- String
The type of usage.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
usageType
is an empty string, and was expected to be non-empty.
subscriptionResource
or usageType
is null.