Class DataCenterServiceImpl

    • Constructor Detail

    • Method Detail

      • 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
      • 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