cc1
v2.1
CC1 source code docs
|
Functions | |
def | add_ssh_key |
Injects given SSH public key to authorized keys on specified VMs. | |
def | reboot |
Executes reboot on given VM at given timeout (now by default). | |
def | reset_password |
Resets password of the existing OS user user_name on given VM. | |
def | shutdown |
Executes shutdown on virtual machines listed in vm_list at a given timeout (now by default) provided they belong to caller. |
def src.cm.views.user.ctx.add_ssh_key | ( | caller_id, | |
vm_ids, | |||
vm_username, | |||
vm_key | |||
) |
Injects given SSH public key to authorized keys on specified VMs.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
vm_ids | (POST list(int) ) id's of the VMs where SSH public key should be injected |
vm_username | (POST string ) |
vm_key | (POST string ) |
def src.cm.views.user.ctx.reboot | ( | caller_id, | |
vm_id, | |||
timeout = 'now' |
|||
) |
Executes reboot
on given VM at given timeout
(now by default).
@warning Deprecated since execution's success/failure depends on inner VM's state.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
vm_id | (POST int ) id of the VM to reboot |
timeout | (POST string ) (optional, "now" by default) |
def src.cm.views.user.ctx.reset_password | ( | caller_id, | |
vm_id, | |||
vm_username | |||
) |
Resets password of the existing OS user user_name
on given VM.
User obtains new randomly created password. Such a password is sent in CM response. It is recommended to change password manually afterwards.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
vm_id | (POST int ) |
vm_username | (POST string ) username of the user whose password should be reseted |
def src.cm.views.user.ctx.shutdown | ( | caller_id, | |
vm_id, | |||
timeout = 'now' |
|||
) |
Executes shutdown
on virtual machines listed in vm_list
at a given timeout
(now by default) provided they belong to caller.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
vm_id | (POST int ) |
timeout | (POST string ) optional, "now" by default |