Package version:

Interface Databases

Interface representing a Databases.

Hierarchy

  • Databases

Methods

  • Creates a new database or updates an existing database.

    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.

    • parameters: Database

      The requested database resource state.

    • Optional options: DatabasesCreateOrUpdateOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<Database>, Database>>

  • Creates a new database or updates an existing database.

    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.

    • parameters: Database

      The requested database resource state.

    • Optional options: DatabasesCreateOrUpdateOptionalParams

      The options parameters.

    Returns Promise<Database>

  • Deletes the database.

    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.

    • Optional options: DatabasesDeleteOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<void>, void>>

  • Deletes the database.

    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.

    • Optional options: DatabasesDeleteOptionalParams

      The options parameters.

    Returns Promise<void>

  • Failovers a database.

    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 to failover.

    • Optional options: DatabasesFailoverOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<void>, void>>

  • Failovers a database.

    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 to failover.

    • Optional options: DatabasesFailoverOptionalParams

      The options parameters.

    Returns Promise<void>

  • Pauses a database.

    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 to be paused.

    • Optional options: DatabasesPauseOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<Database>, Database>>

  • Pauses a database.

    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 to be paused.

    • Optional options: DatabasesPauseOptionalParams

      The options parameters.

    Returns Promise<Database>

  • Resumes a database.

    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 to be resumed.

    • Optional options: DatabasesResumeOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<Database>, Database>>

  • Resumes a database.

    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 to be resumed.

    • Optional options: DatabasesResumeOptionalParams

      The options parameters.

    Returns Promise<Database>

  • Upgrades a data warehouse.

    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 to be upgraded.

    • Optional options: DatabasesUpgradeDataWarehouseOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<void>, void>>

  • Upgrades a data warehouse.

    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 to be upgraded.

    • Optional options: DatabasesUpgradeDataWarehouseOptionalParams

      The options parameters.

    Returns Promise<void>

  • Gets a database.

    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.

    • Optional options: DatabasesGetOptionalParams

      The options parameters.

    Returns Promise<Database>

  • Gets a list of databases in an elastic pool.

    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.

    • elasticPoolName: string

      The name of the elastic pool.

    • Optional options: DatabasesListByElasticPoolOptionalParams

      The options parameters.

    Returns PagedAsyncIterableIterator<Database>

  • Returns database metrics.

    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.

    • filter: string

      An OData filter expression that describes a subset of metrics to return.

    • Optional options: DatabasesListMetricsOptionalParams

      The options parameters.

    Returns PagedAsyncIterableIterator<Metric>

  • Renames a database.

    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 to rename.

    • parameters: ResourceMoveDefinition

      The resource move definition for renaming this database.

    • Optional options: DatabasesRenameOptionalParams

      The options parameters.

    Returns Promise<void>

Generated using TypeDoc