Package org.ovirt.engine.sdk4.services
Interface TemplatesService.AddRequest
-
- All Superinterfaces:
Request<TemplatesService.AddRequest,TemplatesService.AddResponse>
- Enclosing interface:
- TemplatesService
public static interface TemplatesService.AddRequest extends Request<TemplatesService.AddRequest,TemplatesService.AddResponse>
Creates a new template. This requires the `name` and `vm` elements. To identify the virtual machine use the `vm.id` or `vm.name` attributes. For example, to create a template from a virtual machine with the identifier `123` send a request like this: [source] ---- POST /ovirt-engine/api/templates ---- With a request body like this: [source,xml] ----mytemplate ---- Since version 4.3, in order to create virtual machine template from a snapshot send a request body like this: [source,xml] ---- mytemplate > and make it < >, send a request body like this: [source,xml] ---- mytemplate mydisk cow true mytemplate mytemplate_001 mytemplate cow true mytemplate cow true
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TemplatesService.AddRequest
clonePermissions(Boolean clonePermissions)
Specifies if the permissions of the virtual machine should be copied to the template.TemplatesService.AddRequest
seal(Boolean seal)
Seals the template.TemplatesService.AddRequest
template(TemplateBuilder template)
The information about the template or template version.TemplatesService.AddRequest
template(Template template)
-
-
-
Method Detail
-
clonePermissions
TemplatesService.AddRequest clonePermissions(Boolean clonePermissions)
Specifies if the permissions of the virtual machine should be copied to the template. If this optional parameter is provided, and its value is `true`, then the permissions of the virtual machine (only the direct ones, not the inherited ones) will be copied to the created template. For example, to create a template from the `myvm` virtual machine copying its permissions, send a request like this: [source] ---- POST /ovirt-engine/api/templates?clone_permissions=true ---- With a request body like this: [source,xml] ----mytemplate ----myvm
-
seal
TemplatesService.AddRequest seal(Boolean seal)
Seals the template. If this optional parameter is provided and its value is `true`, then the template is sealed after creation. Sealing erases all host-specific configuration from the filesystem: SSH keys, UDEV rules, MAC addresses, system ID, hostname, and so on, thus making it easier to use the template to create multiple virtual machines without manual intervention. Currently, sealing is supported only for Linux operating systems.
-
template
TemplatesService.AddRequest template(Template template)
-
template
TemplatesService.AddRequest template(TemplateBuilder template)
The information about the template or template version.
-
-