Language

MockableCosmosDBResourceGroupResource.GetSoftDeletedDatabaseAccountGetResult Method

Definition

Retrieves the properties of a soft-deleted Azure Cosmos DB database account by location and accountName. This call requires 'Microsoft.DocumentDB/locations/softDeletedDatabaseAccounts/read' permission.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/locations/{location}/softDeletedDatabaseAccounts/{accountName}.
  • Operation Id. : SoftDeletedDatabaseAccounts_Get.
  • Default Api Version. : 2026-04-01-preview.
public virtual Azure.Response<Azure.ResourceManager.CosmosDB.SoftDeletedDatabaseAccountGetResultResource> GetSoftDeletedDatabaseAccountGetResult(Azure.Core.AzureLocation location, string accountName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSoftDeletedDatabaseAccountGetResult : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CosmosDB.SoftDeletedDatabaseAccountGetResultResource>
override this.GetSoftDeletedDatabaseAccountGetResult : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CosmosDB.SoftDeletedDatabaseAccountGetResultResource>
Public Overridable Function GetSoftDeletedDatabaseAccountGetResult (location As AzureLocation, accountName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SoftDeletedDatabaseAccountGetResultResource)

Parameters

location
AzureLocation

The name of the Azure region.

accountName
String

Cosmos DB database account name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

accountName is null.

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

Applies to