Class DataCenterServiceImpl

    • Constructor Detail

    • Method Detail

      • cleanFinishedTasks

        public DataCenterService.CleanFinishedTasksRequest cleanFinishedTasks()
        Description copied from interface: DataCenterService
        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] ---- ----
        Specified by:
        cleanFinishedTasks in interface DataCenterService
      • get

        public DataCenterService.GetRequest get()
        Description copied from interface: DataCenterService
        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 ----
        Specified by:
        get in interface DataCenterService
      • remove

        public DataCenterService.RemoveRequest remove()
        Description copied from interface: DataCenterService
        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.
        Specified by:
        remove in interface DataCenterService
      • setMaster

        public DataCenterService.SetMasterRequest setMaster()
        Description copied from interface: DataCenterService
        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] ---- ---- The new master storage domain can be also specified by its name.
        Specified by:
        setMaster in interface DataCenterService
      • update

        public DataCenterService.UpdateRequest update()
        Description copied from interface: DataCenterService
        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 ----
        Specified by:
        update in interface DataCenterService
      • storageDomainsService

        public AttachedStorageDomainsService storageDomainsService()
        Description copied from interface: DataCenterService
        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 ---- For detaching a single storage domain we should use the following DELETE request: [source] ---- DELETE /ovirt-engine/api/datacenters/123/storagedomains/123 ----
        Specified by:
        storageDomainsService in interface DataCenterService