Package org.ovirt.engine.sdk4.services
Interface TemplateService
-
- All Superinterfaces:
Service
- All Known Implementing Classes:
TemplateServiceImpl
public interface TemplateService extends Service
Manages the virtual machine template and template versions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
TemplateService.ExportRequest
Exports a template to the data center export domain.static interface
TemplateService.ExportResponse
Exports a template to the data center export domain.static interface
TemplateService.ExportToExportDomainRequest
Exports a template to an export domain.static interface
TemplateService.ExportToExportDomainResponse
Exports a template to an export domain.static interface
TemplateService.ExportToPathOnHostRequest
Exports a template as an OVA file to a given path on a specified host.static interface
TemplateService.ExportToPathOnHostResponse
Exports a template as an OVA file to a given path on a specified host.static interface
TemplateService.GetRequest
Returns the information about this template or template version.static interface
TemplateService.GetResponse
Returns the information about this template or template version.static interface
TemplateService.RemoveRequest
Removes a virtual machine template.static interface
TemplateService.RemoveResponse
Removes a virtual machine template.static interface
TemplateService.UpdateRequest
Updates the template.static interface
TemplateService.UpdateResponse
Updates the template.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TemplateCdromsService
cdromsService()
Returns a reference to the service that manages the CD-ROMs that are associated with the template.TemplateDiskAttachmentsService
diskAttachmentsService()
Returns a reference to the service that manages a specific disk attachment of the template.TemplateService.ExportRequest
export()
Exports a template to the data center export domain.TemplateService.ExportToExportDomainRequest
exportToExportDomain()
Exports a template to an export domain.TemplateService.ExportToPathOnHostRequest
exportToPathOnHost()
Exports a template as an OVA file to a given path on a specified host.TemplateService.GetRequest
get()
Returns the information about this template or template version.TemplateGraphicsConsolesService
graphicsConsolesService()
Returns a reference to the service that manages the graphical consoles that are associated with the template.TemplateNicsService
nicsService()
Returns a reference to the service that manages the NICs that are associated with the template.AssignedPermissionsService
permissionsService()
Returns a reference to the service that manages the permissions that are associated with the template.TemplateService.RemoveRequest
remove()
Removes a virtual machine template.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.AssignedTagsService
tagsService()
Returns a reference to the service that manages the tags that are associated with the template.TemplateService.UpdateRequest
update()
Updates the template.TemplateWatchdogsService
watchdogsService()
Returns a reference to the service that manages the _watchdogs_ that are associated with the template.
-
-
-
Method Detail
-
export
TemplateService.ExportRequest export()
Exports a template to the data center export domain. For example, send the following request: [source] ---- POST /ovirt-engine/api/templates/123/export ---- With a request body like this: [source,xml] ----true
-
get
TemplateService.GetRequest get()
Returns the information about this template or template version.
-
remove
TemplateService.RemoveRequest remove()
Removes a virtual machine template. [source] ---- DELETE /ovirt-engine/api/templates/123 ----
-
exportToExportDomain
TemplateService.ExportToExportDomainRequest exportToExportDomain()
Exports a template to an export domain.
-
exportToPathOnHost
TemplateService.ExportToPathOnHostRequest exportToPathOnHost()
Exports a template as an OVA file to a given path on a specified host.
-
update
TemplateService.UpdateRequest update()
Updates the template. The `name`, `description`, `type`, `memory`, `cpu`, `topology`, `os`, `high_availability`, `display`, `stateless`, `usb`, and `timezone` elements can be updated after a template has been created. For example, to update a template so that it has 1 GiB of memory send a request like this: [source] ---- PUT /ovirt-engine/api/templates/123 ---- With the following request body: [source,xml] ----1073741824 ---- The `version_name` name attribute is the only one that can be updated within the `version` attribute used for template versions: [source,xml] ----mytemplate_2
-
cdromsService
TemplateCdromsService cdromsService()
Returns a reference to the service that manages the CD-ROMs that are associated with the template.
-
diskAttachmentsService
TemplateDiskAttachmentsService diskAttachmentsService()
Returns a reference to the service that manages a specific disk attachment of the template.
-
graphicsConsolesService
TemplateGraphicsConsolesService graphicsConsolesService()
Returns a reference to the service that manages the graphical consoles that are associated with the template.
-
nicsService
TemplateNicsService nicsService()
Returns a reference to the service that manages the NICs that are associated with the template.
-
permissionsService
AssignedPermissionsService permissionsService()
Returns a reference to the service that manages the permissions that are associated with the template.
-
tagsService
AssignedTagsService tagsService()
Returns a reference to the service that manages the tags that are associated with the template.
-
watchdogsService
TemplateWatchdogsService watchdogsService()
Returns a reference to the service that manages the _watchdogs_ that are associated with the template.
-
-