Language

SoftDeletedDatabaseAccountGetResultResource.GetSoftDeletedSqlDatabaseGetResultAsync Method

Definition

Retrieves the properties of a soft-deleted Azure Cosmos DB SQL database. This call requires 'Microsoft.DocumentDB/locations/softDeletedDatabaseAccounts/softDeletedSqlDatabases/read' permission.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.SoftDeletedSqlDatabaseGetResultResource>> GetSoftDeletedSqlDatabaseGetResultAsync(string databaseName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSoftDeletedSqlDatabaseGetResultAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.SoftDeletedSqlDatabaseGetResultResource>>
override this.GetSoftDeletedSqlDatabaseGetResultAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.SoftDeletedSqlDatabaseGetResultResource>>
Public Overridable Function GetSoftDeletedSqlDatabaseGetResultAsync (databaseName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SoftDeletedSqlDatabaseGetResultResource))

Parameters

databaseName
String

Cosmos DB SQL database name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

databaseName is null.

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

Applies to