MockableNetAppSubscriptionResource.GetNetAppResourceUsage 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 virtual Azure.Response<Azure.ResourceManager.NetApp.Models.NetAppUsageResult> GetNetAppResourceUsage(Azure.Core.AzureLocation ___location, string usageType, System.Threading.CancellationToken cancellationToken = default);
abstract member GetNetAppResourceUsage : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.NetApp.Models.NetAppUsageResult>
override this.GetNetAppResourceUsage : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.NetApp.Models.NetAppUsageResult>
Public Overridable Function GetNetAppResourceUsage (___location As AzureLocation, usageType As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of NetAppUsageResult)
Parameters
- ___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.
usageType
is null.