cc1
v2.1
CC1 source code docs
|
Functions | |
def | destroy |
Destroyes specified Farms. | |
def | erase |
Cleanes up after failed Farm. | |
def | get_by_id |
def | get_list |
Returns farms belonging: | |
def | save_and_shutdown |
Saves and shutdowns specified Farm's head. |
def src.cm.views.admin_cm.farm.destroy | ( | caller_id, | |
farm_ids | |||
) |
Destroyes specified Farms.
Neither Farm's head nor worker nodes are saved. Destroyed Farm cannot be recovered.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
farm_ids | (POST list(int) ) ids of the Farms to destroy |
list{HTTPResponse}
) list of responses for each VM destruction def src.cm.views.admin_cm.farm.erase | ( | caller_id, | |
farm_ids | |||
) |
Cleanes up after failed Farm.
Only admin may erase Farm so that he previously may perform some analytics.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
farm_ids | (POST list(int) ) ids of the Farms to erase |
def src.cm.views.admin_cm.farm.get_by_id | ( | caller_id, | |
farm_id | |||
) |
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
farm_id | (POST int ) id of the requested farm |
dict
) Farm.dict property of the requested Farm def src.cm.views.admin_cm.farm.get_list | ( | caller_id, | |
user_id = False |
|||
) |
Returns farms belonging:
- either to the User specified by <b>\c user_id</b> - or to all Users if no <b>\c user_id</b> is provided.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
user_id | (POST list ) id of the requested Farm's owner |
list(dict)
) Farm.dict property for each Farm def src.cm.views.admin_cm.farm.save_and_shutdown | ( | caller_id, | |
farm_id, | |||
name, | |||
description | |||
) |
Saves and shutdowns specified Farm's head.
Worker nodes are destroyed.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
admin_password | (POST string ) |
farm_id | (POST int ) id of the Farm to save |
name | (POST string ) name which Farm's head should saved to |
description | (POST string ) description for newly saved Farm |