Compartir a través de


DatabaseAdvisors interface

Interface representing a DatabaseAdvisors.

Methods

get(string, string, string, string, DatabaseAdvisorsGetOptionalParams)

Gets a database advisor.

listByDatabase(string, string, string, DatabaseAdvisorsListByDatabaseOptionalParams)

Gets a list of database advisors.

update(string, string, string, string, Advisor, DatabaseAdvisorsUpdateOptionalParams)

Updates a database advisor.

Method Details

get(string, string, string, string, DatabaseAdvisorsGetOptionalParams)

Gets a database advisor.

function get(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, options?: DatabaseAdvisorsGetOptionalParams): Promise<Advisor>

Parameters

resourceGroupName

string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName

string

The name of the server.

databaseName

string

The name of the database.

advisorName

string

The name of the Database Advisor.

options
DatabaseAdvisorsGetOptionalParams

The options parameters.

Returns

Promise<Advisor>

listByDatabase(string, string, string, DatabaseAdvisorsListByDatabaseOptionalParams)

Gets a list of database advisors.

function listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseAdvisorsListByDatabaseOptionalParams): Promise<DatabaseAdvisorsListByDatabaseResponse>

Parameters

resourceGroupName

string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName

string

The name of the server.

databaseName

string

The name of the database.

options
DatabaseAdvisorsListByDatabaseOptionalParams

The options parameters.

Returns

update(string, string, string, string, Advisor, DatabaseAdvisorsUpdateOptionalParams)

Updates a database advisor.

function update(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, parameters: Advisor, options?: DatabaseAdvisorsUpdateOptionalParams): Promise<Advisor>

Parameters

resourceGroupName

string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName

string

The name of the server.

databaseName

string

The name of the database.

advisorName

string

The name of the Database Advisor.

parameters
Advisor

The requested advisor resource state.

options
DatabaseAdvisorsUpdateOptionalParams

The options parameters.

Returns

Promise<Advisor>