Interface DatabasesClient
-
public interface DatabasesClientAn instance of this class provides access to all the operations defined in DatabasesClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner>beginCreateImportOperation(String resourceGroupName, String serverName, String databaseName, ExtensionName extensionName, ImportExtensionRequest parameters)Creates an import operation that imports a bacpac into an existing database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner>beginCreateImportOperation(String resourceGroupName, String serverName, String databaseName, ExtensionName extensionName, ImportExtensionRequest parameters, com.azure.core.util.Context context)Creates an import operation that imports a bacpac into an existing database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner>beginCreateImportOperationAsync(String resourceGroupName, String serverName, String databaseName, ExtensionName extensionName, ImportExtensionRequest parameters)Creates an import operation that imports a bacpac into an existing database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner>beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters)Creates a new database or updates an existing database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner>beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, com.azure.core.util.Context context)Creates a new database or updates an existing database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner>beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters)Creates a new database or updates an existing database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>beginDelete(String resourceGroupName, String serverName, String databaseName)Deletes the database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>beginDelete(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)Deletes the database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void>beginDeleteAsync(String resourceGroupName, String serverName, String databaseName)Deletes the database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner>beginExport(String resourceGroupName, String serverName, String databaseName, ExportRequest parameters)Exports a database to a bacpac.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner>beginExport(String resourceGroupName, String serverName, String databaseName, ExportRequest parameters, com.azure.core.util.Context context)Exports a database to a bacpac.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner>beginExportAsync(String resourceGroupName, String serverName, String databaseName, ExportRequest parameters)Exports a database to a bacpac.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>beginFailover(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType)Failovers a database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>beginFailover(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType, com.azure.core.util.Context context)Failovers a database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void>beginFailoverAsync(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType)Failovers a database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner>beginImportMethod(String resourceGroupName, String serverName, ImportRequest parameters)Imports a bacpac into a new database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner>beginImportMethod(String resourceGroupName, String serverName, ImportRequest parameters, com.azure.core.util.Context context)Imports a bacpac into a new database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner>beginImportMethodAsync(String resourceGroupName, String serverName, ImportRequest parameters)Imports a bacpac into a new database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner>beginPause(String resourceGroupName, String serverName, String databaseName)Pauses a database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner>beginPause(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)Pauses a database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner>beginPauseAsync(String resourceGroupName, String serverName, String databaseName)Pauses a database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner>beginResume(String resourceGroupName, String serverName, String databaseName)Resumes a database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner>beginResume(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)Resumes a database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner>beginResumeAsync(String resourceGroupName, String serverName, String databaseName)Resumes a database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner>beginUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters)Updates an existing database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner>beginUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters, com.azure.core.util.Context context)Updates an existing database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner>beginUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters)Updates an existing database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>beginUpgradeDataWarehouse(String resourceGroupName, String serverName, String databaseName)Upgrades a data warehouse.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>beginUpgradeDataWarehouse(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)Upgrades a data warehouse.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void>beginUpgradeDataWarehouseAsync(String resourceGroupName, String serverName, String databaseName)Upgrades a data warehouse.ImportExportResponseInnercreateImportOperation(String resourceGroupName, String serverName, String databaseName, ExtensionName extensionName, ImportExtensionRequest parameters)Creates an import operation that imports a bacpac into an existing database.ImportExportResponseInnercreateImportOperation(String resourceGroupName, String serverName, String databaseName, ExtensionName extensionName, ImportExtensionRequest parameters, com.azure.core.util.Context context)Creates an import operation that imports a bacpac into an existing database.Mono<ImportExportResponseInner>createImportOperationAsync(String resourceGroupName, String serverName, String databaseName, ExtensionName extensionName, ImportExtensionRequest parameters)Creates an import operation that imports a bacpac into an existing database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>createImportOperationWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ExtensionName extensionName, ImportExtensionRequest parameters)Creates an import operation that imports a bacpac into an existing database.DatabaseInnercreateOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters)Creates a new database or updates an existing database.DatabaseInnercreateOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, com.azure.core.util.Context context)Creates a new database or updates an existing database.Mono<DatabaseInner>createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters)Creates a new database or updates an existing database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters)Creates a new database or updates an existing database.voiddelete(String resourceGroupName, String serverName, String databaseName)Deletes the database.voiddelete(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)Deletes the database.Mono<Void>deleteAsync(String resourceGroupName, String serverName, String databaseName)Deletes the database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>deleteWithResponseAsync(String resourceGroupName, String serverName, String databaseName)Deletes the database.ImportExportResponseInnerexport(String resourceGroupName, String serverName, String databaseName, ExportRequest parameters)Exports a database to a bacpac.ImportExportResponseInnerexport(String resourceGroupName, String serverName, String databaseName, ExportRequest parameters, com.azure.core.util.Context context)Exports a database to a bacpac.Mono<ImportExportResponseInner>exportAsync(String resourceGroupName, String serverName, String databaseName, ExportRequest parameters)Exports a database to a bacpac.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>exportWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ExportRequest parameters)Exports a database to a bacpac.voidfailover(String resourceGroupName, String serverName, String databaseName)Failovers a database.voidfailover(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType)Failovers a database.voidfailover(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType, com.azure.core.util.Context context)Failovers a database.Mono<Void>failoverAsync(String resourceGroupName, String serverName, String databaseName)Failovers a database.Mono<Void>failoverAsync(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType)Failovers a database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>failoverWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType)Failovers a database.DatabaseInnerget(String resourceGroupName, String serverName, String databaseName)Gets a database.Mono<DatabaseInner>getAsync(String resourceGroupName, String serverName, String databaseName)Gets a database.com.azure.core.http.rest.Response<DatabaseInner>getWithResponse(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)Gets a database.Mono<com.azure.core.http.rest.Response<DatabaseInner>>getWithResponseAsync(String resourceGroupName, String serverName, String databaseName)Gets a database.ImportExportResponseInnerimportMethod(String resourceGroupName, String serverName, ImportRequest parameters)Imports a bacpac into a new database.ImportExportResponseInnerimportMethod(String resourceGroupName, String serverName, ImportRequest parameters, com.azure.core.util.Context context)Imports a bacpac into a new database.Mono<ImportExportResponseInner>importMethodAsync(String resourceGroupName, String serverName, ImportRequest parameters)Imports a bacpac into a new database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>importMethodWithResponseAsync(String resourceGroupName, String serverName, ImportRequest parameters)Imports a bacpac into a new database.com.azure.core.http.rest.PagedIterable<DatabaseInner>listByElasticPool(String resourceGroupName, String serverName, String elasticPoolName)Gets a list of databases in an elastic pool.com.azure.core.http.rest.PagedIterable<DatabaseInner>listByElasticPool(String resourceGroupName, String serverName, String elasticPoolName, com.azure.core.util.Context context)Gets a list of databases in an elastic pool.com.azure.core.http.rest.PagedFlux<DatabaseInner>listByElasticPoolAsync(String resourceGroupName, String serverName, String elasticPoolName)Gets a list of databases in an elastic pool.com.azure.core.http.rest.PagedIterable<DatabaseInner>listByServer(String resourceGroupName, String serverName)Gets a list of databases.com.azure.core.http.rest.PagedIterable<DatabaseInner>listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context)Gets a list of databases.com.azure.core.http.rest.PagedFlux<DatabaseInner>listByServerAsync(String resourceGroupName, String serverName)Gets a list of databases.com.azure.core.http.rest.PagedIterable<MetricDefinitionInner>listMetricDefinitions(String resourceGroupName, String serverName, String databaseName)Returns database metric definitions.com.azure.core.http.rest.PagedIterable<MetricDefinitionInner>listMetricDefinitions(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)Returns database metric definitions.com.azure.core.http.rest.PagedFlux<MetricDefinitionInner>listMetricDefinitionsAsync(String resourceGroupName, String serverName, String databaseName)Returns database metric definitions.com.azure.core.http.rest.PagedIterable<MetricInner>listMetrics(String resourceGroupName, String serverName, String databaseName, String filter)Returns database metrics.com.azure.core.http.rest.PagedIterable<MetricInner>listMetrics(String resourceGroupName, String serverName, String databaseName, String filter, com.azure.core.util.Context context)Returns database metrics.com.azure.core.http.rest.PagedFlux<MetricInner>listMetricsAsync(String resourceGroupName, String serverName, String databaseName, String filter)Returns database metrics.DatabaseInnerpause(String resourceGroupName, String serverName, String databaseName)Pauses a database.DatabaseInnerpause(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)Pauses a database.Mono<DatabaseInner>pauseAsync(String resourceGroupName, String serverName, String databaseName)Pauses a database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>pauseWithResponseAsync(String resourceGroupName, String serverName, String databaseName)Pauses a database.voidrename(String resourceGroupName, String serverName, String databaseName, String id)Renames a database.Mono<Void>renameAsync(String resourceGroupName, String serverName, String databaseName, String id)Renames a database.com.azure.core.http.rest.Response<Void>renameWithResponse(String resourceGroupName, String serverName, String databaseName, String id, com.azure.core.util.Context context)Renames a database.Mono<com.azure.core.http.rest.Response<Void>>renameWithResponseAsync(String resourceGroupName, String serverName, String databaseName, String id)Renames a database.DatabaseInnerresume(String resourceGroupName, String serverName, String databaseName)Resumes a database.DatabaseInnerresume(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)Resumes a database.Mono<DatabaseInner>resumeAsync(String resourceGroupName, String serverName, String databaseName)Resumes a database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>resumeWithResponseAsync(String resourceGroupName, String serverName, String databaseName)Resumes a database.DatabaseInnerupdate(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters)Updates an existing database.DatabaseInnerupdate(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters, com.azure.core.util.Context context)Updates an existing database.Mono<DatabaseInner>updateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters)Updates an existing database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>updateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters)Updates an existing database.voidupgradeDataWarehouse(String resourceGroupName, String serverName, String databaseName)Upgrades a data warehouse.voidupgradeDataWarehouse(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)Upgrades a data warehouse.Mono<Void>upgradeDataWarehouseAsync(String resourceGroupName, String serverName, String databaseName)Upgrades a data warehouse.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>upgradeDataWarehouseWithResponseAsync(String resourceGroupName, String serverName, String databaseName)Upgrades a data warehouse.
-
-
-
Method Detail
-
importMethodWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> importMethodWithResponseAsync(String resourceGroupName, String serverName, ImportRequest parameters)
Imports a bacpac into a new database.- Parameters:
resourceGroupName- 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- The name of the server.parameters- Import database parameters.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginImportMethodAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner> beginImportMethodAsync(String resourceGroupName, String serverName, ImportRequest parameters)
Imports a bacpac into a new database.- Parameters:
resourceGroupName- 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- The name of the server.parameters- Import database parameters.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginImportMethod
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner> beginImportMethod(String resourceGroupName, String serverName, ImportRequest parameters)
Imports a bacpac into a new database.- Parameters:
resourceGroupName- 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- The name of the server.parameters- Import database parameters.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginImportMethod
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner> beginImportMethod(String resourceGroupName, String serverName, ImportRequest parameters, com.azure.core.util.Context context)
Imports a bacpac into a new database.- Parameters:
resourceGroupName- 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- The name of the server.parameters- Import database parameters.context- The context to associate with this operation.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
importMethodAsync
Mono<ImportExportResponseInner> importMethodAsync(String resourceGroupName, String serverName, ImportRequest parameters)
Imports a bacpac into a new database.- Parameters:
resourceGroupName- 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- The name of the server.parameters- Import database parameters.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
importMethod
ImportExportResponseInner importMethod(String resourceGroupName, String serverName, ImportRequest parameters)
Imports a bacpac into a new database.- Parameters:
resourceGroupName- 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- The name of the server.parameters- Import database parameters.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
importMethod
ImportExportResponseInner importMethod(String resourceGroupName, String serverName, ImportRequest parameters, com.azure.core.util.Context context)
Imports a bacpac into a new database.- Parameters:
resourceGroupName- 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- The name of the server.parameters- Import database parameters.context- The context to associate with this operation.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createImportOperationWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createImportOperationWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ExtensionName extensionName, ImportExtensionRequest parameters)
Creates an import operation that imports a bacpac into an existing database. The existing database must be empty.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to import into.extensionName- The name of the operation to perform.parameters- Import database parameters.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateImportOperationAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner> beginCreateImportOperationAsync(String resourceGroupName, String serverName, String databaseName, ExtensionName extensionName, ImportExtensionRequest parameters)
Creates an import operation that imports a bacpac into an existing database. The existing database must be empty.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to import into.extensionName- The name of the operation to perform.parameters- Import database parameters.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateImportOperation
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner> beginCreateImportOperation(String resourceGroupName, String serverName, String databaseName, ExtensionName extensionName, ImportExtensionRequest parameters)
Creates an import operation that imports a bacpac into an existing database. The existing database must be empty.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to import into.extensionName- The name of the operation to perform.parameters- Import database parameters.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateImportOperation
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner> beginCreateImportOperation(String resourceGroupName, String serverName, String databaseName, ExtensionName extensionName, ImportExtensionRequest parameters, com.azure.core.util.Context context)
Creates an import operation that imports a bacpac into an existing database. The existing database must be empty.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to import into.extensionName- The name of the operation to perform.parameters- Import database parameters.context- The context to associate with this operation.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createImportOperationAsync
Mono<ImportExportResponseInner> createImportOperationAsync(String resourceGroupName, String serverName, String databaseName, ExtensionName extensionName, ImportExtensionRequest parameters)
Creates an import operation that imports a bacpac into an existing database. The existing database must be empty.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to import into.extensionName- The name of the operation to perform.parameters- Import database parameters.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createImportOperation
ImportExportResponseInner createImportOperation(String resourceGroupName, String serverName, String databaseName, ExtensionName extensionName, ImportExtensionRequest parameters)
Creates an import operation that imports a bacpac into an existing database. The existing database must be empty.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to import into.extensionName- The name of the operation to perform.parameters- Import database parameters.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createImportOperation
ImportExportResponseInner createImportOperation(String resourceGroupName, String serverName, String databaseName, ExtensionName extensionName, ImportExtensionRequest parameters, com.azure.core.util.Context context)
Creates an import operation that imports a bacpac into an existing database. The existing database must be empty.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to import into.extensionName- The name of the operation to perform.parameters- Import database parameters.context- The context to associate with this operation.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
exportWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> exportWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ExportRequest parameters)
Exports a database to a bacpac.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be exported.parameters- Export database parameters.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginExportAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner> beginExportAsync(String resourceGroupName, String serverName, String databaseName, ExportRequest parameters)
Exports a database to a bacpac.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be exported.parameters- Export database parameters.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginExport
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner> beginExport(String resourceGroupName, String serverName, String databaseName, ExportRequest parameters)
Exports a database to a bacpac.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be exported.parameters- Export database parameters.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginExport
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportResponseInner>,ImportExportResponseInner> beginExport(String resourceGroupName, String serverName, String databaseName, ExportRequest parameters, com.azure.core.util.Context context)
Exports a database to a bacpac.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be exported.parameters- Export database parameters.context- The context to associate with this operation.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
exportAsync
Mono<ImportExportResponseInner> exportAsync(String resourceGroupName, String serverName, String databaseName, ExportRequest parameters)
Exports a database to a bacpac.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be exported.parameters- Export database parameters.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
export
ImportExportResponseInner export(String resourceGroupName, String serverName, String databaseName, ExportRequest parameters)
Exports a database to a bacpac.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be exported.parameters- Export database parameters.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
export
ImportExportResponseInner export(String resourceGroupName, String serverName, String databaseName, ExportRequest parameters, com.azure.core.util.Context context)
Exports a database to a bacpac.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be exported.parameters- Export database parameters.context- The context to associate with this operation.- Returns:
- response for Import/Export Get operation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listMetricsAsync
com.azure.core.http.rest.PagedFlux<MetricInner> listMetricsAsync(String resourceGroupName, String serverName, String databaseName, String filter)
Returns database metrics.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.filter- An OData filter expression that describes a subset of metrics to return.- Returns:
- the response to a list database metrics request.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listMetrics
com.azure.core.http.rest.PagedIterable<MetricInner> listMetrics(String resourceGroupName, String serverName, String databaseName, String filter)
Returns database metrics.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.filter- An OData filter expression that describes a subset of metrics to return.- Returns:
- the response to a list database metrics request.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listMetrics
com.azure.core.http.rest.PagedIterable<MetricInner> listMetrics(String resourceGroupName, String serverName, String databaseName, String filter, com.azure.core.util.Context context)
Returns database metrics.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.filter- An OData filter expression that describes a subset of metrics to return.context- The context to associate with this operation.- Returns:
- the response to a list database metrics request.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listMetricDefinitionsAsync
com.azure.core.http.rest.PagedFlux<MetricDefinitionInner> listMetricDefinitionsAsync(String resourceGroupName, String serverName, String databaseName)
Returns database metric definitions.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.- Returns:
- the response to a list database metric definitions request.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listMetricDefinitions
com.azure.core.http.rest.PagedIterable<MetricDefinitionInner> listMetricDefinitions(String resourceGroupName, String serverName, String databaseName)
Returns database metric definitions.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.- Returns:
- the response to a list database metric definitions request.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listMetricDefinitions
com.azure.core.http.rest.PagedIterable<MetricDefinitionInner> listMetricDefinitions(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)
Returns database metric definitions.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.context- The context to associate with this operation.- Returns:
- the response to a list database metric definitions request.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByServerAsync
com.azure.core.http.rest.PagedFlux<DatabaseInner> listByServerAsync(String resourceGroupName, String serverName)
Gets a list of databases.- Parameters:
resourceGroupName- 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- The name of the server.- Returns:
- a list of databases.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByServer
com.azure.core.http.rest.PagedIterable<DatabaseInner> listByServer(String resourceGroupName, String serverName)
Gets a list of databases.- Parameters:
resourceGroupName- 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- The name of the server.- Returns:
- a list of databases.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByServer
com.azure.core.http.rest.PagedIterable<DatabaseInner> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context)
Gets a list of databases.- Parameters:
resourceGroupName- 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- The name of the server.context- The context to associate with this operation.- Returns:
- a list of databases.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<DatabaseInner>> getWithResponseAsync(String resourceGroupName, String serverName, String databaseName)
Gets a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.- Returns:
- a database.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getAsync
Mono<DatabaseInner> getAsync(String resourceGroupName, String serverName, String databaseName)
Gets a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.- Returns:
- a database.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
DatabaseInner get(String resourceGroupName, String serverName, String databaseName)
Gets a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.- Returns:
- a database.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<DatabaseInner> getWithResponse(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)
Gets a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.context- The context to associate with this operation.- Returns:
- a database.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters)
Creates a new database or updates an existing database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.parameters- A database resource.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters)
Creates a new database or updates an existing database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.parameters- A database resource.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters)
Creates a new database or updates an existing database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.parameters- A database resource.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, com.azure.core.util.Context context)
Creates a new database or updates an existing database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.parameters- A database resource.context- The context to associate with this operation.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateAsync
Mono<DatabaseInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters)
Creates a new database or updates an existing database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.parameters- A database resource.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
DatabaseInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters)
Creates a new database or updates an existing database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.parameters- A database resource.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
DatabaseInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, com.azure.core.util.Context context)
Creates a new database or updates an existing database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.parameters- A database resource.context- The context to associate with this operation.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName, String databaseName)
Deletes the database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDeleteAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String serverName, String databaseName)
Deletes the database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String serverName, String databaseName)
Deletes the database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)
Deletes the database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.context- The context to associate with this operation.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteAsync
Mono<Void> deleteAsync(String resourceGroupName, String serverName, String databaseName)
Deletes the database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String serverName, String databaseName)
Deletes the database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)
Deletes the database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters)
Updates an existing database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.parameters- A database resource.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters)
Updates an existing database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.parameters- A database resource.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters)
Updates an existing database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.parameters- A database resource.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters, com.azure.core.util.Context context)
Updates an existing database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.parameters- A database resource.context- The context to associate with this operation.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateAsync
Mono<DatabaseInner> updateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters)
Updates an existing database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.parameters- A database resource.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
DatabaseInner update(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters)
Updates an existing database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.parameters- A database resource.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
DatabaseInner update(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters, com.azure.core.util.Context context)
Updates an existing database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database.parameters- A database resource.context- The context to associate with this operation.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByElasticPoolAsync
com.azure.core.http.rest.PagedFlux<DatabaseInner> listByElasticPoolAsync(String resourceGroupName, String serverName, String elasticPoolName)
Gets a list of databases in an elastic pool.- Parameters:
resourceGroupName- 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- The name of the server.elasticPoolName- The name of the elastic pool.- Returns:
- a list of databases in an elastic pool.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByElasticPool
com.azure.core.http.rest.PagedIterable<DatabaseInner> listByElasticPool(String resourceGroupName, String serverName, String elasticPoolName)
Gets a list of databases in an elastic pool.- Parameters:
resourceGroupName- 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- The name of the server.elasticPoolName- The name of the elastic pool.- Returns:
- a list of databases in an elastic pool.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByElasticPool
com.azure.core.http.rest.PagedIterable<DatabaseInner> listByElasticPool(String resourceGroupName, String serverName, String elasticPoolName, com.azure.core.util.Context context)
Gets a list of databases in an elastic pool.- Parameters:
resourceGroupName- 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- The name of the server.elasticPoolName- The name of the elastic pool.context- The context to associate with this operation.- Returns:
- a list of databases in an elastic pool.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
pauseWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> pauseWithResponseAsync(String resourceGroupName, String serverName, String databaseName)
Pauses a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be paused.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginPauseAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginPauseAsync(String resourceGroupName, String serverName, String databaseName)
Pauses a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be paused.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginPause
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginPause(String resourceGroupName, String serverName, String databaseName)
Pauses a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be paused.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginPause
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginPause(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)
Pauses a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be paused.context- The context to associate with this operation.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
pauseAsync
Mono<DatabaseInner> pauseAsync(String resourceGroupName, String serverName, String databaseName)
Pauses a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be paused.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
pause
DatabaseInner pause(String resourceGroupName, String serverName, String databaseName)
Pauses a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be paused.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
pause
DatabaseInner pause(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)
Pauses a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be paused.context- The context to associate with this operation.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
resumeWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> resumeWithResponseAsync(String resourceGroupName, String serverName, String databaseName)
Resumes a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be resumed.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginResumeAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginResumeAsync(String resourceGroupName, String serverName, String databaseName)
Resumes a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be resumed.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginResume
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginResume(String resourceGroupName, String serverName, String databaseName)
Resumes a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be resumed.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginResume
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginResume(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)
Resumes a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be resumed.context- The context to associate with this operation.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
resumeAsync
Mono<DatabaseInner> resumeAsync(String resourceGroupName, String serverName, String databaseName)
Resumes a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be resumed.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
resume
DatabaseInner resume(String resourceGroupName, String serverName, String databaseName)
Resumes a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be resumed.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
resume
DatabaseInner resume(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)
Resumes a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be resumed.context- The context to associate with this operation.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
upgradeDataWarehouseWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> upgradeDataWarehouseWithResponseAsync(String resourceGroupName, String serverName, String databaseName)
Upgrades a data warehouse.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be upgraded.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpgradeDataWarehouseAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginUpgradeDataWarehouseAsync(String resourceGroupName, String serverName, String databaseName)
Upgrades a data warehouse.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be upgraded.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpgradeDataWarehouse
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginUpgradeDataWarehouse(String resourceGroupName, String serverName, String databaseName)
Upgrades a data warehouse.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be upgraded.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpgradeDataWarehouse
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginUpgradeDataWarehouse(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)
Upgrades a data warehouse.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be upgraded.context- The context to associate with this operation.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
upgradeDataWarehouseAsync
Mono<Void> upgradeDataWarehouseAsync(String resourceGroupName, String serverName, String databaseName)
Upgrades a data warehouse.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be upgraded.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
upgradeDataWarehouse
void upgradeDataWarehouse(String resourceGroupName, String serverName, String databaseName)
Upgrades a data warehouse.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be upgraded.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
upgradeDataWarehouse
void upgradeDataWarehouse(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)
Upgrades a data warehouse.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to be upgraded.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
renameWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> renameWithResponseAsync(String resourceGroupName, String serverName, String databaseName, String id)
Renames a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to rename.id- The target ID for the resource.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
renameAsync
Mono<Void> renameAsync(String resourceGroupName, String serverName, String databaseName, String id)
Renames a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to rename.id- The target ID for the resource.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
rename
void rename(String resourceGroupName, String serverName, String databaseName, String id)
Renames a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to rename.id- The target ID for the resource.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
renameWithResponse
com.azure.core.http.rest.Response<Void> renameWithResponse(String resourceGroupName, String serverName, String databaseName, String id, com.azure.core.util.Context context)
Renames a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to rename.id- The target ID for the resource.context- The context to associate with this operation.- Returns:
- the response.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
failoverWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> failoverWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType)
Failovers a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to failover.replicaType- The type of replica to be failed over.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginFailoverAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginFailoverAsync(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType)
Failovers a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to failover.replicaType- The type of replica to be failed over.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginFailover
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginFailover(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType)
Failovers a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to failover.replicaType- The type of replica to be failed over.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginFailover
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginFailover(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType, com.azure.core.util.Context context)
Failovers a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to failover.replicaType- The type of replica to be failed over.context- The context to associate with this operation.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
failoverAsync
Mono<Void> failoverAsync(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType)
Failovers a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to failover.replicaType- The type of replica to be failed over.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
failoverAsync
Mono<Void> failoverAsync(String resourceGroupName, String serverName, String databaseName)
Failovers a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to failover.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
failover
void failover(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType)
Failovers a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to failover.replicaType- The type of replica to be failed over.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
failover
void failover(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType, com.azure.core.util.Context context)
Failovers a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to failover.replicaType- The type of replica to be failed over.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
failover
void failover(String resourceGroupName, String serverName, String databaseName)
Failovers a database.- Parameters:
resourceGroupName- 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- The name of the server.databaseName- The name of the database to failover.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
-