Interface BackupsLongTermRetentions


public interface BackupsLongTermRetentions
Resource collection API of BackupsLongTermRetentions.
  • Method Details

    • checkPrerequisitesWithResponse

      com.azure.core.http.rest.Response<LtrPreBackupResponse> checkPrerequisitesWithResponse(String resourceGroupName, String serverName, LtrPreBackupRequest parameters, com.azure.core.util.Context context)
      Performs all checks required for a long term retention backup operation to succeed.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      parameters - Request body for operation.
      context - The context to associate with this operation.
      Returns:
      response for the LTR pre-backup API call.
      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.
    • checkPrerequisites

      LtrPreBackupResponse checkPrerequisites(String resourceGroupName, String serverName, LtrPreBackupRequest parameters)
      Performs all checks required for a long term retention backup operation to succeed.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      parameters - Request body for operation.
      Returns:
      response for the LTR pre-backup API call.
      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.
    • start

      BackupsLongTermRetentionResponse start(String resourceGroupName, String serverName, BackupsLongTermRetentionRequest parameters)
      Initiates a long term retention backup.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      parameters - Request body for operation.
      Returns:
      response for the LTR backup API call.
      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.
    • start

      BackupsLongTermRetentionResponse start(String resourceGroupName, String serverName, BackupsLongTermRetentionRequest parameters, com.azure.core.util.Context context)
      Initiates a long term retention backup.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      parameters - Request body for operation.
      context - The context to associate with this operation.
      Returns:
      response for the LTR backup API call.
      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<BackupsLongTermRetentionOperation> getWithResponse(String resourceGroupName, String serverName, String backupName, com.azure.core.util.Context context)
      Gets the results of a long retention backup operation for a server.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      backupName - The name of the backup.
      context - The context to associate with this operation.
      Returns:
      the results of a long retention backup operation for a server 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

      BackupsLongTermRetentionOperation get(String resourceGroupName, String serverName, String backupName)
      Gets the results of a long retention backup operation for a server.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      backupName - The name of the backup.
      Returns:
      the results of a long retention backup operation for a server.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByServer

      com.azure.core.http.rest.PagedIterable<BackupsLongTermRetentionOperation> listByServer(String resourceGroupName, String serverName)
      Lists the results of the long term retention backup operations for a server.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      Returns:
      a list of long term retention backup operations for server 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.
    • listByServer

      com.azure.core.http.rest.PagedIterable<BackupsLongTermRetentionOperation> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context)
      Lists the results of the long term retention backup operations for a server.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      context - The context to associate with this operation.
      Returns:
      a list of long term retention backup operations for server 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.