public class Zone extends PoolElement
client, id, xml, xpath| Modifier | Constructor and Description |
|---|---|
|
Zone(int id,
Client client)
Creates a new Zone representation.
|
protected |
Zone(org.w3c.dom.Node xmlElement,
Client client) |
| Modifier and Type | Method and Description |
|---|---|
static OneResponse |
allocate(Client client,
java.lang.String description)
Allocates a new Zone in OpenNebula.
|
OneResponse |
delete()
Deletes the zone from OpenNebula.
|
static OneResponse |
delete(Client client,
int id)
Deletes a zone from OpenNebula.
|
OneResponse |
info()
Loads the xml representation of the zone.
|
static OneResponse |
info(Client client,
int id)
Retrieves the information of the given zone.
|
static OneResponse |
info(Client client,
int id,
boolean decrypt)
Retrieves the information of the given Zone.
|
static OneResponse |
rename(Client client,
int id,
java.lang.String name)
Renames this Zone
|
OneResponse |
rename(java.lang.String name)
Renames this Zone
|
static OneResponse |
update(Client client,
int id,
java.lang.String new_template,
boolean append)
Replaces the template contents.
|
OneResponse |
update(java.lang.String new_template)
Replaces the template contents.
|
OneResponse |
update(java.lang.String new_template,
boolean append)
Replaces the template contents.
|
public Zone(int id,
Client client)
id - The zone id.client - XML-RPC Client.protected Zone(org.w3c.dom.Node xmlElement,
Client client)
PoolElementpublic static OneResponse allocate(Client client, java.lang.String description)
client - XML-RPC Client.description - A string containing the template of the zone.public static OneResponse info(Client client, int id)
client - XML-RPC Client.id - The zone id.public static OneResponse info(Client client, int id, boolean decrypt)
client - XML-RPC Client.id - The Zone id for the Zone to retrieve the information fromdecrypt - If true decrypt sensitive attributespublic static OneResponse delete(Client client, int id)
client - XML-RPC Client.id - The zone id.public static OneResponse update(Client client, int id, java.lang.String new_template, boolean append)
client - XML-RPC Client.id - The zone id of the target zone we want to modify.new_template - New template contentsappend - True to append new attributes instead of replace the whole templatepublic static OneResponse rename(Client client, int id, java.lang.String name)
client - XML-RPC Client.id - The Zone id of the target Zone.name - New name for the Zone.public OneResponse info()
info(Client, int)public OneResponse delete()
delete(Client, int)public OneResponse rename(java.lang.String name)
name - New name for the Zone.public OneResponse update(java.lang.String new_template)
new_template - New template contentspublic OneResponse update(java.lang.String new_template, boolean append)
new_template - New template contentsappend - True to append new attributes instead of replace the whole templateVisit OpenNebula.io
Copyright 2002-2021 ©
OpenNebula Project, OpenNebula Systems.