Package org.ovirt.engine.sdk4.services
Interface DataCenterService
-
- All Superinterfaces:
Service
- All Known Implementing Classes:
DataCenterServiceImpl
public interface DataCenterService extends Service
A service to manage a data center.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
DataCenterService.CleanFinishedTasksRequest
Currently, the storage pool manager (SPM) fails to switch to another host if the SPM has uncleared tasks.static interface
DataCenterService.CleanFinishedTasksResponse
Currently, the storage pool manager (SPM) fails to switch to another host if the SPM has uncleared tasks.static interface
DataCenterService.GetRequest
Get a data center.static interface
DataCenterService.GetResponse
Get a data center.static interface
DataCenterService.RemoveRequest
Removes the data center.static interface
DataCenterService.RemoveResponse
Removes the data center.static interface
DataCenterService.SetMasterRequest
Used for manually setting a storage domain in the data center as a master.static interface
DataCenterService.SetMasterResponse
Used for manually setting a storage domain in the data center as a master.static interface
DataCenterService.UpdateRequest
Updates the data center.static interface
DataCenterService.UpdateResponse
Updates the data center.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataCenterService.CleanFinishedTasksRequest
cleanFinishedTasks()
Currently, the storage pool manager (SPM) fails to switch to another host if the SPM has uncleared tasks.ClustersService
clustersService()
DataCenterService.GetRequest
get()
Get a data center.IscsiBondsService
iscsiBondsService()
Reference to the iSCSI bonds service.DataCenterNetworksService
networksService()
Returns a reference to the service, that manages the networks, that are associated with the data center.AssignedPermissionsService
permissionsService()
Reference to the permissions service.QossService
qossService()
Reference to the QOSs service.QuotasService
quotasService()
Reference to the quotas service.DataCenterService.RemoveRequest
remove()
Removes the data center.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.DataCenterService.SetMasterRequest
setMaster()
Used for manually setting a storage domain in the data center as a master.AttachedStorageDomainsService
storageDomainsService()
Attach and detach storage domains to and from a data center.DataCenterService.UpdateRequest
update()
Updates the data center.
-
-
-
Method Detail
-
cleanFinishedTasks
DataCenterService.CleanFinishedTasksRequest cleanFinishedTasks()
Currently, the storage pool manager (SPM) fails to switch to another host if the SPM has uncleared tasks. Clearing all finished tasks enables the SPM switching. For example, to clean all the finished tasks on a data center with ID `123` send a request like this: [source] ---- POST /ovirt-engine/api/datacenters/123/cleanfinishedtasks ---- With a request body like this: [source,xml] --------
-
get
DataCenterService.GetRequest get()
Get a data center. An example of getting a data center: [source] ---- GET /ovirt-engine/api/datacenters/123 ---- [source,xml] ----Default The default Data Center false disabled up v3 4 0 4 0
-
remove
DataCenterService.RemoveRequest remove()
Removes the data center. [source] ---- DELETE /ovirt-engine/api/datacenters/123 ---- Without any special parameters, the storage domains attached to the data center are detached and then removed from the storage. If something fails when performing this operation, for example if there is no host available to remove the storage domains from the storage, the complete operation will fail. If the `force` parameter is `true` then the operation will always succeed, even if something fails while removing one storage domain, for example. The failure is just ignored and the data center is removed from the database anyway.
-
setMaster
DataCenterService.SetMasterRequest setMaster()
Used for manually setting a storage domain in the data center as a master. For example, for setting a storage domain with ID '456' as a master on a data center with ID '123', send a request like this: [source] ---- POST /ovirt-engine/api/datacenters/123/setmaster ---- With a request body like this: [source,xml] ----
-
update
DataCenterService.UpdateRequest update()
Updates the data center. The `name`, `description`, `storage_type`, `version`, `storage_format` and `mac_pool` elements are updatable post-creation. For example, to change the name and description of data center `123` send a request like this: [source] ---- PUT /ovirt-engine/api/datacenters/123 ---- With a request body like this: [source,xml] ----myupdatedname An updated description for the data center
-
clustersService
ClustersService clustersService()
-
iscsiBondsService
IscsiBondsService iscsiBondsService()
Reference to the iSCSI bonds service.
-
networksService
DataCenterNetworksService networksService()
Returns a reference to the service, that manages the networks, that are associated with the data center.
-
permissionsService
AssignedPermissionsService permissionsService()
Reference to the permissions service.
-
qossService
QossService qossService()
Reference to the QOSs service.
-
quotasService
QuotasService quotasService()
Reference to the quotas service.
-
storageDomainsService
AttachedStorageDomainsService storageDomainsService()
Attach and detach storage domains to and from a data center. For attaching a single storage domain we should use the following POST request: [source] ---- POST /ovirt-engine/api/datacenters/123/storagedomains ---- With a request body like this: [source,xml] ----data1
-
-