Interface Backups
public interface Backups
Resource collection API of Backups.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Backup resource.void
delete
(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName) Delete backupvoid
delete
(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName, com.azure.core.util.Context context) Delete backupvoid
deleteById
(String id) Delete backupvoid
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete backupget
(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName) Get a backupGet a backupcom.azure.core.http.rest.Response<Backup>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a backupGet volume's backup statuscom.azure.core.http.rest.Response<BackupStatus>
getStatusWithResponse
(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Get volume's backup statusgetVolumeRestoreStatus
(String resourceGroupName, String accountName, String poolName, String volumeName) Get volume's restore statuscom.azure.core.http.rest.Response<RestoreStatus>
getVolumeRestoreStatusWithResponse
(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Get volume's restore statuscom.azure.core.http.rest.Response<Backup>
getWithResponse
(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName, com.azure.core.util.Context context) Get a backupcom.azure.core.http.rest.PagedIterable<Backup>
List Backupscom.azure.core.http.rest.PagedIterable<Backup>
list
(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) List Backups
-
Method Details
-
getStatus
BackupStatus getStatus(String resourceGroupName, String accountName, String poolName, String volumeName) Get volume's backup statusGet the status of the backup for a volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Returns:
- the status of the backup for a volume.
- 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.
-
getStatusWithResponse
com.azure.core.http.rest.Response<BackupStatus> getStatusWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Get volume's backup statusGet the status of the backup for a volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.context
- The context to associate with this operation.- Returns:
- the status of the backup for a volume 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.
-
getVolumeRestoreStatus
RestoreStatus getVolumeRestoreStatus(String resourceGroupName, String accountName, String poolName, String volumeName) Get volume's restore statusGet the status of the restore for a volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Returns:
- the status of the restore for a volume.
- 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.
-
getVolumeRestoreStatusWithResponse
com.azure.core.http.rest.Response<RestoreStatus> getVolumeRestoreStatusWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Get volume's restore statusGet the status of the restore for a volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.context
- The context to associate with this operation.- Returns:
- the status of the restore for a volume 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.
-
list
com.azure.core.http.rest.PagedIterable<Backup> list(String resourceGroupName, String accountName, String poolName, String volumeName) List BackupsList all backups for a volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Returns:
- list of 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.
-
list
com.azure.core.http.rest.PagedIterable<Backup> list(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) List BackupsList all backups for a volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.context
- The context to associate with this operation.- Returns:
- list of 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.
-
get
Backup get(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName) Get a backupGets the specified backup of the volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.backupName
- The name of the backup.- Returns:
- the specified backup of the volume.
- 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<Backup> getWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName, com.azure.core.util.Context context) Get a backupGets the specified backup of the volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.backupName
- The name of the backup.context
- The context to associate with this operation.- Returns:
- the specified backup of the volume 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.
-
delete
void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName) Delete backupDelete a backup of the volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.backupName
- The name of the backup.- 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 accountName, String poolName, String volumeName, String backupName, com.azure.core.util.Context context) Delete backupDelete a backup of the volume.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.backupName
- The name of the backup.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.
-
getById
Get a backupGets the specified backup of the volume.
- Parameters:
id
- the resource ID.- Returns:
- the specified backup of the volume 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<Backup> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a backupGets the specified backup of the volume.
- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the specified backup of the volume 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.
-
deleteById
Delete backupDelete a backup of the volume.
- Parameters:
id
- the resource ID.- 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.
-
deleteByIdWithResponse
Delete backupDelete a backup of the volume.
- Parameters:
id
- the resource ID.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.
-
define
Begins definition for a new Backup resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Backup definition.
-