Revision 439826ec kamaki/cli/commands/cyclades_cli.py
b/kamaki/cli/commands/cyclades_cli.py | ||
---|---|---|
231 | 231 |
class server_create(_init_cyclades): |
232 | 232 |
"""Create a server (aka Virtual Machine) |
233 | 233 |
Parameters: |
234 |
name: (single quoted text)
|
|
235 |
flavor id: Hardware flavor. Pick one from: /flavor list
|
|
236 |
image id: OS images. Pick one from: /image list
|
|
234 |
- name: (single quoted text)
|
|
235 |
- flavor id: Hardware flavor. Pick one from: /flavor list
|
|
236 |
- image id: OS images. Pick one from: /image list
|
|
237 | 237 |
""" |
238 | 238 |
|
239 | 239 |
arguments = dict( |
... | ... | |
391 | 391 |
class server_console(_init_cyclades): |
392 | 392 |
"""Get a VNC console to access an existing server (VM) |
393 | 393 |
Console connection information provided (at least): |
394 |
host: (url or address) a VNC host
|
|
395 |
port: (int) the gateway to enter VM on host
|
|
396 |
password: for VNC authorization
|
|
394 |
- host: (url or address) a VNC host
|
|
395 |
- port: (int) the gateway to enter VM on host
|
|
396 |
- password: for VNC authorization
|
|
397 | 397 |
""" |
398 | 398 |
|
399 | 399 |
def main(self, server_id): |
... | ... | |
418 | 418 |
class server_firewall(_init_cyclades): |
419 | 419 |
"""Set the server (VM) firewall profile on VMs public network |
420 | 420 |
Values for profile: |
421 |
DISABLED: Shutdown firewall
|
|
422 |
ENABLED: Firewall in normal mode
|
|
423 |
PROTECTED: Firewall in secure mode
|
|
421 |
- DISABLED: Shutdown firewall
|
|
422 |
- ENABLED: Firewall in normal mode
|
|
423 |
- PROTECTED: Firewall in secure mode
|
|
424 | 424 |
""" |
425 | 425 |
|
426 | 426 |
def main(self, server_id, profile): |
... | ... | |
873 | 873 |
class network_disconnect(_init_cyclades): |
874 | 874 |
"""Disconnect a nic that connects a server to a network |
875 | 875 |
Nic ids are listed as "attachments" in detailed network information |
876 |
To get detailed network information: /network info <network id>
|
|
876 |
To get detailed network information: /network info <network id> |
|
877 | 877 |
""" |
878 | 878 |
|
879 | 879 |
def main(self, nic_id): |
Also available in: Unified diff