/usr/lib/python2.6/site-packages/novaclient/v2
NameSizeModeActions
contrib/-0755rm
agents.py22400644editdlrm
agents.pyc27740644editdlrm
aggregates.py35000644editdlrm
aggregates.pyc47770644editdlrm
availability_zones.py15880644editdlrm
availability_zones.pyc17030644editdlrm
certs.py14100644editdlrm
certs.pyc16510644editdlrm
client.py98590644editdlrm
client.pyc86520644editdlrm
cloudpipe.py19060644editdlrm
cloudpipe.pyc24740644editdlrm
fixed_ips.py16830644editdlrm
fixed_ips.pyc20990644editdlrm
flavors.py68240644editdlrm
flavors.pyc76230644editdlrm
flavor_access.py26540644editdlrm
flavor_access.pyc32570644editdlrm
floating_ips.py17300644editdlrm
floating_ips.pyc22220644editdlrm
floating_ips_bulk.py21080644editdlrm
floating_ips_bulk.pyc22860644editdlrm
floating_ip_dns.py43780644editdlrm
floating_ip_dns.pyc62600644editdlrm
floating_ip_pools.py10640644editdlrm
floating_ip_pools.pyc12550644editdlrm
fping.py17500644editdlrm
fping.pyc20390644editdlrm
hosts.py20940644editdlrm
hosts.pyc32540644editdlrm
hypervisors.py28260644editdlrm
hypervisors.pyc40420644editdlrm
images.py31510644editdlrm
images.pyc41370644editdlrm
keypairs.py34970644editdlrm
keypairs.pyc39440644editdlrm
limits.py30920644editdlrm
limits.pyc43110644editdlrm
networks.py48150644editdlrm
networks.pyc58360644editdlrm
quotas.py22640644editdlrm
quotas.pyc26190644editdlrm
quota_classes.py15000644editdlrm
quota_classes.pyc17750644editdlrm
security_groups.py30000644editdlrm
security_groups.pyc41210644editdlrm
security_group_default_rules.py27410644editdlrm
security_group_default_rules.pyc33260644editdlrm
security_group_rules.py26810644editdlrm
security_group_rules.pyc29880644editdlrm
servers.py450640644editdlrm
servers.pyc502360644editdlrm
server_groups.py20600644editdlrm
server_groups.pyc28110644editdlrm
server_migrations.py29240644editdlrm
server_migrations.pyc33320644editdlrm
services.py33050644editdlrm
services.pyc40980644editdlrm
shell.py1486850644editdlrm
shell.pyc1490900644editdlrm
usage.py20190644editdlrm
usage.pyc23270644editdlrm
versions.py30320644editdlrm
versions.pyc26340644editdlrm
virtual_interfaces.py10390644editdlrm
virtual_interfaces.pyc12520644editdlrm
volumes.py77310644editdlrm
volumes.pyc80880644editdlrm
volume_snapshots.py44750644editdlrm
volume_snapshots.pyc47790644editdlrm
volume_types.py36980644editdlrm
volume_types.pyc39890644editdlrm
__init__.py6490644editdlrm
__init__.pyc2190644editdlrm
Edit: /usr/lib/python2.6/site-packages/novaclient/v2/servers.pyc (50236B)
=vVc @sdZddkZddklZddkZddklZddklZddkl Z ddk l Z ddk l Z d d f\ZZd eifd YZd eifdYZdS(s Server interface. iN(t encodeutils(tparse(tbase(tcrypto(t_(tsecurity_groupstSOFTtHARDtServercBs eZeZdZdZd3dZd3dZdZ dZ dZ dZ d3dZ d Zd Zd3d Zd Zd ZdZdZdZdZdZdZdZdZdZd3d3dZdZdZdZdZ dZ!dZ"dZ#dZ$e%d Z&d3e'd!Z(d"Z)d3d#Z*d$Z+d%Z,d&Z-e.d'Z/d3e'e'd(Z0d)d*Z1d+Z2d,Z3d-Z4d.Z5d3ed3d/Z6d0Z7d1Z8d2Z9RS(4cCsdt|ddS(Ns tnames unknown-name(tgetattr(tself((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyt__repr__(scCs|ii|dS(sK Delete (i.e. shut down and delete the image) this server. N(tmanagertdelete(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR+scCs|ii|d|dS(sb Update the name for this server. :param name: Update the server's name. R N(R tupdate(R R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR1scCs|ii||S(s Get text console log output from Server. :param length: The number of lines you would like to retrieve (as int) (R tget_console_output(R tlength((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR9scCs|ii||S(ss Get vnc console for a Server. :param console_type: Type of console ('novnc' or 'xvpvnc') (R tget_vnc_console(R t console_type((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRAscCs|ii||S(so Get spice console for a Server. :param console_type: Type of console ('spice-html5') (R tget_spice_console(R R((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRIscCs|ii||S(sk Get rdp console for a Server. :param console_type: Type of console ('rdp-html5') (R tget_rdp_console(R R((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRQscCs|ii||S(sk Get serial console for a Server. :param console_type: Type of console ('serial') (R tget_serial_console(R R((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRYscCs|ii||S(s Get password for a Server. Returns the clear password of an instance if private_key is provided, returns the ciphered password otherwise. :param private_key: Path to private key file for decryption (optional) (R t get_password(R t private_key((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRas cCs|ii|S(s- Get password for a Server. (R tclear_password(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRmscCs|ii||dS(sx Add an IP address on a network. :param network_id: The ID of the network the IP should be on. N(R t add_fixed_ip(R t network_id((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRtscCs|ii|||dS(s Add floating IP to an instance :param address: The IP address or FloatingIP to add to the instance :param fixed_address: The fixedIP address the FloatingIP is to be associated with (optional) N(R tadd_floating_ip(R taddresst fixed_address((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR|scCs|ii||dS(su Remove floating IP from an instance :param address: The IP address or FloatingIP to remove N(R tremove_floating_ip(R R((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRscCs|ii|dS(s2 Stop -- Stop the running server. N(R tstop(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR scCs|ii|dS(s8 Force delete -- Force delete a server. N(R t force_delete(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR!scCs|ii|dS(sF Restore -- Restore a server in 'soft-deleted' state. N(R trestore(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR"scCs|ii|dS(s3 Start -- Start the paused server. N(R tstart(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR#scCs|ii|dS(s4 Pause -- Pause the running server. N(R tpause(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR$scCs|ii|dS(s7 Unpause -- Unpause the paused server. N(R tunpause(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR%scCs|ii|dS(sD Lock -- Lock the instance from certain operations. N(R tlock(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR&scCs|ii|dS(s1 Unlock -- Remove instance lock. N(R tunlock(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR'scCs|ii|dS(s8 Suspend -- Suspend the running server. N(R tsuspend(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR(scCs|ii|dS(s8 Resume -- Resume the suspended server. N(R tresume(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR)scCs|ii|||S(s Rescue -- Rescue the problematic server. :param password: The admin password to be set in the rescue instance. :param image: The :class:`Image` to rescue with. (R trescue(R tpasswordtimage((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR*scCs|ii|dS(s: Unrescue -- Unrescue the rescued server. N(R tunrescue(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR-scCs|ii|dS(s. Shelve -- Shelve the server. N(R tshelve(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR.scCs|ii|dS(sR Shelve_offload -- Remove a shelved server from the compute node. N(R tshelve_offload(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR/scCs|ii|dS(s2 Unshelve -- Unshelve the server. N(R tunshelve(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR0scCs|ii|S(s+Diagnostics -- Retrieve server diagnostics.(R t diagnostics(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR1scCs|ii|dS(s1 Migrate a server to a new host. N(R tmigrate(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR2scCs|ii||dS(sZ Remove an IP address. :param address: The IP address to remove. N(R tremove_fixed_ip(R R((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR3scCs|ii||dS(s Update the admin password for a server. :param password: string to set as the admin password on the server N(R tchange_password(R R+((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR4scCs|ii||dS(s Reboot the server. :param reboot_type: either :data:`REBOOT_SOFT` for a software-level reboot, or `REBOOT_HARD` for a virtual power cycle hard reboot. N(R treboot(R t reboot_type((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR5scKs"|ii||d|d||S(s Rebuild -- shut down and then re-image -- this server. :param image: the :class:`Image` (or its ID) to re-image with. :param password: string to set as the admin password on the rebuilt server. :param preserve_ephemeral: If True, request that any ephemeral device be preserved when rebuilding the instance. Defaults to False. R+tpreserve_ephemeral(R trebuild(R R,R+R7tkwargs((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR8s cKs|ii|||dS(s Resize the server's resources. :param flavor: the :class:`Flavor` (or its ID) to resize to. Until a resize event is confirmed with :meth:`confirm_resize`, the old server will be kept around and you'll be able to roll back to the old flavor quickly with :meth:`revert_resize`. All resizes are automatically confirmed after 24 hours. N(R tresize(R tflavorR9((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR:s cCs|ii|||S(s Create an image based on this server. :param image_name: The name to assign the newly create image. :param metadata: Metadata to assign to the image. (R t create_image(R t image_nametmetadata((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR<*scCs|ii||||dS(s Backup a server instance. :param backup_name: Name of the backup image :param backup_type: The backup type, like 'daily' or 'weekly' :param rotation: Int parameter representing how many backups to keep around. N(R tbackup(R t backup_namet backup_typetrotation((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR?3s cCs|ii|dS(sT Confirm that the resize worked, thus removing the original server. N(R tconfirm_resize(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRC>scCs|ii|dS(sM Revert a previous resize, switching back to the old server. N(R t revert_resize(R ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRDDsc Csrh}yQxF|iiD]5\}}g}|D]}||dq0~|| Detach a network interface from an instance. (R tinterface_detach(R R^((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRasN(:t__name__t __module__tTruetHUMAN_IDR RtNoneRRRRRRRRRRRR R!R"R#R$R%R&R'R(R)R*R-R.R/R0R1R2R3R4t REBOOT_SOFTR5tFalseR8R:R<R?RCRDtpropertyRIRNRSRURVRXRYRZR\R]Ra(((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR%sj                                         t ServerManagercBseZeZd:d:d:d:ed:d:d:d:d:d:d:d:d:d:d:d:dZdZed:d:d:d:d:dZ dZ dZ d:dZ dZ dZdZd Zd Zd:d Zd Zd ZdZdZdZdZdZdZdZdZdZd:d:dZdZdZ dZ!dZ"dZ#dZ$d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:dZ%d:dZ&d Z'd!Z(e)d"Z*d:d:ed:d:d:d#Z+d$Z,d:d%Z-d&Z.d'Z/d:d(Z0d)Z1d*Z2d+Z3d:d,Z4d-Z5d.Z6d/d0Z7d1Z8d2Z9d3Z:d4Z;d:ed:d5Z<d6Z=d7Z>d8Z?d:d9Z@RS(;c%Kshh|d6|otti|ndd6tti|d6d6}|ot|do|i}ntio-y|id}Wqtj oqXn*yt i |}Wnt j onXt i |id}||ddtreservation_idtkey_namesos:scheduler_hintst config_drivet adminPassit min_countt max_countRt personalitytkeycSs|dS(i((tx((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pytstpathtcontentstavailability_zonetblock_device_mappingtuuidR,t source_typetlocaltdestination_typeit boot_indextdelete_on_terminationtblock_device_mapping_v2snet-ids v4-fixed-ips v6-fixed-ips<Only one of 'v4-fixed-ip' and 'v6-fixed-ip' may be provided.R`sport-idtportRIsOS-DCF:diskConfigt return_rawN(tstrRtgetidthasattrRotsixtPY3tencodetAttributeErrorRt safe_encodetUnicodeDecodeErrortbase64t b64encodetdecodetsortedRGt isinstancetappendt_parse_block_device_mappingRdtinsertRftgett exceptionst CommandErrorRt_create(%R t resource_urlt response_keyR R,R;tmetatfilestuserdataRqRRuRvRRrR}R~Rtnicstscheduler_hintsRst admin_passt disk_configR9tbodyt userdata_b64RLtsgRwtfilepathtfile_or_stringtdatatconttbdm_dictt all_net_datatnic_infotnet_data((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyt_boots $    -      cCs|idti|dS(sy Get a server. :param server: ID of the :class:`Server` to get. :rtype: :class:`Server` s /servers/%sRn(t_getRR(R Rn((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRscCs|djo h}nh}xXti|D]G\}} | o4t| tio| id} n| ||Us cssx|]}d|fVqWdS(tsort_dirN((RR((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pys Xs RxcSs|dS(i((Ry((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRzZss?%ss /servers%s%stserversN(RfRt iteritemsRt text_typeRRdtlistRGtextendRRt urlencodet_listtid(R tdetailedt search_optsRRt sort_keyst sort_dirstqparamstopttvaltdetailtresultRGt new_qparamst query_stringR((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR'sJ        cCs|id|h|d6dS(s Add an IP address on a network. :param server: The :class:`Server` (or its ID) to add an IP to. :param network_id: The ID of the network the IP should be on. t addFixedIpt networkIdN(t_action(R RnR((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRhscCs|id|h|d6dS(s Remove an IP address. :param server: The :class:`Server` (or its ID) to add an IP to. :param address: The IP address to remove. t removeFixedIpRN(R(R RnR((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR3qscCst|do |in|}|oBt|do |i}n|id|h|d6|d6n|id|h|d6dS(sA Add a floating IP to an instance :param server: The :class:`Server` (or its ID) to add an IP to. :param address: The FloatingIP or string floating address to add. :param fixed_address: The FixedIP the floatingIP should be associated with (optional) tipt addFloatingIpRRN(RRR(R RnRR((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRzs   cCs>t|do |in|}|id|h|d6dS(s Remove a floating IP address. :param server: The :class:`Server` (or its ID) to remove an IP from. :param address: The FloatingIP or string floating address to remove. RtremoveFloatingIpRN(RRR(R RnR((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRs cCs|id|h|d6dS(s Get a vnc console for an instance :param server: The :class:`Server` (or its ID) to add an IP to. :param console_type: Type of vnc console to get ('novnc' or 'xvpvnc') sos-getVNCConsolettypei(R(R RnR((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRs cCs|id|h|d6dS(s Get a spice console for an instance :param server: The :class:`Server` (or its ID) to add an IP to. :param console_type: Type of spice console to get ('spice-html5') sos-getSPICEConsoleRi(R(R RnR((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRs cCs|id|h|d6dS(s Get a rdp console for an instance :param server: The :class:`Server` (or its ID) to add an IP to. :param console_type: Type of rdp console to get ('rdp-html5') sos-getRDPConsoleRi(R(R RnR((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRs cCs|id|h|d6dS(s Get a serial console for an instance :param server: The :class:`Server` (or its ID) to add an IP to. :param console_type: Type of serial console to get ('serial') sos-getSerialConsoleRi(R(R RnR((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRs cCs|iiidti|\}}|o|iddnd}|oB|o;yti||SWqtj o}d||fSXn|S(s Get admin password of an instance Returns the admin password of an instance in the clear if private_key is provided, returns the ciphered password otherwise. Requires that openssl is installed and in the path :param server: The :class:`Server` (or its ID) for which the admin password is to be returned :param private_key: The private key to decrypt password (optional) s/servers/%s/os-server-passwordR+Rks%sFailed to decrypt: %s(tapitclientRRRRtdecrypt_passwordRH(R RnRt_respRt ciphered_pwtexc((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRs cCs|idti|S(s Clear the admin password of an instance Remove the admin password for an instance from the metadata server. :param server: The :class:`Server` (or its ID) for which the admin password is to be cleared s/servers/%s/os-server-password(t_deleteRR(R Rn((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRs cCs|id|dS(s" Stop the server. sos-stopN(RRf(R Rn((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR scCs|id|dS(s* Force delete the server. t forceDeleteN(RRf(R Rn((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR!scCs|id|dS(s. Restore soft-deleted server. R"N(RRf(R Rn((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR"scCs|id|ddS(s# Start the server. sos-startN(RRf(R Rn((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR#scCs|id|ddS(s# Pause the server. R$N(RRf(R Rn((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR$scCs|id|ddS(s% Unpause the server. R%N(RRf(R Rn((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR%scCs|id|ddS(s" Lock the server. R&N(RRf(R Rn((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR&scCs|id|ddS(s$ Unlock the server. R'N(RRf(R Rn((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR'scCs|id|ddS(s% Suspend the server. R(N(RRf(R Rn((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR(scCs|id|ddS(s$ Resume the server. R)N(RRf(R Rn((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR) scCsSh}|o||dRwRxcSs|dS(i((Ry((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRzsRosutf-8R{R|R8RnN(RRRfRhRdRRGRRoRRRRRRR(R RnR,R+RR7R RRR9RRwRRRRR((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR8s2     ! cCs|id|dS(sj Migrate a server to a new host. :param server: The :class:`Server` (or its ID). R2N(R(R Rn((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR2 scKsNhti|d6}|dj o||dt createImageitlocationt/i(Rtheaderstsplit(R RnR=R>RtrespRt image_uuid((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR<7s  cCs2h|d6|d6|d6}|id||dS(sZ Backup a server instance. :param server: The :class:`Server` (or its ID) to share onto. :param backup_name: Name of the backup image :param backup_type: The backup type, like 'daily' or 'weekly' :param rotation: Int parameter representing how many backups to keep around. R RARBt createBackupN(R(R RnR@RARBR((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyR?Es  cCs-h|d6}|idti||dS(s Set a servers metadata :param server: The :class:`Server` to add metadata to :param metadata: A dict of metadata to add to the server R>s/servers/%s/metadata(RRR(R RnR>R((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pytset_metaTs cCs7hh||6d6}|idti||f|S(s Updates an item of server metadata :param server: The :class:`Server` to add metadata to :param key: metadata key to update :param value: string value Rs/servers/%s/metadata/%s(RRR(R RnRxtvalueR((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyt set_meta_item^s cCs"|id|h|d6ddS(s  Get text console log output from Server. :param server: The :class:`Server` (or its ID) whose console output you would like to retrieve. :param length: The number of tail loglines you would like to retrieve. sos-getConsoleOutputRitoutput(R(R RnR((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRis cCs5x.|D]&}|idti||fqWdS(s Delete metadata from an server :param server: The :class:`Server` to add metadata to :param keys: A list of metadata keys to delete from the server s/servers/%s/metadata/%sN(RRR(R Rntkeystk((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyt delete_metauscCs,|id|h|d6|d6|d6dS(s% Migrates a running instance to a new machine. :param server: instance id which comes from nova list. :param host: destination host name. :param block_migration: if True, do block_migration. :param disk_over_commit: if True, Allow overcommit. sos-migrateLiveRORPRQN(R(R RnRORPRQ((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRN~s  RRcCs |id|td|dS(s Reset the state of an instance to active or error. :param server: ID of the instance to reset the state of. :param state: Desired state; either 'active' or 'error'. Defaults to 'error'. s os-resetStateRTN(RR(R RnRT((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRSscCs|id|dS(s/ Reset network of an instance. t resetNetworkN(R(R Rn((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRUscCs|id|h|d6dS(s Add a Security Group to an instance :param server: ID of the instance. :param security_group: The name of security group to add. taddSecurityGroupR N(R(R RnRW((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRVscCs|id|h|d6dS(s Add a Security Group to an instance :param server: ID of the instance. :param security_group: The name of security group to remove. tremoveSecurityGroupR N(R(R RnRW((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRXscCs#|idti|dtiS(sd List Security Group(s) of an instance :param server: ID of the instance. s/servers/%s/os-security-groupsR(RRRRt SecurityGroup(R Rn((s@/tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/servers.pyRYs cCsVh|d6}|dj o||ds  z