cc1  v2.1
CC1 source code docs
 All Classes Namespaces Files Functions Variables Pages
src.clm.views.admin_cm.vm Namespace Reference

Functions

def attach_vnc
def create
 Creates nev VM.
def destroy
def detach_vnc
def erase
def get_by_id
def get_list
def restart
def save_and_shutdown

Detailed Description

Note
All functions here are decorated by src.clm.utils.decorators.admin_cm_log. It's recommended to read src.clm.utils.decorators.admin_cm_log docs before using functions below.
Author
Maciej Nabożny mn@mn.nosp@m.aboz.nosp@m.ny.pl

Function Documentation

def src.clm.views.admin_cm.vm.attach_vnc (   cm_response,
  data 
)
Note
The clm.utils.decorators.admin_cm_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.admin_cm_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string)
cm_password(POST string)
Note
This function is decorated by clm.utils.decorators.cm_request decorator. It's fully transparent. All actual parameters of this function are kwargs (the same as required by corresponding CM view (src.cm.views.vm.attach_vnc()) + one additional kwarg: cm_id). View requests src.cm.views.vm.attach_vnc() from CM and returns the response. For documentation see src.cm.views.vm.attach_vnc()

Definition at line 130 of file vm.py.

def src.clm.views.admin_cm.vm.create (   cm_response,
  data 
)

Creates nev VM.

Note
The clm.utils.decorators.admin_cm_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.admin_cm_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string)
cm_password(POST string)
Note
This function is decorated by clm.utils.decorators.cm_request decorator. It's fully transparent. All actual parameters of this function are kwargs (the same as required by corresponding CM view (src.cm.views.vm.create()) + one additional kwarg: cm_id). View requests src.cm.views.vm.create() from CM and returns the response. For documentation see src.cm.views.vm.create()

Definition at line 41 of file vm.py.

def src.clm.views.admin_cm.vm.destroy (   cm_response,
  data 
)
Note
The clm.utils.decorators.admin_cm_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.admin_cm_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string)
cm_password(POST string)
Note
This function is decorated by clm.utils.decorators.cm_request decorator. It's fully transparent. All actual parameters of this function are kwargs (the same as required by corresponding CM view (src.cm.views.vm.destroy()) + one additional kwarg: cm_id). View requests src.cm.views.vm.destroy() from CM and returns the response. For documentation see src.cm.views.vm.destroy()

Definition at line 52 of file vm.py.

def src.clm.views.admin_cm.vm.detach_vnc (   cm_response,
  data 
)
Note
The clm.utils.decorators.admin_cm_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.admin_cm_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string)
cm_password(POST string)
Note
This function is decorated by clm.utils.decorators.cm_request decorator. It's fully transparent. All actual parameters of this function are kwargs (the same as required by corresponding CM view (src.cm.views.vm.detach_vnc()) + one additional kwarg: cm_id). View requests src.cm.views.vm.detach_vnc() from CM and returns the response. For documentation see src.cm.views.vm.detach_vnc()

Definition at line 141 of file vm.py.

def src.clm.views.admin_cm.vm.erase (   cm_response,
  data 
)
Note
The clm.utils.decorators.admin_cm_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.admin_cm_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string)
cm_password(POST string)
Note
This function is decorated by clm.utils.decorators.cm_request decorator. It's fully transparent. All actual parameters of this function are kwargs (the same as required by corresponding CM view (src.cm.views.vm.erase()) + one additional kwarg: cm_id). View requests src.cm.views.vm.erase() from CM and returns the response. For documentation see src.cm.views.vm.erase()

Definition at line 119 of file vm.py.

def src.clm.views.admin_cm.vm.get_by_id (   cm_response,
  data 
)
Note
The clm.utils.decorators.admin_cm_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.admin_cm_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string)
cm_password(POST string)
Note
This function is decorated by clm.utils.decorators.cm_request decorator. It's fully transparent. All actual parameters of this function are kwargs (the same as required by corresponding CM view (src.cm.views.vm.get_by_id()) + one additional kwarg: cm_id). View requests src.cm.views.vm.get_by_id() from CM and returns the response. For documentation see src.cm.views.vm.get_by_id()

Definition at line 86 of file vm.py.

def src.clm.views.admin_cm.vm.get_list (   cm_response,
  data 
)
Note
The clm.utils.decorators.admin_cm_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.admin_cm_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string)
cm_password(POST string)
Note
This function is decorated by clm.utils.decorators.cm_request decorator. All actual parameters of this function are kwargs (the same as required by corresponding CM view (src.cm.views.storage_image.get_list()) + one additional kwarg: cm_id). View requests src.cm.views.storage_image.get_list() from CM. CM response is processed and finally returned. see also: src.cm.views.storage_image.get_list()
 @param user_id <i>(<b>POST</b> \c int)</i>

Definition at line 64 of file vm.py.

def src.clm.views.admin_cm.vm.restart (   cm_response,
  data 
)
Note
The clm.utils.decorators.admin_cm_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.admin_cm_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string)
cm_password(POST string)
Note
This function is decorated by clm.utils.decorators.cm_request decorator. It's fully transparent. All actual parameters of this function are kwargs (the same as required by corresponding CM view (src.cm.views.vm.restart()) + one additional kwarg: cm_id). View requests src.cm.views.vm.restart() from CM and returns the response. For documentation see src.cm.views.vm.restart()

Definition at line 108 of file vm.py.

def src.clm.views.admin_cm.vm.save_and_shutdown (   cm_response,
  data 
)
Note
The clm.utils.decorators.admin_cm_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.admin_cm_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string)
cm_password(POST string)
Note
This function is decorated by clm.utils.decorators.cm_request decorator. It's fully transparent. All actual parameters of this function are kwargs (the same as required by corresponding CM view (src.cm.views.vm.save_and_shutdown()) + one additional kwarg: cm_id). View requests src.cm.views.vm.save_and_shutdown() from CM and returns the response. For documentation see src.cm.views.vm.save_and_shutdown()

Definition at line 97 of file vm.py.