Class StorageDomainServiceImpl

    • Constructor Detail

      • StorageDomainServiceImpl

        public StorageDomainServiceImpl​(HttpConnection connection,
                                        String path)
    • Method Detail

      • reduceLuns

        public StorageDomainService.ReduceLunsRequest reduceLuns()
        Description copied from interface: StorageDomainService
        This operation reduces logical units from the storage domain. In order to do so the data stored on the provided logical units will be moved to other logical units of the storage domain and only then they will be reduced from the storage domain. For example, in order to reduce two logical units from a storage domain send a request like this: [source] ---- POST /ovirt-engine/api/storageDomains/123/reduceluns ---- With a request body like this: [source,xml] ---- ---- Note that this operation is only applicable to block storage domains (i.e., storage domains with the < of iSCSI or FCP).
        Specified by:
        reduceLuns in interface StorageDomainService
      • refreshLuns

        public StorageDomainService.RefreshLunsRequest refreshLuns()
        Description copied from interface: StorageDomainService
        This operation refreshes the LUN size. After increasing the size of the underlying LUN on the storage server, the user can refresh the LUN size. This action forces a rescan of the provided LUNs and updates the database with the new size, if required. For example, in order to refresh the size of two LUNs send a request like this: [source] ---- POST /ovirt-engine/api/storageDomains/262b056b-aede-40f1-9666-b883eff59d40/refreshluns ---- With a request body like this: [source,xml] ---- ----
        Specified by:
        refreshLuns in interface StorageDomainService
      • remove

        public StorageDomainService.RemoveRequest remove()
        Description copied from interface: StorageDomainService
        Removes the storage domain. Without any special parameters, the storage domain is detached from the system and removed from the database. The storage domain can then be imported to the same or to a different setup, with all the data on it. If the storage is not accessible the operation will fail. If the `destroy` parameter is `true` then the operation will always succeed, even if the storage is not accessible, the failure is just ignored and the storage domain is removed from the database anyway. If the `format` parameter is `true` then the actual storage is formatted, and the metadata is removed from the LUN or directory, so it can no longer be imported to the same or to a different setup.
        Specified by:
        remove in interface StorageDomainService
      • update

        public StorageDomainService.UpdateRequest update()
        Description copied from interface: StorageDomainService
        Updates a storage domain. Not all of the <>'s attributes are updatable after creation. Those that can be updated are: `name`, `description`, `comment`, `warning_low_space_indicator`, `critical_space_action_blocker` and `wipe_after_delete.` (Note that changing the `wipe_after_delete` attribute will not change the wipe after delete property of disks that already exist). To update the `name` and `wipe_after_delete` attributes of a storage domain with an identifier `123`, send a request as follows: [source] ---- PUT /ovirt-engine/api/storageDomains/123 ---- With a request body as follows: [source,xml] ---- data2 true ----
        Specified by:
        update in interface StorageDomainService
      • updateOvfStore

        public StorageDomainService.UpdateOvfStoreRequest updateOvfStore()
        Description copied from interface: StorageDomainService
        This operation forces the update of the `OVF_STORE` of this storage domain. The `OVF_STORE` is a disk image that contains the metadata of virtual machines and disks that reside in the storage domain. This metadata is used in case the domain is imported or exported to or from a different data center or a different installation. By default the `OVF_STORE` is updated periodically (set by default to 60 minutes) but users might want to force an update after an important change, or when the they believe the `OVF_STORE` is corrupt. When initiated by the user, `OVF_STORE` update will be performed whether an update is needed or not.
        Specified by:
        updateOvfStore in interface StorageDomainService