Package org.ovirt.engine.sdk4.services
Interface AttachedStorageDomainDisksService.AddRequest
-
- All Superinterfaces:
Request<AttachedStorageDomainDisksService.AddRequest,AttachedStorageDomainDisksService.AddResponse>
- Enclosing interface:
- AttachedStorageDomainDisksService
public static interface AttachedStorageDomainDisksService.AddRequest extends Request<AttachedStorageDomainDisksService.AddRequest,AttachedStorageDomainDisksService.AddResponse>
Adds or registers a disk. IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards compatibility. It will be removed in the future. To add a new disk use the <> operation of the service that manages the disks of the system. To register an unregistered disk use the < > operation of the service that manages that disk.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttachedStorageDomainDisksService.AddRequest
disk(DiskBuilder disk)
The disk to add or register.AttachedStorageDomainDisksService.AddRequest
disk(Disk disk)
AttachedStorageDomainDisksService.AddRequest
unregistered(Boolean unregistered)
Indicates if a new disk should be added or if an existing unregistered disk should be registered.
-
-
-
Method Detail
-
disk
AttachedStorageDomainDisksService.AddRequest disk(Disk disk)
-
disk
AttachedStorageDomainDisksService.AddRequest disk(DiskBuilder disk)
The disk to add or register.
-
unregistered
AttachedStorageDomainDisksService.AddRequest unregistered(Boolean unregistered)
Indicates if a new disk should be added or if an existing unregistered disk should be registered. If the value is `true` then the identifier of the disk to register needs to be provided. For example, to register the disk with id `456` send a request like this: .... POST /ovirt-engine/api/storagedomains/123/disks?unregistered=true .... With a request body like this: [source,xml] -------- If the value is `false` then a new disk will be created in the storage domain. In that case the `provisioned_size`, `format` and `name` attributes are mandatory. For example, to create a new _copy on write_ disk of 1 GiB, send a request like this: .... POST /ovirt-engine/api/storagedomains/123/disks .... With a request body like this: [source,xml] ---- mydisk cow 1073741824
-
-