def secgroup_show():
    c = wic_client()
    res = c.wic_secgroup_show(groupName = "default")
def add_user():
    c = wic_client()
    res, user_id = c.wic_add_user(userName = '******', password = '******')
def create_volume():
    c = wic_client()
    res = c.wic_volume_create(disk = 5)
def dettach_volume():
    c = wic_client()
    res = c.wic_volume_dettach(instanceId = 'xxxxxxxxxx', volumeId = '5')
def suspend_instance():
    c = wic_client()
    res = c.wic_instance_suspend(instanceId = 'instanceId')
def delete_instance():
    c = wic_client()
    res = c.wic_instance_delete(instanceId = 'instanceId')
예제 #7
0
파일: test.py 프로젝트: pubfox/webservices
def add_user(**params):
    c = wic_client()
    res = c.AddUser(**params)
예제 #8
0
파일: test.py 프로젝트: pubfox/webservices
def suspend_instance(**params):
    c = wic_client()
    res = c.StopHost(**params)
예제 #9
0
파일: test.py 프로젝트: pubfox/webservices
def secgroup_show():
    c = wic_client()
    res = c.wic_secgroup_show(groupName="default")
예제 #10
0
파일: test.py 프로젝트: pubfox/webservices
def suspend_instance(**params):
    c = wic_client()
    res = c.StopHost(**params)
예제 #11
0
파일: test.py 프로젝트: pubfox/webservices
def add_user(**params):
    c = wic_client()
    res = c.AddUser(**params)