public interface ISOApi
http://download.cloud.com/releases/2.2.12/api/TOC_User.html
Modifier and Type | Method and Description |
---|---|
AsyncCreateResponse |
attachISO(String isoId,
String vmId)
Attaches an ISO to a virtual machine.
|
AsyncCreateResponse |
copyISO(String isoId,
String sourceZoneId,
String destZoneId)
Copies a template from one zone to another.
|
AsyncCreateResponse |
deleteISO(String id,
DeleteISOOptions... options)
Deletes an ISO file.
|
AsyncCreateResponse |
detachISO(String vmId)
Detaches any ISO file (if any) currently attached to a virtual machine.
|
AsyncCreateResponse |
extractISO(String id,
ExtractMode mode,
String zoneId,
ExtractISOOptions... options)
Extracts an ISO
|
ISO |
getISO(String id)
Gets information about an ISO by its ID.
|
ISOPermissions |
listISOPermissions(String id,
AccountInDomainOptions... options)
List template visibility and all accounts that have permissions to view this template.
|
Set<ISO> |
listISOs(ListISOsOptions... options)
Lists all available ISO files.
|
ISO |
registerISO(String name,
String displayText,
String url,
String zoneId,
RegisterISOOptions... options)
Registers an existing ISO into the Cloud.com Cloud.
|
ISO |
updateISO(String id,
UpdateISOOptions... options) |
void |
updateISOPermissions(String id,
UpdateISOPermissionsOptions... options)
Updates iso permissions
|
@Named(value="attachIso") @GET @Consumes(value="application/json") AsyncCreateResponse attachISO(@QueryParam(value="id") String isoId, @QueryParam(value="virtualmachineid") String vmId)
isoId
- the ID of the ISO filevmId
- the ID of the virtual machine@Named(value="detachIso") @GET @Consumes(value="application/json") AsyncCreateResponse detachISO(@QueryParam(value="virtualmachineid") String vmId)
vmId
- The ID of the virtual machine@Named(value="listIsos") @GET @Consumes(value="application/json") ISO getISO(@QueryParam(value="id") String id)
id
- the ID of the ISO file@Named(value="listIsos") @GET @Consumes(value="application/json") Set<ISO> listISOs(ListISOsOptions... options)
options
- optional arguments@Named(value="registerIso") @GET @Consumes(value="application/json") ISO registerISO(@QueryParam(value="name") String name, @QueryParam(value="displaytext") String displayText, @QueryParam(value="url") String url, @QueryParam(value="zoneid") String zoneId, RegisterISOOptions... options)
name
- the name of the ISOdisplayText
- the display text of the ISO. This is usually used for display purposes.url
- the URL to where the ISO is currently being hostedzoneId
- the ID of the zone you wish to register the ISO to.options
- optional arguments@Named(value="updateIso") @GET @Consumes(value="application/json") ISO updateISO(@QueryParam(value="id") String id, UpdateISOOptions... options)
id
- the ID of the ISO fileoptions
- optional arguments@Named(value="deleteIso") @GET @Consumes(value="application/json") AsyncCreateResponse deleteISO(@QueryParam(value="id") String id, DeleteISOOptions... options)
id
- the ID of the ISO fileoptions
- optional arguments@Named(value="copyIso") @GET @Consumes(value="application/json") AsyncCreateResponse copyISO(@QueryParam(value="id") String isoId, @QueryParam(value="sourcezoneid") String sourceZoneId, @QueryParam(value="destzoneid") String destZoneId)
isoId
- Template ID.sourceZoneId
- ID of the zone the template is currently hosted on.destZoneId
- ID of the zone the template is being copied to.@Named(value="updateIsoPermissions") @GET @Consumes(value="application/json") void updateISOPermissions(@QueryParam(value="id") String id, UpdateISOPermissionsOptions... options)
id
- the template IDoptions
- optional arguments@Named(value="listIsoPermissions") @GET @Consumes(value="application/json") ISOPermissions listISOPermissions(@QueryParam(value="id") String id, AccountInDomainOptions... options)
id
- the template IDoptions
- optional arguments@Named(value="extractIso") @GET @Consumes(value="application/json") AsyncCreateResponse extractISO(@QueryParam(value="id") String id, @QueryParam(value="mode") ExtractMode mode, @QueryParam(value="zoneid") String zoneId, ExtractISOOptions... options)
id
- the ID of the ISO filemode
- the mode of extraction - HTTP_DOWNLOAD or FTP_UPLOADzoneId
- the ID of the zone where the ISO is originally locatedoptions
- optional argumentsCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.