public class VirtualRouter extends PoolElement
client, id, xml, xpath| Modifier | Constructor and Description |
|---|---|
|
VirtualRouter(int id,
Client client)
Creates a new VirtualRouter representation.
|
protected |
VirtualRouter(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 VirtualRouter in OpenNebula.
|
OneResponse |
chgrp(int gid)
Changes the group
|
static OneResponse |
chmod(Client client,
int id,
int octet)
Changes the permissions
|
static OneResponse |
chmod(Client client,
int id,
int owner_u,
int owner_m,
int owner_a,
int group_u,
int group_m,
int group_a,
int other_u,
int other_m,
int other_a)
Changes the VirtualRouter permissions
|
static OneResponse |
chmod(Client client,
int id,
java.lang.String octet)
Changes the permissions
|
OneResponse |
chmod(int octet)
Changes the permissions
|
OneResponse |
chmod(int owner_u,
int owner_m,
int owner_a,
int group_u,
int group_m,
int group_a,
int other_u,
int other_m,
int other_a)
Changes the VirtualRouter permissions
|
OneResponse |
chmod(java.lang.String octet)
Changes the permissions
|
static OneResponse |
chown(Client client,
int id,
int uid,
int gid)
Changes the owner/group
|
OneResponse |
chown(int uid)
Changes the owner
|
OneResponse |
chown(int uid,
int gid)
Changes the owner/group
|
OneResponse |
delete()
Deletes the VirtualRouter from OpenNebula.
|
static OneResponse |
delete(Client client,
int id)
Deletes a VirtualRouter from OpenNebula.
|
OneResponse |
info()
Retrieves the information of the VirtualRouter.
|
static OneResponse |
info(Client client,
int id)
Retrieves the information of the given VirtualRouter.
|
static OneResponse |
info(Client client,
int id,
boolean decrypt)
Retrieves the information of the given VRouter.
|
static OneResponse |
instantiate(Client client,
int id,
int nVMs,
int templateId,
java.lang.String name,
boolean onHold,
java.lang.String template)
Creates VM instances from a VM Template.
|
OneResponse |
instantiate(int nVMs,
int templateId)
Creates VM instances from a VM Template.
|
OneResponse |
instantiate(int nVMs,
int templateId,
java.lang.String name,
boolean onHold,
java.lang.String template)
Creates VM instances from a VM Template.
|
static OneResponse |
lock(Client client,
int id,
int level)
lock this virtual router
|
OneResponse |
lock(int level)
Lock this virtual router
|
static OneResponse |
nicAttach(Client client,
int id,
java.lang.String nicTemplate)
Attaches a NIC to this VirtualRouter, and each one of its VMs
|
OneResponse |
nicAttach(java.lang.String nicTemplate)
Attaches a NIC to this VirtualRouter, and each one of its VMs
|
static OneResponse |
nicDetach(Client client,
int id,
int nicId)
Detaches a NIC from this VirtualRouter, and each one of its VMs
|
OneResponse |
nicDetach(int nicId)
Detaches a NIC from this VirtualRouter, and each one of its VMs
|
OneResponse |
publish()
Publishes the VirtualRouter.
|
OneResponse |
publish(boolean publish)
Publishes or unpublishes the VirtualRouter.
|
static OneResponse |
publish(Client client,
int id,
boolean publish)
Publishes or unpublishes a VirtualRouter.
|
static OneResponse |
rename(Client client,
int id,
java.lang.String name)
Renames this VirtualRouter
|
OneResponse |
rename(java.lang.String name)
Renames this VirtualRouter
|
OneResponse |
unlock()
Unlock this virtual router
|
static OneResponse |
unlock(Client client,
int id)
Unlock this virtual router
|
OneResponse |
unpublish()
Unpublishes the VirtualRouter.
|
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 VirtualRouter contents.
|
OneResponse |
update(java.lang.String new_template,
boolean append)
Replaces the template contents.
|
public VirtualRouter(int id,
Client client)
id - The VirtualRouter id.client - XML-RPC Client.protected VirtualRouter(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 VirtualRouter.public static OneResponse info(Client client, int id)
client - XML-RPC Client.id - The VirtualRouter id for the VirtualRouter to retrieve the information frompublic static OneResponse info(Client client, int id, boolean decrypt)
client - XML-RPC Client.id - The VRouter id for the VRouter to retrieve the information fromdecrypt - If true decrypt sensitive attributespublic static OneResponse instantiate(Client client, int id, int nVMs, int templateId, java.lang.String name, boolean onHold, java.lang.String template)
client - XML-RPC Client.id - The id of the target VirtualRouter.nVMs - Number of VMs to instantiatetemplateId - VM Template id to instantiatename - Name for the VM instances. If it is an empty string
OpenNebula will set a default name. Wildcard %i can be used.onHold - False to create this VM in pending state, true on holdtemplate - User provided Template to merge with the one
being instantiatedpublic static OneResponse delete(Client client, int id)
client - XML-RPC Client.id - The id of the target VirtualRouter we want to delete.public static OneResponse update(Client client, int id, java.lang.String new_template, boolean append)
client - XML-RPC Client.id - The id of the target VirtualRouter we want to modify.new_template - New template contents.append - True to append new attributes instead of replace the whole templatepublic static OneResponse publish(Client client, int id, boolean publish)
client - XML-RPC Client.id - The id of the target VirtualRouter we want to modify.publish - True for publishing, false for unpublishing.public static OneResponse chown(Client client, int id, int uid, int gid)
client - XML-RPC Client.id - The id of the target VirtualRouter we want to modify.uid - The new owner user ID. Set it to -1 to leave the current one.gid - The new group ID. Set it to -1 to leave the current one.public static OneResponse chmod(Client client, int id, int owner_u, int owner_m, int owner_a, int group_u, int group_m, int group_a, int other_u, int other_m, int other_a)
client - XML-RPC Client.id - The id of the target VirtualRouter.owner_u - 1 to allow, 0 deny, -1 do not changeowner_m - 1 to allow, 0 deny, -1 do not changeowner_a - 1 to allow, 0 deny, -1 do not changegroup_u - 1 to allow, 0 deny, -1 do not changegroup_m - 1 to allow, 0 deny, -1 do not changegroup_a - 1 to allow, 0 deny, -1 do not changeother_u - 1 to allow, 0 deny, -1 do not changeother_m - 1 to allow, 0 deny, -1 do not changeother_a - 1 to allow, 0 deny, -1 do not changepublic static OneResponse chmod(Client client, int id, java.lang.String octet)
client - XML-RPC Client.id - The id of the target object.octet - Permissions octed , e.g. 640public static OneResponse chmod(Client client, int id, int octet)
client - XML-RPC Client.id - The id of the target object.octet - Permissions octed , e.g. 640public static OneResponse rename(Client client, int id, java.lang.String name)
client - XML-RPC Client.id - The id of the target VirtualRouter.name - New name for the VirtualRouter.public static OneResponse nicAttach(Client client, int id, java.lang.String nicTemplate)
client - XML-RPC Client.id - The id of the target VirtualRouter.nicTemplate - Template containing the new NIC definitionpublic static OneResponse nicDetach(Client client, int id, int nicId)
client - XML-RPC Client.id - The id of the target VirtualRouter.nicId - The NIC_ID of the NIC to detachpublic static OneResponse lock(Client client, int id, int level)
client - XML-RPC Client.id - The virtual router id.level - Lock level.public static OneResponse unlock(Client client, int id)
client - XML-RPC Client.id - The virtual router id.public OneResponse info()
public OneResponse delete()
public OneResponse update(java.lang.String new_template)
new_template - New template contents.public OneResponse update(java.lang.String new_template, boolean append)
new_template - New template contents.append - True to append new attributes instead of replace the whole templatepublic OneResponse publish(boolean publish)
publish - True for publishing, false for unpublishing.public OneResponse publish()
public OneResponse unpublish()
public OneResponse chown(int uid, int gid)
uid - The new owner user ID. Set it to -1 to leave the current one.gid - The new group ID. Set it to -1 to leave the current one.public OneResponse chown(int uid)
uid - The new owner user ID.public OneResponse chgrp(int gid)
gid - The new group ID.public OneResponse chmod(int owner_u, int owner_m, int owner_a, int group_u, int group_m, int group_a, int other_u, int other_m, int other_a)
owner_u - 1 to allow, 0 deny, -1 do not changeowner_m - 1 to allow, 0 deny, -1 do not changeowner_a - 1 to allow, 0 deny, -1 do not changegroup_u - 1 to allow, 0 deny, -1 do not changegroup_m - 1 to allow, 0 deny, -1 do not changegroup_a - 1 to allow, 0 deny, -1 do not changeother_u - 1 to allow, 0 deny, -1 do not changeother_m - 1 to allow, 0 deny, -1 do not changeother_a - 1 to allow, 0 deny, -1 do not changepublic OneResponse chmod(java.lang.String octet)
octet - Permissions octed , e.g. 640public OneResponse chmod(int octet)
octet - Permissions octed , e.g. 640public OneResponse instantiate(int nVMs, int templateId, java.lang.String name, boolean onHold, java.lang.String template)
nVMs - Number of VMs to instantiatetemplateId - VM Template id to instantiatename - Name for the VM instances. If it is an empty string
OpenNebula will set a default name. Wildcard %i can be used.onHold - False to create this VM in pending state, true on holdtemplate - User provided Template to merge with the one
being instantiatedpublic OneResponse instantiate(int nVMs, int templateId)
nVMs - Number of VMs to instantiatetemplateId - VM Template id to instantiatepublic OneResponse rename(java.lang.String name)
name - New name for the VirtualRouter.public OneResponse nicAttach(java.lang.String nicTemplate)
nicTemplate - Template containing the new NIC definitionpublic OneResponse nicDetach(int nicId)
nicId - The NIC_ID of the NIC to detachpublic OneResponse lock(int level)
level - Lock level.public OneResponse unlock()
Visit OpenNebula.io
Copyright 2002-2021 ©
OpenNebula Project, OpenNebula Systems.