IDatabaseOperations.GetByIdAsync Method

Definition

Returns information about an Azure SQL Database.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.LegacySdk.Models.DatabaseListResponse> GetByIdAsync (string resourceGroupName, string serverName, string databaseId, System.Threading.CancellationToken cancellationToken);
abstract member GetByIdAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.LegacySdk.Models.DatabaseListResponse>
Public Function GetByIdAsync (resourceGroupName As String, serverName As String, databaseId As String, cancellationToken As CancellationToken) As Task(Of DatabaseListResponse)

Parameters

resourceGroupName
String

The name of the Resource Group to which the server belongs.

serverName
String

The name of the Azure SQL Database Server on which the database is hosted.

databaseId
String

The Id of the Azure SQL Database to be retrieved.

cancellationToken
CancellationToken

Cancellation token.

Returns

Represents the response to a List Azure Sql Database request.

Applies to