Udostępnij za pośrednictwem


RestorableCosmosDBAccountCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}
  • Operation Id: RestorableDatabaseAccounts_GetByLocation
  • Default Api Version: 2024-05-15-preview
  • Resource: RestorableCosmosDBAccountResource
public virtual Azure.NullableResponse<Azure.ResourceManager.CosmosDB.RestorableCosmosDBAccountResource> GetIfExists (Guid instanceId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : Guid * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CosmosDB.RestorableCosmosDBAccountResource>
override this.GetIfExists : Guid * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CosmosDB.RestorableCosmosDBAccountResource>
Public Overridable Function GetIfExists (instanceId As Guid, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of RestorableCosmosDBAccountResource)

Parameters

instanceId
Guid

The instanceId GUID of a restorable database account.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to