Interface StorageDomainsService

    • Method Detail

      • add

        StorageDomainsService.AddRequest add()
        Adds a new storage domain. Creation of a new <> requires the `name`, `type`, `host`, and `storage` attributes. Identify the `host` attribute with the `id` or `name` attributes. In {product-name} 3.6 and later you can enable the wipe after delete option by default on the storage domain. To configure this, specify `wipe_after_delete` in the POST request. This option can be edited after the domain is created, but doing so will not change the wipe after delete property of disks that already exist. To add a new storage domain with specified `name`, `type`, `storage.type`, `storage.address`, and `storage.path`, and using a host with an id `123`, send a request like this: [source] ---- POST /ovirt-engine/api/storageDomains ---- With a request body like this: [source,xml] ---- mydata data nfs
        mynfs.example.com
        /exports/mydata
        myhost
        ---- To create a new NFS ISO storage domain send a request like this: [source,xml] ---- myisos iso nfs
        mynfs.example.com
        /export/myisos
        myhost
        ---- To create a new iSCSI storage domain send a request like this: [source,xml] ---- myiscsi data iscsi myhost ----
      • list

        StorageDomainsService.ListRequest list()
        Returns the list of storage domains in the system. The order of the returned list of storage domains is guaranteed only if the `sortby` clause is included in the `search` parameter.
      • service

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