Partilhar via


Databases interface

Interface representing a Databases.

Methods

beginCreate(string, string, string, Database, DatabasesCreateOptionalParams)

Creates a new database or updates an existing database.

beginCreateAndWait(string, string, string, Database, DatabasesCreateOptionalParams)

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

beginCreate(string, string, string, Database, DatabasesCreateOptionalParams)

Creates a new database or updates an existing database.

function beginCreate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Database, options?: DatabasesCreateOptionalParams): Promise<SimplePollerLike<OperationState<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
DatabasesCreateOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<Database>, Database>>

beginCreateAndWait(string, string, string, Database, DatabasesCreateOptionalParams)

Creates a new database or updates an existing database.

function beginCreateAndWait(resourceGroupName: string, serverName: string, databaseName: string, parameters: Database, options?: DatabasesCreateOptionalParams): 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
DatabasesCreateOptionalParams

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<SimplePollerLike<OperationState<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<@azure/core-lro.SimplePollerLike<OperationState<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