Sdílet prostřednictvím


QuotaAllocationRequestStatusCollection.GetIfExistsAsync 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}/quotaAllocationRequests/{allocationId}
  • Operation Id: GroupQuotaSubscriptionAllocationRequest_Get
  • Default Api Version: 2024-12-18-preview
  • Resource: QuotaAllocationRequestStatusResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Quota.QuotaAllocationRequestStatusResource>> GetIfExistsAsync (string allocationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Quota.QuotaAllocationRequestStatusResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Quota.QuotaAllocationRequestStatusResource>>
Public Overridable Function GetIfExistsAsync (allocationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of QuotaAllocationRequestStatusResource))

Parameters

allocationId
String

Request Id.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

allocationId is null.

Applies to