Interface LongTermRetentionManagedInstanceBackupsClient
public interface LongTermRetentionManagedInstanceBackupsClient
An instance of this class provides access to all the operations defined in
LongTermRetentionManagedInstanceBackupsClient.
-
Method Summary
Modifier and TypeMethodDescriptionbeginDelete(String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.beginDelete(String locationName, String managedInstanceName, String databaseName, String backupName, com.azure.core.util.Context context) Deletes a long term retention backup.beginDeleteAsync(String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.beginDeleteByResourceGroup(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.beginDeleteByResourceGroup(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName, com.azure.core.util.Context context) Deletes a long term retention backup.beginDeleteByResourceGroupAsync(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.voidDeletes a long term retention backup.voiddelete(String locationName, String managedInstanceName, String databaseName, String backupName, com.azure.core.util.Context context) Deletes a long term retention backup.deleteAsync(String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.voiddeleteByResourceGroup(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.voiddeleteByResourceGroup(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName, com.azure.core.util.Context context) Deletes a long term retention backup.deleteByResourceGroupAsync(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteByResourceGroupWithResponseAsync(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.Gets a long term retention backup for a managed database.Gets a long term retention backup for a managed database.getByResourceGroup(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName) Gets a long term retention backup for a managed database.getByResourceGroupAsync(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName) Gets a long term retention backup for a managed database.com.azure.core.http.rest.Response<ManagedInstanceLongTermRetentionBackupInner> getByResourceGroupWithResponse(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName, com.azure.core.util.Context context) Gets a long term retention backup for a managed database.Mono<com.azure.core.http.rest.Response<ManagedInstanceLongTermRetentionBackupInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName) Gets a long term retention backup for a managed database.com.azure.core.http.rest.Response<ManagedInstanceLongTermRetentionBackupInner> getWithResponse(String locationName, String managedInstanceName, String databaseName, String backupName, com.azure.core.util.Context context) Gets a long term retention backup for a managed database.Mono<com.azure.core.http.rest.Response<ManagedInstanceLongTermRetentionBackupInner>> getWithResponseAsync(String locationName, String managedInstanceName, String databaseName, String backupName) Gets a long term retention backup for a managed database.com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByDatabase(String locationName, String managedInstanceName, String databaseName) Lists all long term retention backups for a managed database.com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByDatabase(String locationName, String managedInstanceName, String databaseName, Boolean onlyLatestPerDatabase, DatabaseState databaseState, com.azure.core.util.Context context) Lists all long term retention backups for a managed database.com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByDatabaseAsync(String locationName, String managedInstanceName, String databaseName) Lists all long term retention backups for a managed database.com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByDatabaseAsync(String locationName, String managedInstanceName, String databaseName, Boolean onlyLatestPerDatabase, DatabaseState databaseState) Lists all long term retention backups for a managed database.com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByInstance(String locationName, String managedInstanceName) Lists the long term retention backups for a given managed instance.com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByInstance(String locationName, String managedInstanceName, Boolean onlyLatestPerDatabase, DatabaseState databaseState, com.azure.core.util.Context context) Lists the long term retention backups for a given managed instance.com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByInstanceAsync(String locationName, String managedInstanceName) Lists the long term retention backups for a given managed instance.com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByInstanceAsync(String locationName, String managedInstanceName, Boolean onlyLatestPerDatabase, DatabaseState databaseState) Lists the long term retention backups for a given managed instance.com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByLocation(String locationName) Lists the long term retention backups for managed databases in a given location.com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByLocation(String locationName, Boolean onlyLatestPerDatabase, DatabaseState databaseState, com.azure.core.util.Context context) Lists the long term retention backups for managed databases in a given location.com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByLocationAsync(String locationName) Lists the long term retention backups for managed databases in a given location.com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByLocationAsync(String locationName, Boolean onlyLatestPerDatabase, DatabaseState databaseState) Lists the long term retention backups for managed databases in a given location.com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupDatabase(String resourceGroupName, String locationName, String managedInstanceName, String databaseName) Lists all long term retention backups for a managed database.com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupDatabase(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, Boolean onlyLatestPerDatabase, DatabaseState databaseState, com.azure.core.util.Context context) Lists all long term retention backups for a managed database.com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupDatabaseAsync(String resourceGroupName, String locationName, String managedInstanceName, String databaseName) Lists all long term retention backups for a managed database.com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupDatabaseAsync(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, Boolean onlyLatestPerDatabase, DatabaseState databaseState) Lists all long term retention backups for a managed database.com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupInstance(String resourceGroupName, String locationName, String managedInstanceName) Lists the long term retention backups for a given managed instance.com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupInstance(String resourceGroupName, String locationName, String managedInstanceName, Boolean onlyLatestPerDatabase, DatabaseState databaseState, com.azure.core.util.Context context) Lists the long term retention backups for a given managed instance.com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupInstanceAsync(String resourceGroupName, String locationName, String managedInstanceName) Lists the long term retention backups for a given managed instance.com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupInstanceAsync(String resourceGroupName, String locationName, String managedInstanceName, Boolean onlyLatestPerDatabase, DatabaseState databaseState) Lists the long term retention backups for a given managed instance.com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupLocation(String resourceGroupName, String locationName) Lists the long term retention backups for managed databases in a given location.com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupLocation(String resourceGroupName, String locationName, Boolean onlyLatestPerDatabase, DatabaseState databaseState, com.azure.core.util.Context context) Lists the long term retention backups for managed databases in a given location.com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupLocationAsync(String resourceGroupName, String locationName) Lists the long term retention backups for managed databases in a given location.com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupLocationAsync(String resourceGroupName, String locationName, Boolean onlyLatestPerDatabase, DatabaseState databaseState) Lists the long term retention backups for managed databases in a given location.
-
Method Details
-
listByLocationAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByLocationAsync(String locationName, Boolean onlyLatestPerDatabase, DatabaseState databaseState) Lists the long term retention backups for managed databases in a given location.- Parameters:
locationName- The location of the database.onlyLatestPerDatabase- Whether or not to only get the latest backup for each database.databaseState- Whether to query against just live databases, just deleted databases, or all databases.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedFlux. - 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.
-
listByLocationAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByLocationAsync(String locationName) Lists the long term retention backups for managed databases in a given location.- Parameters:
locationName- The location of the database.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedFlux. - 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.
-
listByLocation
com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByLocation(String locationName) Lists the long term retention backups for managed databases in a given location.- Parameters:
locationName- The location of the database.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedIterable. - 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.
-
listByLocation
com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByLocation(String locationName, Boolean onlyLatestPerDatabase, DatabaseState databaseState, com.azure.core.util.Context context) Lists the long term retention backups for managed databases in a given location.- Parameters:
locationName- The location of the database.onlyLatestPerDatabase- Whether or not to only get the latest backup for each database.databaseState- Whether to query against just live databases, just deleted databases, or all databases.context- The context to associate with this operation.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedIterable. - 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.
-
listByDatabaseAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByDatabaseAsync(String locationName, String managedInstanceName, String databaseName, Boolean onlyLatestPerDatabase, DatabaseState databaseState) Lists all long term retention backups for a managed database.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.onlyLatestPerDatabase- Whether or not to only get the latest backup for each database.databaseState- Whether to query against just live databases, just deleted databases, or all databases.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedFlux. - 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.
-
listByDatabaseAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByDatabaseAsync(String locationName, String managedInstanceName, String databaseName) Lists all long term retention backups for a managed database.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedFlux. - 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.
-
listByDatabase
com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByDatabase(String locationName, String managedInstanceName, String databaseName) Lists all long term retention backups for a managed database.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedIterable. - 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.
-
listByDatabase
com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByDatabase(String locationName, String managedInstanceName, String databaseName, Boolean onlyLatestPerDatabase, DatabaseState databaseState, com.azure.core.util.Context context) Lists all long term retention backups for a managed database.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.onlyLatestPerDatabase- Whether or not to only get the latest backup for each database.databaseState- Whether to query against just live databases, just deleted databases, or all databases.context- The context to associate with this operation.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedIterable. - 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<ManagedInstanceLongTermRetentionBackupInner>> getWithResponseAsync(String locationName, String managedInstanceName, String databaseName, String backupName) Gets a long term retention backup for a managed database.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.- Returns:
- a long term retention backup for a managed database along with
Responseon successful completion ofMono. - 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<ManagedInstanceLongTermRetentionBackupInner> getAsync(String locationName, String managedInstanceName, String databaseName, String backupName) Gets a long term retention backup for a managed database.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.- Returns:
- a long term retention backup for a managed database on successful completion of
Mono. - 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<ManagedInstanceLongTermRetentionBackupInner> getWithResponse(String locationName, String managedInstanceName, String databaseName, String backupName, com.azure.core.util.Context context) Gets a long term retention backup for a managed database.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.context- The context to associate with this operation.- Returns:
- a long term retention backup for a managed database along with
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.
-
get
ManagedInstanceLongTermRetentionBackupInner get(String locationName, String managedInstanceName, String databaseName, String backupName) Gets a long term retention backup for a managed database.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.- Returns:
- a long term retention backup for 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.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.- Returns:
- the
Responseon successful completion ofMono. - 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 locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.- Returns:
- the
PollerFluxfor polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDelete(String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.- Returns:
- the
SyncPollerfor polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDelete(String locationName, String managedInstanceName, String databaseName, String backupName, com.azure.core.util.Context context) Deletes a long term retention backup.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running 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.
-
deleteAsync
Mono<Void> deleteAsync(String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.- Returns:
- A
Monothat completes when a successful response is received. - 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 locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.- 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 locationName, String managedInstanceName, String databaseName, String backupName, com.azure.core.util.Context context) Deletes a long term retention backup.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.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.
-
listByInstanceAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByInstanceAsync(String locationName, String managedInstanceName, Boolean onlyLatestPerDatabase, DatabaseState databaseState) Lists the long term retention backups for a given managed instance.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.onlyLatestPerDatabase- Whether or not to only get the latest backup for each database.databaseState- Whether to query against just live databases, just deleted databases, or all databases.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedFlux. - 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.
-
listByInstanceAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByInstanceAsync(String locationName, String managedInstanceName) Lists the long term retention backups for a given managed instance.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedFlux. - 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<ManagedInstanceLongTermRetentionBackupInner> listByInstance(String locationName, String managedInstanceName) Lists the long term retention backups for a given managed instance.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedIterable. - 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<ManagedInstanceLongTermRetentionBackupInner> listByInstance(String locationName, String managedInstanceName, Boolean onlyLatestPerDatabase, DatabaseState databaseState, com.azure.core.util.Context context) Lists the long term retention backups for a given managed instance.- Parameters:
locationName- The location of the database.managedInstanceName- The name of the managed instance.onlyLatestPerDatabase- Whether or not to only get the latest backup for each database.databaseState- Whether to query against just live databases, just deleted databases, or all databases.context- The context to associate with this operation.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedIterable. - 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.
-
listByResourceGroupLocationAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupLocationAsync(String resourceGroupName, String locationName, Boolean onlyLatestPerDatabase, DatabaseState databaseState) Lists the long term retention backups for managed databases in a given location.- 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.locationName- The location of the database.onlyLatestPerDatabase- Whether or not to only get the latest backup for each database.databaseState- Whether to query against just live databases, just deleted databases, or all databases.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedFlux. - 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.
-
listByResourceGroupLocationAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupLocationAsync(String resourceGroupName, String locationName) Lists the long term retention backups for managed databases in a given location.- 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.locationName- The location of the database.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedFlux. - 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.
-
listByResourceGroupLocation
com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupLocation(String resourceGroupName, String locationName) Lists the long term retention backups for managed databases in a given location.- 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.locationName- The location of the database.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedIterable. - 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.
-
listByResourceGroupLocation
com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupLocation(String resourceGroupName, String locationName, Boolean onlyLatestPerDatabase, DatabaseState databaseState, com.azure.core.util.Context context) Lists the long term retention backups for managed databases in a given location.- 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.locationName- The location of the database.onlyLatestPerDatabase- Whether or not to only get the latest backup for each database.databaseState- Whether to query against just live databases, just deleted databases, or all databases.context- The context to associate with this operation.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedIterable. - 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.
-
listByResourceGroupDatabaseAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupDatabaseAsync(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, Boolean onlyLatestPerDatabase, DatabaseState databaseState) Lists all long term retention backups for 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.onlyLatestPerDatabase- Whether or not to only get the latest backup for each database.databaseState- Whether to query against just live databases, just deleted databases, or all databases.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedFlux. - 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.
-
listByResourceGroupDatabaseAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupDatabaseAsync(String resourceGroupName, String locationName, String managedInstanceName, String databaseName) Lists all long term retention backups for 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedFlux. - 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.
-
listByResourceGroupDatabase
com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupDatabase(String resourceGroupName, String locationName, String managedInstanceName, String databaseName) Lists all long term retention backups for 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedIterable. - 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.
-
listByResourceGroupDatabase
com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupDatabase(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, Boolean onlyLatestPerDatabase, DatabaseState databaseState, com.azure.core.util.Context context) Lists all long term retention backups for 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.onlyLatestPerDatabase- Whether or not to only get the latest backup for each database.databaseState- Whether to query against just live databases, just deleted databases, or all databases.context- The context to associate with this operation.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedIterable. - 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.
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<ManagedInstanceLongTermRetentionBackupInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName) Gets a long term retention backup for 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.- Returns:
- a long term retention backup for a managed database along with
Responseon successful completion ofMono. - 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.
-
getByResourceGroupAsync
Mono<ManagedInstanceLongTermRetentionBackupInner> getByResourceGroupAsync(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName) Gets a long term retention backup for 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.- Returns:
- a long term retention backup for a managed database on successful completion of
Mono. - 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<ManagedInstanceLongTermRetentionBackupInner> getByResourceGroupWithResponse(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName, com.azure.core.util.Context context) Gets a long term retention backup for 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.context- The context to associate with this operation.- Returns:
- a long term retention backup for a managed database along with
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.
-
getByResourceGroup
ManagedInstanceLongTermRetentionBackupInner getByResourceGroup(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName) Gets a long term retention backup for 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.- Returns:
- a long term retention backup for 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.
-
deleteByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteByResourceGroupWithResponseAsync(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.- 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.- Returns:
- the
Responseon successful completion ofMono. - 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.
-
beginDeleteByResourceGroupAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginDeleteByResourceGroupAsync(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.- 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.- Returns:
- the
PollerFluxfor polling of long-running 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.
-
beginDeleteByResourceGroup
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDeleteByResourceGroup(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.- 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.- Returns:
- the
SyncPollerfor polling of long-running 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.
-
beginDeleteByResourceGroup
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDeleteByResourceGroup(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName, com.azure.core.util.Context context) Deletes a long term retention backup.- 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running 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.
-
deleteByResourceGroupAsync
Mono<Void> deleteByResourceGroupAsync(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.- 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.- Returns:
- A
Monothat completes when a successful response is received. - 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.
-
deleteByResourceGroup
void deleteByResourceGroup(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName) Deletes a long term retention backup.- 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.- 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.
-
deleteByResourceGroup
void deleteByResourceGroup(String resourceGroupName, String locationName, String managedInstanceName, String databaseName, String backupName, com.azure.core.util.Context context) Deletes a long term retention backup.- 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database.backupName- The backup name.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.
-
listByResourceGroupInstanceAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupInstanceAsync(String resourceGroupName, String locationName, String managedInstanceName, Boolean onlyLatestPerDatabase, DatabaseState databaseState) Lists the long term retention backups for a given 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.onlyLatestPerDatabase- Whether or not to only get the latest backup for each database.databaseState- Whether to query against just live databases, just deleted databases, or all databases.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedFlux. - 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.
-
listByResourceGroupInstanceAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupInstanceAsync(String resourceGroupName, String locationName, String managedInstanceName) Lists the long term retention backups for a given 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedFlux. - 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.
-
listByResourceGroupInstance
com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupInstance(String resourceGroupName, String locationName, String managedInstanceName) Lists the long term retention backups for a given 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedIterable. - 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.
-
listByResourceGroupInstance
com.azure.core.http.rest.PagedIterable<ManagedInstanceLongTermRetentionBackupInner> listByResourceGroupInstance(String resourceGroupName, String locationName, String managedInstanceName, Boolean onlyLatestPerDatabase, DatabaseState databaseState, com.azure.core.util.Context context) Lists the long term retention backups for a given 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.locationName- The location of the database.managedInstanceName- The name of the managed instance.onlyLatestPerDatabase- Whether or not to only get the latest backup for each database.databaseState- Whether to query against just live databases, just deleted databases, or all databases.context- The context to associate with this operation.- Returns:
- a list of long term retention backups for managed database(s) as paginated response with
PagedIterable. - 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.
-