Share via


GroupQuotaSubscriptionCollection.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}/subscriptions/{subscriptionId}
  • Operation Id: GroupQuotaSubscriptions_Get
  • Default Api Version: 2023-06-01-preview
  • Resource: GroupQuotaSubscriptionResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Quota.GroupQuotaSubscriptionResource>> GetIfExistsAsync (string subscriptionId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Quota.GroupQuotaSubscriptionResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Quota.GroupQuotaSubscriptionResource>>
Public Overridable Function GetIfExistsAsync (subscriptionId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of GroupQuotaSubscriptionResource))

Parameters

subscriptionId
String

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

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

subscriptionId is null.

Applies to