cc1
v2.1
CC1 source code docs
|
Functions | |
def | convert_to_system_image |
Converts specified StorageImage to SystemImage. | |
def | copy |
Copy selected StorageImage to user's StorageImages. | |
def | delete |
Sets StorageImage state as locked. | |
def | download |
Downloads specified StorateImage from remote path. | |
def | edit |
Updates Image's attributes. | |
def | get_by_id |
Fetch requested StorageImage. | |
def | get_list |
Fetch all StorageImages except those that are locked. | |
def | revoke |
Revokes image from the virtual machine. |
def src.cm.views.admin_cm.storage_image.convert_to_system_image | ( | caller_id, | |
storage_image_id | |||
) |
Converts specified StorageImage to SystemImage.
After convertion it's not available as StorageImage anymore. File is moved and StorageImage entry is removed from database.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
storage_image_id | (POST int ) ID of an StorageImage to convert |
Definition at line 168 of file storage_image.py.
def src.cm.views.admin_cm.storage_image.copy | ( | caller_id, | |
src_image_id, | |||
dest_user_id | |||
) |
Copy selected StorageImage to user's StorageImages.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
src_image_id | (POST int ) |
dest_user_id | (POST int ) |
Definition at line 192 of file storage_image.py.
def src.cm.views.admin_cm.storage_image.delete | ( | caller_id, | |
storage_image_id | |||
) |
Sets StorageImage state as locked.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
storage_image_id | (POST) id of the Image to delete |
Definition at line 119 of file storage_image.py.
def src.cm.views.admin_cm.storage_image.download | ( | caller_id, | |
description, | |||
name, | |||
path, | |||
disk_dev, | |||
disk_controller | |||
) |
Downloads specified StorateImage from remote path.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
description | (POST string ) |
name | (POST string ) how to name newly downloaded storage image |
path | (POST string ) HTTP or FTP path to download StorageImage. |
disk_dev | (POST) |
disk_controller | (POST) |
Definition at line 55 of file storage_image.py.
def src.cm.views.admin_cm.storage_image.edit | ( | caller_id, | |
storage_image_id, | |||
name = None , |
|||
description = None , |
|||
disk_controller = None |
|||
) |
Updates Image's attributes.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
storage_image_id | (POST string ) |
name | (POST string ) new Image name |
description | (POST string ) new Image description |
disk_controller | (POST) new Image controller optional |
Definition at line 138 of file storage_image.py.
def src.cm.views.admin_cm.storage_image.get_by_id | ( | caller_id, | |
storage_image_id | |||
) |
Fetch requested StorageImage.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
storage_image_id | (POST int ) id of the requested StorageImage |
dict
) StorageImages.dict property for requested StorageImage Definition at line 105 of file storage_image.py.
def src.cm.views.admin_cm.storage_image.get_list | ( | caller_id | ) |
Fetch all StorageImages except those that are locked.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
list(dict)
) StorageImages.dict property for each StorageImages. Definition at line 89 of file storage_image.py.
def src.cm.views.admin_cm.storage_image.revoke | ( | caller_id, | |
storage_image_id | |||
) |
Revokes image from the virtual machine.
For administrator use, works in "force" mode.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
storage_image_id | (int ) ID of an StorageImage to revoke |
Definition at line 215 of file storage_image.py.