Databases interface

Interface representing a Databases.

Methods

beginCreateOrUpdate(string, string, string, Database, DatabasesCreateOrUpdateOptionalParams)

Creates a new database or updates an existing database.

beginCreateOrUpdateAndWait(string, string, string, Database, DatabasesCreateOrUpdateOptionalParams)

Creates a new database or updates an existing database.

beginDelete(string, string, string, DatabasesDeleteOptionalParams)

Deletes a database.

beginDeleteAndWait(string, string, string, DatabasesDeleteOptionalParams)

Deletes a database.

get(string, string, string, DatabasesGetOptionalParams)

Gets information about a database.

listByServer(string, string, DatabasesListByServerOptionalParams)

List all the databases in a given server.

Method Details

beginCreateOrUpdate(string, string, string, Database, DatabasesCreateOrUpdateOptionalParams)

Creates a new database or updates an existing database.

function beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Database, options?: DatabasesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<Database>, Database>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serverName

string

The name of the server.

databaseName

string

The name of the database.

parameters
Database

The required parameters for creating or updating a database.

options
DatabasesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<PollerLike<@azure/core-lro.PollOperationState<Database>, Database>>

beginCreateOrUpdateAndWait(string, string, string, Database, DatabasesCreateOrUpdateOptionalParams)

Creates a new database or updates an existing database.

function beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, parameters: Database, options?: DatabasesCreateOrUpdateOptionalParams): Promise<Database>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serverName

string

The name of the server.

databaseName

string

The name of the database.

parameters
Database

The required parameters for creating or updating a database.

options
DatabasesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<Database>

beginDelete(string, string, string, DatabasesDeleteOptionalParams)

Deletes a database.

function beginDelete(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serverName

string

The name of the server.

databaseName

string

The name of the database.

options
DatabasesDeleteOptionalParams

The options parameters.

Returns

Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>

beginDeleteAndWait(string, string, string, DatabasesDeleteOptionalParams)

Deletes a database.

function beginDeleteAndWait(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serverName

string

The name of the server.

databaseName

string

The name of the database.

options
DatabasesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, DatabasesGetOptionalParams)

Gets information about a database.

function get(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesGetOptionalParams): Promise<Database>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serverName

string

The name of the server.

databaseName

string

The name of the database.

options
DatabasesGetOptionalParams

The options parameters.

Returns

Promise<Database>

listByServer(string, string, DatabasesListByServerOptionalParams)

List all the databases in a given server.

function listByServer(resourceGroupName: string, serverName: string, options?: DatabasesListByServerOptionalParams): PagedAsyncIterableIterator<Database, Database[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serverName

string

The name of the server.

options
DatabasesListByServerOptionalParams

The options parameters.

Returns