Interface TemplateService

  • All Superinterfaces:
    Service
    All Known Implementing Classes:
    TemplateServiceImpl

    public interface TemplateService
    extends Service
    Manages the virtual machine template and template versions.
    • 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 ----
      • 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] ---- ---- The `version_name` name attribute is the only one that can be updated within the `version` attribute used for template versions: [source,xml] ---- ----
      • 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.
      • service

        Service service​(String path)
        Service locator method, returns individual service on which the URI is dispatched.