Module ImportFrom alias Import alias Import alias Import alias Import alias Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Expr Call NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad Call AttributeLoad NameLoad attr attr Str body Assign NameStore SubscriptLoad ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareIn Str AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr Num Index Num Expr Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str keyword Num keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Num keyword Str Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str NameLoad Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str keyword Num keyword Num keyword NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str keyword Num keyword Num keyword NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Str
N/A __future__ print_function N/A os N/A six N/A sys N/A pyrax N/A N/A N/A pyrax set_setting identity_type rackspace N/A creds_file N/A N/A N/A os path expanduser ~/.rackspace_cloud_credentials N/A N/A N/A pyrax set_credential_file creds_file N/A cs N/A pyrax cloudservers N/A cbs N/A pyrax cloud_blockstorage N/A N/A N/A server N/A N/A N/A cs servers find name sample_server N/A N/A N/A N/A N/A cs exceptions NotFound N/A e N/A N/A N/A print N/A N/A print Before running this sample, create a server named 'sample_server'  N/A N/A print and wait for it to be in an ACTIVE state. N/A prompt Do you wish to have this server created for you? [y/N] N/A answer N/A N/A N/A six moves input prompt N/A N/A N/A N/A N/A answer lower startswith y N/A N/A ubu_image N/A N/A img N/A img N/A N/A N/A cs images list N/A Ubuntu N/A img name N/A 0 N/A flavor_1GB N/A N/A flavor N/A flavor N/A N/A N/A cs flavors list N/A N/A flavor ram 1024 N/A 0 N/A N/A print Creating the server... N/A server N/A N/A N/A cs servers create sample_server N/A ubu_image id N/A flavor_1GB id N/A N/A print Server created; waiting for it to become active... N/A N/A N/A N/A pyrax utils wait_until server status ACTIVE attempts 0 verbose True N/A N/A N/A N/A sys exit N/A vol N/A N/A cbs create name sample_volume size 100 volume_type SATA N/A N/A print New volume: N/A vol name N/A N/A print Attaching to: server N/A N/A print It may take several seconds for the attachment to complete. N/A N/A N/A vol attach_to_instance server mountpoint /dev/xvdd N/A N/A N/A N/A pyrax utils wait_until vol status in-use interval 3 attempts 0 verbose True N/A N/A print Volume attachments: N/A vol attachments N/A N/A print N/A N/A print Detaching the volume... N/A N/A N/A vol detach N/A N/A N/A N/A pyrax utils wait_until vol status available interval 3 attempts 0 verbose True N/A N/A print Attachments: N/A vol attachments N/A N/A N/A vol delete N/A N/A print Deleted