Package org.ovirt.engine.sdk4.services
Interface GlusterVolumesService
-
- All Superinterfaces:
Service
- All Known Implementing Classes:
GlusterVolumesServiceImpl
public interface GlusterVolumesService extends Service
This service manages a collection of gluster volumes available in a cluster.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
GlusterVolumesService.AddRequest
Creates a new gluster volume.static interface
GlusterVolumesService.AddResponse
Creates a new gluster volume.static interface
GlusterVolumesService.ListRequest
Lists all gluster volumes in the cluster.static interface
GlusterVolumesService.ListResponse
Lists all gluster volumes in the cluster.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GlusterVolumesService.AddRequest
add()
Creates a new gluster volume.GlusterVolumesService.ListRequest
list()
Lists all gluster volumes in the cluster.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.GlusterVolumeService
volumeService(String id)
Reference to a service managing gluster volume.
-
-
-
Method Detail
-
add
GlusterVolumesService.AddRequest add()
Creates a new gluster volume. The volume is created based on properties of the `volume` parameter. The properties `name`, `volume_type` and `bricks` are required. For example, to add a volume with name `myvolume` to the cluster `123`, send the following request: [source] ---- POST /ovirt-engine/api/clusters/123/glustervolumes ---- With the following request body: [source,xml] ----myvolume replicate 3 server1 /exp1 server2 /exp1 server3 /exp1
-
list
GlusterVolumesService.ListRequest list()
Lists all gluster volumes in the cluster. For example, to list all Gluster Volumes in cluster `456`, send a request like this: [source] ---- GET /ovirt-engine/api/clusters/456/glustervolumes ---- The order of the returned list of volumes isn't guaranteed.
-
volumeService
GlusterVolumeService volumeService(String id)
Reference to a service managing gluster volume.
-
-