Package org.ovirt.engine.sdk4.services
Interface TemplatesService.AddFromConfigurationRequest
-
- All Superinterfaces:
Request<TemplatesService.AddFromConfigurationRequest,TemplatesService.AddFromConfigurationResponse>
- Enclosing interface:
- TemplatesService
public static interface TemplatesService.AddFromConfigurationRequest extends Request<TemplatesService.AddFromConfigurationRequest,TemplatesService.AddFromConfigurationResponse>
Add a virtual machine template to the system from a configuration. Requires the configuration type, the configuration data, and the target cluster.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TemplatesService.AddFromConfigurationRequest
clonePermissions(Boolean clonePermissions)
Specifies if the permissions of the virtual machine should be copied to the template.TemplatesService.AddFromConfigurationRequest
seal(Boolean seal)
Seals the template.TemplatesService.AddFromConfigurationRequest
template(TemplateBuilder template)
The information about the template or template version.TemplatesService.AddFromConfigurationRequest
template(Template template)
-
-
-
Method Detail
-
clonePermissions
TemplatesService.AddFromConfigurationRequest 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.AddFromConfigurationRequest 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.AddFromConfigurationRequest template(Template template)
-
template
TemplatesService.AddFromConfigurationRequest template(TemplateBuilder template)
The information about the template or template version.
-
-