NetAppExtensions.GetNetAppResourceUsageAsync Method

Definition

Get current subscription usage of the specific type <item> Mocking. To mock this method, please mock GetNetAppResourceUsageAsync(AzureLocation, String, CancellationToken) instead. </item>

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 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 is null.

Applies to