Example #1
0
def deleteRole(dataConnect, roleId):
    apiPath = "pc/sys/role/{0}"
    content = deleteRest(dataConnect, apiPath, "", roleId + "", "")
    return content
Example #2
0
def delFirewall(dataConnect,resourcePoolId,fireRuleId):
    apiPath = "wce/api/fireWall/resourcePools/{0}/ruleId/{1}";
    content = deleteRest(dataConnect, apiPath, "", resourcePoolId+","+fireRuleId, "");
    task = eval(content);
    return task['taskId']
Example #3
0
def deleteVolume(dataConnect, volumeId):
    apiKey = "wce/api/volumes/{0}";
    content = deleteRest(dataConnect, apiKey, "", volumeId+"", "");
    task = eval(content);
    return task['taskId']
Example #4
0
def delSnapshot(dataConnect,snapshotId):
    apiPath = "wce/api/snapShots/{0}";
    content = deleteRest(dataConnect, apiPath, "",snapshotId + "", "");
    task = eval(content);
    return task['taskId']
Example #5
0
def deleteVmTemplate(dataConnect,vmTemplateId):
    apiKey = "wce/api/templates/{0}";
    content = deleteRest(dataConnect, apiKey, "", vmTemplateId, "");
    task = eval(content);
    return task['taskId']