Class BlockVolumeSnapshotServiceImpl

    • Constructor Detail

      • BlockVolumeSnapshotServiceImpl

        public BlockVolumeSnapshotServiceImpl()
    • Method Detail

      • list

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

        public VolumeSnapshot get​(String snapshotId)
        Shows information for a specified snapshot.
        Specified by:
        get in interface BlockVolumeSnapshotService
        Parameters:
        snapshotId - the snapshot identifier
        Returns:
        the volume snapshot or null
      • update

        public ActionResponse update​(String snapshotId,
                                     String name,
                                     String description)
        Updates the Name and/or Description for the specified snapshot
        Specified by:
        update in interface BlockVolumeSnapshotService
        Parameters:
        snapshotId - the snapshot identifier
        name - the new name
        description - the new description
        Returns:
        the action response
      • create

        public VolumeSnapshot create​(VolumeSnapshot snapshot)
        Creates a snapshot, which is a point-in-time copy of a volume. You can create a volume from the snapshot.

        NOTE: the volume ID within the snapshot must be set or an NullPointerException will be thrown

        Specified by:
        create in interface BlockVolumeSnapshotService
        Parameters:
        snapshot - the snapshot to create
        Returns:
        the newly created snapshot