public interface TemplateClient
TemplateAsyncClient
,
Modifier and Type | Method and Description |
---|---|
AsyncCreateResponse |
copyTemplateToZone(long id,
long sourceZoneId,
long destZoneId)
Copies a template from one zone to another.
|
AsyncCreateResponse |
createTemplate(TemplateMetadata templateMetadata,
CreateTemplateOptions... options)
Creates a template of a virtual machine.
|
AsyncCreateResponse |
deleteTemplate(long id,
DeleteTemplateOptions... options)
Deletes a template from the system.
|
AsyncCreateResponse |
extractTemplate(long id,
ExtractMode mode,
long zoneId,
ExtractTemplateOptions... options) |
Template |
getTemplateInZone(long templateId,
long zoneId)
get a specific template by id
|
Set<TemplatePermission> |
listTemplatePermissions(long id,
AccountInDomainOptions... options)
List template visibility and all accounts that have permissions to view
this template.
|
Set<Template> |
listTemplates()
List all executable templates.
|
Set<Template> |
listTemplates(ListTemplatesOptions options)
List all public, private, and privileged templates.
|
Set<Template> |
registerTemplate(TemplateMetadata templateMetadata,
String format,
String hypervisor,
String url,
long zoneId,
RegisterTemplateOptions... options)
Registers an existing template into the Cloud.com cloud.
|
Template |
updateTemplate(long id,
UpdateTemplateOptions... options)
Updates attributes of a template.
|
void |
updateTemplatePermissions(long id,
UpdateTemplatePermissionsOptions... options)
Updates a template visibility permissions.
|
AsyncCreateResponse createTemplate(TemplateMetadata templateMetadata, CreateTemplateOptions... options)
templateMetadata
- overall description of the templateoptions
- optional arguments://download.cloud.com/releases/2.2.0/api_2.2.8/user/createTemplate
.html
Set<Template> registerTemplate(TemplateMetadata templateMetadata, String format, String hypervisor, String url, long zoneId, RegisterTemplateOptions... options)
templateMetadata
- overall description of the templateformat
- the format for the template. Possible values include QCOW2, RAW,
and VHD.url
- the URL of where the template is hosted. Possible URL include
http:// and https://zoneId
- the ID of the zone the template is to be hosted onoptions
- optional arguments://download.cloud.com/releases/2.2.0/api_2.2.8/user/registerTemplate
.html
Template updateTemplate(long id, UpdateTemplateOptions... options)
id
- the ID of the image fileoptions
- optional arguments://download.cloud.com/releases/2.2.0/api_2.2.8/user/updateTemplate
.html
AsyncCreateResponse copyTemplateToZone(long id, long sourceZoneId, long destZoneId)
id
- Template ID.sourceZoneId
- ID of the zone the template is currently hosted on.destZoneId
- ID of the zone the template is being copied to.://download.cloud.com/releases/2.2.0/api_2.2.8/user/copyTemplate.html
AsyncCreateResponse deleteTemplate(long id, DeleteTemplateOptions... options)
id
- the ID of the templateoptions
- optional arguments://download.cloud.com/releases/2.2.0/api_2.2.8/user/deleteTemplate
.html
Set<Template> listTemplates()
://download.cloud.com/releases/2.2.0/api_2.2.8/user/listTemplates.
html
Set<Template> listTemplates(ListTemplatesOptions options)
options
- if present, how to constrain the list, defaults to all
executable templates://download.cloud.com/releases/2.2.0/api_2.2.8/user/listTemplates.
html
,
TemplateFilter
Template getTemplateInZone(long templateId, long zoneId)
templateId
- zoneId
- zone template is defined invoid updateTemplatePermissions(long id, UpdateTemplatePermissionsOptions... options)
id
- the template IDoptions
- optional argumentsupdateTemplatePermissions.html
Set<TemplatePermission> listTemplatePermissions(long id, AccountInDomainOptions... options)
id
- the template IDoptions
- optional argumentslistTemplatePermissions.html
AsyncCreateResponse extractTemplate(long id, ExtractMode mode, long zoneId, ExtractTemplateOptions... options)
id
- the ID of the templatemode
- FIXME the mode of extraction - HTTP_DOWNLOAD or FTP_UPLOADzoneId
- the ID of the zone where the ISO is originally locatedoptions
- optional arguments://download.cloud.com/releases/2.2.0/api_2.2.8/user/extractTemplate
.html
Copyright © 2009-2012 jclouds. All Rights Reserved.