Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Databases

Package version

Class representing a Databases.

Hierarchy

  • Databases

Index

Constructors

constructor

Methods

beginCreateOrUpdate

  • beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Database, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>
  • 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 required parameters for creating or updating a database.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

beginDeleteMethod

  • beginDeleteMethod(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>
  • Deletes 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: msRest.RequestOptionsBase

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

createOrUpdate

  • createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Database, options?: msRest.RequestOptionsBase): Promise<Models.DatabasesCreateOrUpdateResponse>
  • 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 required parameters for creating or updating a database.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.DatabasesCreateOrUpdateResponse>

    Promise<Models.DatabasesCreateOrUpdateResponse>

deleteMethod

  • deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>
  • Deletes 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: msRest.RequestOptionsBase

    Returns Promise<msRest.RestResponse>

    Promise<msRest.RestResponse>

get

  • get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise<Models.DatabasesGetResponse>
  • get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback<Database>): void
  • get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Database>): void
  • Gets information about 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: msRest.RequestOptionsBase

    Returns Promise<Models.DatabasesGetResponse>

    Promise<Models.DatabasesGetResponse>

  • 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.

    • callback: msRest.ServiceCallback<Database>

      The callback

    Returns void

  • 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: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<Database>

      The callback

    Returns void

listByServer

  • listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise<Models.DatabasesListByServerResponse>
  • listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback<DatabaseListResult>): void
  • listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<DatabaseListResult>): void
  • List all the databases in a given server.

    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.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.DatabasesListByServerResponse>

    Promise<Models.DatabasesListByServerResponse>

  • 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.

    • callback: msRest.ServiceCallback<DatabaseListResult>

      The callback

    Returns void

  • 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.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<DatabaseListResult>

      The callback

    Returns void

Generated using TypeDoc