Class StorageDomainsServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.StorageDomainsServiceImpl
-
- All Implemented Interfaces:
Service
,StorageDomainsService
public class StorageDomainsServiceImpl extends ServiceImpl implements StorageDomainsService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.StorageDomainsService
StorageDomainsService.AddBlockDomainRequest, StorageDomainsService.AddBlockDomainResponse, StorageDomainsService.AddByPathRequest, StorageDomainsService.AddByPathResponse, StorageDomainsService.AddDirectLunRequest, StorageDomainsService.AddDirectLunResponse, StorageDomainsService.AddGlusterOrPostfsRequest, StorageDomainsService.AddGlusterOrPostfsResponse, StorageDomainsService.AddLocalRequest, StorageDomainsService.AddLocalResponse, StorageDomainsService.AddRequest, StorageDomainsService.AddResponse, StorageDomainsService.ListRequest, StorageDomainsService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description StorageDomainsServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageDomainsService.AddRequest
add()
Adds a new storage domain.StorageDomainsService.AddBlockDomainRequest
addBlockDomain()
Import an existing block storage domain to the system using the targets already connected to the host.StorageDomainsService.AddByPathRequest
addByPath()
Add a new storage domain to the system using the storage on the given host and path.StorageDomainsService.AddDirectLunRequest
addDirectLun()
Add a new storage domain to the system using a direct LUN.StorageDomainsService.AddGlusterOrPostfsRequest
addGlusterOrPostfs()
Add a new storage domain to the system using Gluster or POSIX FS storage.StorageDomainsService.AddLocalRequest
addLocal()
Add a new storage domain to the system using the storage on the local host at the given path.StorageDomainsService.ListRequest
list()
Returns the list of storage domains in the system.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.StorageDomainService
storageDomainService(String id)
String
toString()
-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
StorageDomainsServiceImpl
public StorageDomainsServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public StorageDomainsService.AddRequest add()
Description copied from interface:StorageDomainsService
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 myisos iso nfs mynfs.example.com/export/myisos myhost myiscsi data iscsi myhost - Specified by:
add
in interfaceStorageDomainsService
-
addBlockDomain
public StorageDomainsService.AddBlockDomainRequest addBlockDomain()
Description copied from interface:StorageDomainsService
Import an existing block storage domain to the system using the targets already connected to the host.- Specified by:
addBlockDomain
in interfaceStorageDomainsService
-
addByPath
public StorageDomainsService.AddByPathRequest addByPath()
Description copied from interface:StorageDomainsService
Add a new storage domain to the system using the storage on the given host and path.- Specified by:
addByPath
in interfaceStorageDomainsService
-
addDirectLun
public StorageDomainsService.AddDirectLunRequest addDirectLun()
Description copied from interface:StorageDomainsService
Add a new storage domain to the system using a direct LUN.- Specified by:
addDirectLun
in interfaceStorageDomainsService
-
addGlusterOrPostfs
public StorageDomainsService.AddGlusterOrPostfsRequest addGlusterOrPostfs()
Description copied from interface:StorageDomainsService
Add a new storage domain to the system using Gluster or POSIX FS storage.- Specified by:
addGlusterOrPostfs
in interfaceStorageDomainsService
-
list
public StorageDomainsService.ListRequest list()
Description copied from interface:StorageDomainsService
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.- Specified by:
list
in interfaceStorageDomainsService
-
addLocal
public StorageDomainsService.AddLocalRequest addLocal()
Description copied from interface:StorageDomainsService
Add a new storage domain to the system using the storage on the local host at the given path.- Specified by:
addLocal
in interfaceStorageDomainsService
-
storageDomainService
public StorageDomainService storageDomainService(String id)
- Specified by:
storageDomainService
in interfaceStorageDomainsService
-
service
public Service service(String path)
Description copied from interface:StorageDomainsService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceStorageDomainsService
-
-