cc1
v2.1
CC1 source code docs
|
Functions | |
def | assign |
Method attaches caller's PublicIP to his VM. | |
def | get_list |
def | release |
Removes PublicIP from caller's pool and returns it to publicly available pool, provided PublicIP isn't in use. | |
def | request |
Method requests single PublicIP address for caller. | |
def | unassign |
Method detaches PublicIP from caller's VM. |
def src.cm.views.user.public_ip.assign | ( | caller_id, | |
lease_id, | |||
public_ip_id | |||
) |
Method attaches caller's PublicIP to his VM.
VM's Lease instance's is assigned to PublicIP.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
lease_id | (POST) id of the Lease in caller's UserNetwork |
public_ip_id | (POST) id of the Public_IP to be attached to VM |
CMException('lease_not_found') | |
CMException('lease_not_assigned') | |
CMException('public_lease_assign') |
Definition at line 98 of file public_ip.py.
def src.cm.views.user.public_ip.get_list | ( | caller_id | ) |
http_request | (HttpRequest ) |
caller_id | (POST int ) |
list(dict)
) PublicIP.dict property for each caller's PublicIP Definition at line 43 of file public_ip.py.
def src.cm.views.user.public_ip.release | ( | caller_id, | |
public_ip_id | |||
) |
Removes PublicIP from caller's pool and returns it to publicly available pool, provided PublicIP isn't in use.
@note There's very low probability of obtaining the same PublicIP address once again.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
public_ip_id | (POST int ) id of the PublicIP to release |
Definition at line 163 of file public_ip.py.
def src.cm.views.user.public_ip.request | ( | caller_id | ) |
Method requests single PublicIP address for caller.
If caller's quota is exceeded, exception is raised. Otherwise caller obtains a new PublicIP address.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
string
) newly obtained PublicIP's addressCMException('public_lease_not_found') | |
CMException('public_lease_request') |
Definition at line 63 of file public_ip.py.
def src.cm.views.user.public_ip.unassign | ( | caller_id, | |
lease_id | |||
) |
Method detaches PublicIP from caller's VM.
http_request | (HttpRequest ) |
caller_id | (POST int ) |
lease_id | (POST int ) id of the VM's Lease from which PublicIP should be detached. |
CMException('lease_not_found') | |
CMException('public_lease_unassign') |
Definition at line 130 of file public_ip.py.