<s> from libcloud . compute . types import Provider <EOL> from libcloud . compute . providers import get_driver <EOL> cls = get_driver ( Provider . CLOUDSIGMA ) <EOL> driver = cls ( '<STR_LIT:username>' , '<STR_LIT:password>' , region = '<STR_LIT>' , api_version = '<STR_LIT>' ) <EOL> name = '<STR_LIT>' <EOL> size = driver . list_sizes ( ) [ <NUM_LIT:0> ] <EOL> image = driver . list_images ( ) [ <NUM_LIT:0> ] <EOL> subscription = driver . ex_create_subscription ( amount = <NUM_LIT:1> , period = '<STR_LIT>' , <EOL> resource = '<STR_LIT>' , auto_renew = True ) <EOL> vlan_uuid = subscription . subscribed_object <EOL> node = driver . create_node ( name = name , size = size , image = image , <EOL> ex_vlan = vlan_uuid ) <EOL> print ( node ) </s>
