共用方式為


GroupQuotaEntityResource.GetGroupQuotaEnforcement Method

Definition

Gets the GroupQuotas enforcement settings for the ResourceProvider/location. The locations, where GroupQuota enforcement is not enabled will return Not Found.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location}
  • Operation Id: GroupQuotaLocationSettings_Get
  • Default Api Version: 2023-06-01-preview
  • Resource: GroupQuotaEnforcementResource
public virtual Azure.Response<Azure.ResourceManager.Quota.GroupQuotaEnforcementResource> GetGroupQuotaEnforcement (string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
abstract member GetGroupQuotaEnforcement : string * Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Quota.GroupQuotaEnforcementResource>
override this.GetGroupQuotaEnforcement : string * Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Quota.GroupQuotaEnforcementResource>
Public Overridable Function GetGroupQuotaEnforcement (resourceProviderName As String, location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As Response(Of GroupQuotaEnforcementResource)

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

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

Applies to