예제 #1
0
def getRole(dataConnect, roleId):
    apiPath = "pc/sys/role/{0}"
    content = getRest(dataConnect, apiPath, "", roleId + "", "")
    return content
예제 #2
0
def getCompetenceByUserId(dataConnect, userId):
    apiPath = "pc/sys/functions/relaUser/{0}"
    content = getRest(dataConnect, apiPath, "", userId + "", "")
    return content
예제 #3
0
def getRoleList(dataConnect):
    apiPath = "pc/sys/role/getRoleList"
    content = getRest(dataConnect, apiPath, "", "", "")
    return content
예제 #4
0
def getFun(dataConnect):
    apiPath = "pc/sys/functions"
    content = getRest(dataConnect, apiPath, "", "", "")
    return content
예제 #5
0
def getRelaByRoleId(dataConnect, roleId):
    apiPath = "pc/sys/functions/rela/{0}"
    content = getRest(dataConnect, apiPath, "", roleId + "", "")
    return content
예제 #6
0
def getFirewallNic(dataConnect,vmId,nicId):
    apiPath = "wce/api/fireWall/vm/{0}/nic/{1}";
    content = getRest(dataConnect, apiPath, "", vmId+ "," + nicId, "");
    return content
예제 #7
0
def queryFirewall(dataConnect, firstResult, maxResult, resourcePoolId):
    apiPath = "wce/api/fireWall/resourcePools/{0}";
    params = "firstResult=" + firstResult + "&maxResult=" + maxResult;
    content = getRest(dataConnect, apiPath, params, "" + resourcePoolId, "");
    return content
예제 #8
0
def getSnapshotList(dataConnect,vmId):
    apiPath = "wce/api/snapShots";
    params = "vmId=" + vmId;
    content = getRest(dataConnect, apiPath, params, "","");
    return content
예제 #9
0
파일: Host.py 프로젝트: avenrainbow/aven_su
def getHostPm(dataConnect, hostId, params):
    apiKey = "wce/api/pm/hosts/{0}";
    content = getRest(dataConnect, apiKey, params, hostId, "");
    return content
예제 #10
0
def getSnapshotInfo(dataConnect,snapshotId):
    apiPath = "wce/api/snapShots/{0}";
    content = getRest(dataConnect, apiPath, "",snapshotId + "", "");
    return content
예제 #11
0
def getVolume(dataConnect,volumeId):
    apiKey = "wce/api/volumes/{0}";
    return getRest(dataConnect, apiKey, "", volumeId+"", "");
예제 #12
0
def getAllVmTemplates(dataConnect):
    apiKey = "wce/api/templates/";
    return getRest(dataConnect, apiKey, "", "", "");
예제 #13
0
def getVmTemplateInfo(dataConnect,vmTemplateId):
    apiKey = "wce/api/templates/{0}";
    return getRest(dataConnect, apiKey, "", vmTemplateId, "");
예제 #14
0
파일: MS.py 프로젝트: avenrainbow/aven_su
def getProcessData(dataConnect, vmId, uuid):
    apiPath = "pc/sys/agent/processInfo/{0}";
    params = "uuid=" + uuid;
    content = getRest(dataConnect, apiPath, params, vmId+ "", "");
    return content