public interface Backups
Resource collection API of Backups.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String resourceGroupName, String serverName, String backupName)
    List all the backups for a given server.
    com.azure.core.http.rest.Response<ServerBackup>
    getWithResponse(String resourceGroupName, String serverName, String backupName, com.azure.core.util.Context context)
    List all the backups for a given server.
    com.azure.core.http.rest.PagedIterable<ServerBackup>
    listByServer(String resourceGroupName, String serverName)
    List all the backups for a given server.
    com.azure.core.http.rest.PagedIterable<ServerBackup>
    listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context)
    List all the backups for a given server.
    put(String resourceGroupName, String serverName, String backupName)
    Create backup for a given server with specified backup name.
    com.azure.core.http.rest.Response<ServerBackup>
    putWithResponse(String resourceGroupName, String serverName, String backupName, com.azure.core.util.Context context)
    Create backup for a given server with specified backup name.
  • Method Details

    • putWithResponse

      com.azure.core.http.rest.Response<ServerBackup> putWithResponse(String resourceGroupName, String serverName, String backupName, com.azure.core.util.Context context)
      Create backup for a given server with specified backup name.
      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:
      server backup properties 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.
    • put

      ServerBackup put(String resourceGroupName, String serverName, String backupName)
      Create backup for a given server with specified backup name.
      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:
      server backup properties.
      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<ServerBackup> getWithResponse(String resourceGroupName, String serverName, String backupName, com.azure.core.util.Context context)
      List all the backups for a given 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:
      server backup properties 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

      ServerBackup get(String resourceGroupName, String serverName, String backupName)
      List all the backups for a given 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:
      server backup properties.
      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<ServerBackup> listByServer(String resourceGroupName, String serverName)
      List all the backups for a given server.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      Returns:
      a list of server backups 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<ServerBackup> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context)
      List all the backups for a given 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 server backups 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.