Interface ManagedDatabasesClient
-
public interface ManagedDatabasesClientAn instance of this class provides access to all the operations defined in ManagedDatabasesClient.
-
-
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<Void>,Void>beginCompleteRestore(String resourceGroupName, String managedInstanceName, String databaseName, String lastBackupName)Completes the restore operation on a managed database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>beginCompleteRestore(String resourceGroupName, String managedInstanceName, String databaseName, String lastBackupName, com.azure.core.util.Context context)Completes the restore operation on a managed database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void>beginCompleteRestoreAsync(String resourceGroupName, String managedInstanceName, String databaseName, String lastBackupName)Completes the restore operation on a managed database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedDatabaseInner>,ManagedDatabaseInner>beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseInner parameters)Creates a new database or updates an existing database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedDatabaseInner>,ManagedDatabaseInner>beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseInner 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<ManagedDatabaseInner>,ManagedDatabaseInner>beginCreateOrUpdateAsync(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseInner 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 managedInstanceName, String databaseName)Deletes a managed database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>beginDelete(String resourceGroupName, String managedInstanceName, String databaseName, com.azure.core.util.Context context)Deletes a managed database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void>beginDeleteAsync(String resourceGroupName, String managedInstanceName, String databaseName)Deletes a managed database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedDatabaseInner>,ManagedDatabaseInner>beginUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseUpdate parameters)Updates an existing database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedDatabaseInner>,ManagedDatabaseInner>beginUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseUpdate parameters, com.azure.core.util.Context context)Updates an existing database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ManagedDatabaseInner>,ManagedDatabaseInner>beginUpdateAsync(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseUpdate parameters)Updates an existing database.voidcompleteRestore(String resourceGroupName, String managedInstanceName, String databaseName, String lastBackupName)Completes the restore operation on a managed database.voidcompleteRestore(String resourceGroupName, String managedInstanceName, String databaseName, String lastBackupName, com.azure.core.util.Context context)Completes the restore operation on a managed database.Mono<Void>completeRestoreAsync(String resourceGroupName, String managedInstanceName, String databaseName, String lastBackupName)Completes the restore operation on a managed database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>completeRestoreWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName, String lastBackupName)Completes the restore operation on a managed database.ManagedDatabaseInnercreateOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseInner parameters)Creates a new database or updates an existing database.ManagedDatabaseInnercreateOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseInner parameters, com.azure.core.util.Context context)Creates a new database or updates an existing database.Mono<ManagedDatabaseInner>createOrUpdateAsync(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseInner parameters)Creates a new database or updates an existing database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>createOrUpdateWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseInner parameters)Creates a new database or updates an existing database.voiddelete(String resourceGroupName, String managedInstanceName, String databaseName)Deletes a managed database.voiddelete(String resourceGroupName, String managedInstanceName, String databaseName, com.azure.core.util.Context context)Deletes a managed database.Mono<Void>deleteAsync(String resourceGroupName, String managedInstanceName, String databaseName)Deletes a managed database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>deleteWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName)Deletes a managed database.ManagedDatabaseInnerget(String resourceGroupName, String managedInstanceName, String databaseName)Gets a managed database.Mono<ManagedDatabaseInner>getAsync(String resourceGroupName, String managedInstanceName, String databaseName)Gets a managed database.com.azure.core.http.rest.Response<ManagedDatabaseInner>getWithResponse(String resourceGroupName, String managedInstanceName, String databaseName, com.azure.core.util.Context context)Gets a managed database.Mono<com.azure.core.http.rest.Response<ManagedDatabaseInner>>getWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName)Gets a managed database.com.azure.core.http.rest.PagedIterable<ManagedDatabaseInner>listByInstance(String resourceGroupName, String managedInstanceName)Gets a list of managed databases.com.azure.core.http.rest.PagedIterable<ManagedDatabaseInner>listByInstance(String resourceGroupName, String managedInstanceName, com.azure.core.util.Context context)Gets a list of managed databases.com.azure.core.http.rest.PagedFlux<ManagedDatabaseInner>listByInstanceAsync(String resourceGroupName, String managedInstanceName)Gets a list of managed databases.com.azure.core.http.rest.PagedIterable<ManagedDatabaseInner>listInaccessibleByInstance(String resourceGroupName, String managedInstanceName)Gets a list of inaccessible managed databases in a managed instance.com.azure.core.http.rest.PagedIterable<ManagedDatabaseInner>listInaccessibleByInstance(String resourceGroupName, String managedInstanceName, com.azure.core.util.Context context)Gets a list of inaccessible managed databases in a managed instance.com.azure.core.http.rest.PagedFlux<ManagedDatabaseInner>listInaccessibleByInstanceAsync(String resourceGroupName, String managedInstanceName)Gets a list of inaccessible managed databases in a managed instance.ManagedDatabaseInnerupdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseUpdate parameters)Updates an existing database.ManagedDatabaseInnerupdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseUpdate parameters, com.azure.core.util.Context context)Updates an existing database.Mono<ManagedDatabaseInner>updateAsync(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseUpdate parameters)Updates an existing database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>updateWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseUpdate parameters)Updates an existing database.
-
-
-
Method Detail
-
listByInstanceAsync
com.azure.core.http.rest.PagedFlux<ManagedDatabaseInner> listByInstanceAsync(String resourceGroupName, String managedInstanceName)
Gets a list of managed 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.managedInstanceName- The name of the managed instance.- Returns:
- a list of managed 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.
-
listByInstance
com.azure.core.http.rest.PagedIterable<ManagedDatabaseInner> listByInstance(String resourceGroupName, String managedInstanceName)
Gets a list of managed 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.managedInstanceName- The name of the managed instance.- Returns:
- a list of managed 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.
-
listByInstance
com.azure.core.http.rest.PagedIterable<ManagedDatabaseInner> listByInstance(String resourceGroupName, String managedInstanceName, com.azure.core.util.Context context)
Gets a list of managed 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.managedInstanceName- The name of the managed instance.context- The context to associate with this operation.- Returns:
- a list of managed 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<ManagedDatabaseInner>> getWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName)
Gets a managed 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.- Returns:
- a managed 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<ManagedDatabaseInner> getAsync(String resourceGroupName, String managedInstanceName, String databaseName)
Gets a managed 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.- Returns:
- a managed 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
ManagedDatabaseInner get(String resourceGroupName, String managedInstanceName, String databaseName)
Gets a managed 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.- Returns:
- a managed 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<ManagedDatabaseInner> getWithResponse(String resourceGroupName, String managedInstanceName, String databaseName, com.azure.core.util.Context context)
Gets a managed 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.context- The context to associate with this operation.- Returns:
- a managed 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 managedInstanceName, String databaseName, ManagedDatabaseInner 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.parameters- A managed database resource.- Returns:
- a managed 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<ManagedDatabaseInner>,ManagedDatabaseInner> beginCreateOrUpdateAsync(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseInner 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.parameters- A managed database resource.- Returns:
- a managed 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<ManagedDatabaseInner>,ManagedDatabaseInner> beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseInner 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.parameters- A managed database resource.- Returns:
- a managed 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<ManagedDatabaseInner>,ManagedDatabaseInner> beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseInner 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.parameters- A managed database resource.context- The context to associate with this operation.- Returns:
- a managed 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<ManagedDatabaseInner> createOrUpdateAsync(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseInner 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.parameters- A managed database resource.- Returns:
- a managed 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
ManagedDatabaseInner createOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseInner 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.parameters- A managed database resource.- Returns:
- a managed 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
ManagedDatabaseInner createOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseInner 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.parameters- A managed database resource.context- The context to associate with this operation.- Returns:
- a managed 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 managedInstanceName, String databaseName)
Deletes a managed 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.managedInstanceName- The name of the managed instance.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 managedInstanceName, String databaseName)
Deletes a managed 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.managedInstanceName- The name of the managed instance.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 managedInstanceName, String databaseName)
Deletes a managed 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.managedInstanceName- The name of the managed instance.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 managedInstanceName, String databaseName, com.azure.core.util.Context context)
Deletes a managed 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.managedInstanceName- The name of the managed instance.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 managedInstanceName, String databaseName)
Deletes a managed 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.managedInstanceName- The name of the managed instance.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 managedInstanceName, String databaseName)
Deletes a managed 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.managedInstanceName- The name of the managed instance.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 managedInstanceName, String databaseName, com.azure.core.util.Context context)
Deletes a managed 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.managedInstanceName- The name of the managed instance.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 managedInstanceName, String databaseName, ManagedDatabaseUpdate 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.parameters- An managed database update.- Returns:
- a managed 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<ManagedDatabaseInner>,ManagedDatabaseInner> beginUpdateAsync(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseUpdate 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.parameters- An managed database update.- Returns:
- a managed 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<ManagedDatabaseInner>,ManagedDatabaseInner> beginUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseUpdate 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.parameters- An managed database update.- Returns:
- a managed 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<ManagedDatabaseInner>,ManagedDatabaseInner> beginUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseUpdate 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.parameters- An managed database update.context- The context to associate with this operation.- Returns:
- a managed 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<ManagedDatabaseInner> updateAsync(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseUpdate 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.parameters- An managed database update.- Returns:
- a managed 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
ManagedDatabaseInner update(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseUpdate 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.parameters- An managed database update.- Returns:
- a managed 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
ManagedDatabaseInner update(String resourceGroupName, String managedInstanceName, String databaseName, ManagedDatabaseUpdate 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.parameters- An managed database update.context- The context to associate with this operation.- Returns:
- a managed 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.
-
listInaccessibleByInstanceAsync
com.azure.core.http.rest.PagedFlux<ManagedDatabaseInner> listInaccessibleByInstanceAsync(String resourceGroupName, String managedInstanceName)
Gets a list of inaccessible managed databases in a managed instance.- 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.managedInstanceName- The name of the managed instance.- Returns:
- a list of inaccessible managed databases in a managed instance.
- 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.
-
listInaccessibleByInstance
com.azure.core.http.rest.PagedIterable<ManagedDatabaseInner> listInaccessibleByInstance(String resourceGroupName, String managedInstanceName)
Gets a list of inaccessible managed databases in a managed instance.- 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.managedInstanceName- The name of the managed instance.- Returns:
- a list of inaccessible managed databases in a managed instance.
- 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.
-
listInaccessibleByInstance
com.azure.core.http.rest.PagedIterable<ManagedDatabaseInner> listInaccessibleByInstance(String resourceGroupName, String managedInstanceName, com.azure.core.util.Context context)
Gets a list of inaccessible managed databases in a managed instance.- 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.managedInstanceName- The name of the managed instance.context- The context to associate with this operation.- Returns:
- a list of inaccessible managed databases in a managed instance.
- 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.
-
completeRestoreWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> completeRestoreWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName, String lastBackupName)
Completes the restore operation on a managed 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.lastBackupName- The last backup name to apply.- 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.
-
beginCompleteRestoreAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginCompleteRestoreAsync(String resourceGroupName, String managedInstanceName, String databaseName, String lastBackupName)
Completes the restore operation on a managed 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.lastBackupName- The last backup name to apply.- 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.
-
beginCompleteRestore
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginCompleteRestore(String resourceGroupName, String managedInstanceName, String databaseName, String lastBackupName)
Completes the restore operation on a managed 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.lastBackupName- The last backup name to apply.- 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.
-
beginCompleteRestore
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginCompleteRestore(String resourceGroupName, String managedInstanceName, String databaseName, String lastBackupName, com.azure.core.util.Context context)
Completes the restore operation on a managed 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.lastBackupName- The last backup name to apply.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.
-
completeRestoreAsync
Mono<Void> completeRestoreAsync(String resourceGroupName, String managedInstanceName, String databaseName, String lastBackupName)
Completes the restore operation on a managed 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.lastBackupName- The last backup name to apply.- 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.
-
completeRestore
void completeRestore(String resourceGroupName, String managedInstanceName, String databaseName, String lastBackupName)
Completes the restore operation on a managed 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.lastBackupName- The last backup name to apply.- 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.
-
completeRestore
void completeRestore(String resourceGroupName, String managedInstanceName, String databaseName, String lastBackupName, com.azure.core.util.Context context)
Completes the restore operation on a managed 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.managedInstanceName- The name of the managed instance.databaseName- The name of the database.lastBackupName- The last backup name to apply.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.
-
-