Share via


SubscriptionQuotaAllocationsListCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location}
  • Operation Id: GroupQuotaSubscriptionAllocation_List
  • Default Api Version: 2024-12-18-preview
  • Resource: SubscriptionQuotaAllocationsListResource
public virtual Azure.NullableResponse<Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListResource> GetIfExists(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * string * string * Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListResource>
override this.GetIfExists : string * string * string * Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListResource>
Public Overridable Function GetIfExists (subscriptionId As String, groupQuotaName As String, resourceProviderName As String, location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of SubscriptionQuotaAllocationsListResource)

Parameters

subscriptionId
String

The ID of the target subscription. The value must be an UUID.

groupQuotaName
String

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

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

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

subscriptionId, groupQuotaName or resourceProviderName is null.

Applies to