Class BlockVolumeBackupServiceImpl

    • Constructor Detail

      • BlockVolumeBackupServiceImpl

        public BlockVolumeBackupServiceImpl()
    • Method Detail

      • list

        public List<? extends VolumeBackup> list()
        Lists detailed information for all Block Storage backups that the tenant who submits the request can access.
        Specified by:
        list in interface BlockVolumeBackupService
        Returns:
        List of VolumeBackup
      • get

        public VolumeBackup get​(String backupId)
        Shows information for a specified backup.
        Specified by:
        get in interface BlockVolumeBackupService
        Parameters:
        backupId - the backup identifier
        Returns:
        the volume backup or null
      • restore

        public VolumeBackupRestore restore​(String backupId,
                                           String name,
                                           String volumeId)
        Restore volume from a a specified backup. If volumeId is provided, the backup will be restored to existng volume specified by the volume id. Otherwise, a new volume will be created from the backup with assigned volume name.
        Specified by:
        restore in interface BlockVolumeBackupService
        Parameters:
        backupId - the backup identifier
        name - the volume name
        volumeId - the identified of existing volume