Language

QuotaExtensions.GetGroupQuotaEntity Method

Definition

Gets the GroupQuotas for the name passed. It will return the GroupQuotas properties only. The details on group quota can be access from the group quota APIs. <item> Mocking. To mock this method, please mock GetGroupQuotaEntity(String, CancellationToken) instead. </item>

public static Azure.Response<Azure.ResourceManager.Quota.GroupQuotaEntityResource> GetGroupQuotaEntity(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string groupQuotaName, System.Threading.CancellationToken cancellationToken = default);
static member GetGroupQuotaEntity : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Quota.GroupQuotaEntityResource>
<Extension()>
Public Function GetGroupQuotaEntity (managementGroupResource As ManagementGroupResource, groupQuotaName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of GroupQuotaEntityResource)

Parameters

managementGroupResource
ManagementGroupResource

The ManagementGroupResource the method will execute against.

groupQuotaName
String

The GroupQuota name. The name should be unique for the provided context tenantId/MgId.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

managementGroupResource is null.

Applies to