Share via


GroupQuotasEnforcementStatusCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{___location}
  • Operation Id: GroupQuotasEnforcementStatus_Get
  • Default Api Version: 2025-09-01
  • Resource: GroupQuotasEnforcementStatusResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Quota.GroupQuotasEnforcementStatusResource>> GetIfExistsAsync(string resourceProviderName, Azure.Core.AzureLocation ___location, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * Azure.Core.AzureLocation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Quota.GroupQuotasEnforcementStatusResource>>
override this.GetIfExistsAsync : string * Azure.Core.AzureLocation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Quota.GroupQuotasEnforcementStatusResource>>
Public Overridable Function GetIfExistsAsync (resourceProviderName As String, ___location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of GroupQuotasEnforcementStatusResource))

Parameters

resourceProviderName
String

The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API.

___location
AzureLocation

The name of the Azure region.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceProviderName is an empty string, and was expected to be non-empty.

resourceProviderName is null.

Applies to