Ejemplo n.º 1
0
def userCompetence(dataConnect, data):
    apiPath = "pc/sys/functions/userFun"
    content = putRest(dataConnect, apiPath, "", "", data)
    return content
Ejemplo n.º 2
0
def recoverSnapshot(dataConnect,snapshotId):
    apiPath = "wce/api/snapShots/{0}/revert";
    content = putRest(dataConnect, apiPath, "", snapshotId, "");
    task = eval(content);
    return task['taskId']
Ejemplo n.º 3
0
def updateNetwork(dataConnect, networkId, data):
    apiKey = "wce/api/networks/{0}";
    content = putRest(dataConnect, apiKey, "", networkId + "", data);
    task = eval(content);
    return task['taskId']
Ejemplo n.º 4
0
def operateBusSytem(dataConnect, busSytemId, data):
    apiKey = "wce/api/busSystem/oper/{0}";
    content = putRest(dataConnect, apiKey, "", busSytemId, data);
    taskId = eval(content);
    return taskId["taskId"]