cc1
v2.1
CC1 source code docs
|
Functions | |
def | attach_vnc |
Attaches VNC redirection to VM. | |
def | create |
Creates new VM with specified attributes. | |
def | destroy |
Destroyes specified VMs. | |
def | detach_vnc |
Detaches VNC redirection from VM. | |
def | edit |
Updates VM attributes. | |
def | erase |
Cleans up after each of the specified VMs. | |
def | get_by_id |
def | get_list |
Returns list of VMs that are neither closed nor erased. | |
def | restart |
Sends signal to reboot specified VMs. | |
def | save_and_shutdown |
Saves and shutdowns specified VM, without checking User quota. |
def src.cm.views.admin_cm.vm.attach_vnc | ( | caller_id, | |
vm_id | |||
) |
Attaches VNC redirection to VM.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
vm_id | (POST int ) id of the VM to have attached VM redirection |
def src.cm.views.admin_cm.vm.create | ( | caller_id, | |
name, | |||
description, | |||
image_id, | |||
template_id, | |||
public_ip_id, | |||
iso_list, | |||
disk_list, | |||
vnc, | |||
node_id | |||
) |
Creates new VM with specified attributes.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
name | (POST string ) |
description | (POST string ) |
image_id | (POST int ) |
template_id | (POST int ) |
public_ip_id | (POST int ) |
iso_list | (POST list(int) ) |
disk_list | (POST list(int) ) |
vnc | (POST) |
node_id | (POST) |
def src.cm.views.admin_cm.vm.destroy | ( | caller_id, | |
vm_id_list | |||
) |
Destroyes specified VMs.
Destroyed VM can in no way be recovered.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
vm_id_list | (POST list ) ids to destroy |
src.cm.views.utils.image.destroy()
) def src.cm.views.admin_cm.vm.detach_vnc | ( | caller_id, | |
vm_id | |||
) |
Detaches VNC redirection from VM.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
vm_id | (POST int ) id of the VM to have detached VM redirection |
def src.cm.views.admin_cm.vm.edit | ( | caller_id, | |
vm_id, | |||
name = None , |
|||
description = None |
|||
) |
Updates VM attributes.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
vm_id | (POST) |
name | (POST) (optional) new VM name |
description | (POST) (optional) new VM description |
src.cm.views.utils.vm.edit()
) def src.cm.views.admin_cm.vm.erase | ( | caller_id, | |
vm_id_list | |||
) |
Cleans up after each of the specified VMs.
Erase should be called for failed machines after the inspection of the failure.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
vm_id_list | (POST list ) list of VM id's |
def src.cm.views.admin_cm.vm.get_by_id | ( | caller_id, | |
vm_id | |||
) |
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
vm_id | (POST) id of the requested VM |
dict
) VM with id id
def src.cm.views.admin_cm.vm.get_list | ( | caller_id, | |
user_id | |||
) |
Returns list of VMs that are neither closed nor erased.
If user_id is provided, only VMs belonging to that user are returned.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
user_id | (POST int ) |
dict
) VM.long_dict property of each VM def src.cm.views.admin_cm.vm.restart | ( | caller_id, | |
vm_id_list | |||
) |
Sends signal to reboot specified VMs.
VM is not saved to SystemImage during reboot.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
vm_id_list | (POST (list(int))) ids of the VMs to restart |
def src.cm.views.admin_cm.vm.save_and_shutdown | ( | caller_id, | |
vm_id, | |||
name, | |||
description | |||
) |
Saves and shutdowns specified VM, without checking User quota.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
vm_id | (POST string ) id of the VM to save |
name | (POST string ) |
description | (POST string ) |