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

Functions

def convert_to_storage_image
def create
def delete
def download
def download_ec2
def edit
def get_by_id
def get_disk_controllers
def get_filesystems
def get_list
 Method returns list of images.
def get_network_devices
def get_video_devices
def set_group
def set_private

Detailed Description

Note
All functions here are decorated by src.clm.utils.decorators.user_log. It's recommended to read src.clm.utils.decorators.user_log docs before using functions below.

Function Documentation

def src.clm.views.user.system_image.convert_to_storage_image (   cm_response,
  data 
)
Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
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.user.system_image.convert_to_storage_image()) + one additional kwarg: cm_id). View requests src.cm.views.user.system_image.convert_to_storage_image() from CM and returns the response. For documentation see src.cm.views.user.system_image.convert_to_storage_image()

Definition at line 219 of file system_image.py.

def src.clm.views.user.system_image.create (   cm_response,
  data 
)
Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
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.user.system_image.create()) + one additional kwarg: cm_id). View requests src.cm.views.user.system_image.create() from CM and returns the response. For documentation see src.cm.views.user.system_image.create()

Definition at line 142 of file system_image.py.

def src.clm.views.user.system_image.delete (   cm_response,
  data 
)
Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
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.user.system_image.delete()) + one additional kwarg: cm_id). View requests src.cm.views.user.system_image.delete() from CM and returns the response. For documentation see src.cm.views.user.system_image.delete()

Definition at line 98 of file system_image.py.

def src.clm.views.user.system_image.download (   cm_response,
  data 
)
Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
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.user.system_image.download()) + one additional kwarg: cm_id). View requests src.cm.views.user.system_image.download() from CM and returns the response. For documentation see src.cm.views.user.system_image.download()

Definition at line 153 of file system_image.py.

def src.clm.views.user.system_image.download_ec2 (   cm_response,
  data 
)
Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
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.user.system_image.download_ec2()) + one additional kwarg: cm_id). View requests src.cm.views.user.system_image.download_ec2() from CM and returns the response. For documentation see src.cm.views.user.system_image.download_ec2()

Definition at line 164 of file system_image.py.

def src.clm.views.user.system_image.edit (   cm_response,
  data 
)
Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
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.user.system_image.edit()) + one additional kwarg: cm_id). View requests src.cm.views.user.system_image.edit() from CM and returns the response. For documentation see src.cm.views.user.system_image.edit()

Definition at line 109 of file system_image.py.

def src.clm.views.user.system_image.get_by_id (   cm_id,
  caller_id,
  data 
)
Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string) Fun takes the same parameters as cm.user.system_image.get_by_id(), except for groups

Definition at line 85 of file system_image.py.

def src.clm.views.user.system_image.get_disk_controllers (   cm_response,
  data 
)
Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
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.user.system_image.get_disk_controllers()) + one additional kwarg: cm_id). View requests src.cm.views.user.system_image.get_disk_controllers() from CM and returns the response. For documentation see src.cm.views.user.system_image.get_disk_controllers()

Definition at line 208 of file system_image.py.

def src.clm.views.user.system_image.get_filesystems (   cm_response,
  data 
)
Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
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.user.system_image.get_filesystems()) + one additional kwarg: cm_id). View requests src.cm.views.user.system_image.get_filesystems() from CM and returns the response. For documentation see src.cm.views.user.system_image.get_filesystems()

Definition at line 175 of file system_image.py.

def src.clm.views.user.system_image.get_list (   cm_id,
  caller_id,
  data 
)

Method returns list of images.

Parameters
data(POST dict)
Returns
(list(dict)) images: {gid, name, [images]}

Definition at line 41 of file system_image.py.

def src.clm.views.user.system_image.get_network_devices (   cm_response,
  data 
)
Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
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.user.system_image.get_network_devices()) + one additional kwarg: cm_id). View requests src.cm.views.user.system_image.get_network_devices() from CM and returns the response. For documentation see src.cm.views.user.system_image.get_network_devices()

Definition at line 197 of file system_image.py.

def src.clm.views.user.system_image.get_video_devices (   cm_response,
  data 
)
Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
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.user.system_image.get_video_devices()) + one additional kwarg: cm_id). View requests src.cm.views.user.system_image.get_video_devices() from CM and returns the response. For documentation see src.cm.views.user.system_image.get_video_devices()

Definition at line 186 of file system_image.py.

def src.clm.views.user.system_image.set_group (   cm_response,
  data 
)
Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
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.user.system_image.set_group()) + one additional kwarg: cm_id). View requests src.cm.views.user.system_image.set_group() from CM and returns the response. For documentation see src.cm.views.user.system_image.set_group()

Definition at line 131 of file system_image.py.

def src.clm.views.user.system_image.set_private (   cm_id,
  caller_id,
  system_image_id 
)
Parameters
system_image_id(POST int) managed image's id

Definition at line 118 of file system_image.py.