Interface DataCenterService

    • 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] ---- ---- The new master storage domain can be also specified by its name.
      • 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 ----
      • 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.
      • 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 ---- For detaching a single storage domain we should use the following DELETE request: [source] ---- DELETE /ovirt-engine/api/datacenters/123/storagedomains/123 ----
      • service

        Service service​(String path)
        Service locator method, returns individual service on which the URI is dispatched.