예제 #1
0
def updateRole(dataConnect, roleId, data):
    apiPath = "pc/sys/role/{0}"
    content = postRest(dataConnect, apiPath, "", roleId + "", data)
    return content
예제 #2
0
def updateFirewallNic(dataConnect,vmId,nicId,data):
    apiPath = "wce/api/fireWall/vm/{0}/nic/{1}";
    content = postRest(dataConnect, apiPath, "", vmId+ "," + nicId, data);
    task = eval(content);
    return task['taskId']
예제 #3
0
def createRole(dataConnect, data):
    apiPath = "pc/sys/role"
    content = postRest(dataConnect, apiPath, "", "", data)
    return content
예제 #4
0
def addFirewall(dataConnect, data, resourcePoolId):
    apiPath = "wce/api/fireWall/resourcePools/{0}";
    content = postRest(dataConnect, apiPath, "", "" + resourcePoolId, data);
    task = eval(content);
    return task['taskId']
예제 #5
0
def addSnapshot(dataConnect,data):
    apiPath = "wce/api/snapShots";
    content = postRest(dataConnect, apiPath, "", "", data);
    task = eval(content);
    return task['taskId']
예제 #6
0
def createVolume(dataConnect,data):
    apiKey = "wce/api/volumes";
    content = postRest(dataConnect, apiKey, "", "", data);
    task = eval(content);
    return task['taskId']
예제 #7
0
def createBusSytem(dataConnect, data):
    apiKey = "wce/api/busSystem/";
    content = postRest(dataConnect, apiKey, "", "", data);
    busvms = eval(content);
    return busvms
예제 #8
0
파일: MS.py 프로젝트: avenrainbow/aven_su
def addMonitor(dataConnect, data):
    apiPath = "pc/sys/agent/addProcessMonitor";
    content = postRest(dataConnect, apiPath, "", "", data);
    return content