config.json
{
"DongTai":{
"token":"your token",
"url":"http://127.0.0.1:90"
}
}
from dongtai_sdk.DongTai import DongTai
dongTaiSdk = DongTai("config.json")
dongTaiSdk.GetProjectList(page,pageSize,name=None)
dongTaiSdk.GetProjectVerList(projectId)
dongTaiSdk.AddProjectVersion(projectId,verName,description,isEdit=True)
dongTaiSdk.SearchProject(projectId)
dongTaiSdk.DeleteProject(projectId)
dongTaiSdk.UpdateProjectVersion(projectId,versionName,versionId,description,currentVersion=1,isEdit=True)
dongTaiSdk.GetProjectDetail(projectId)
dongTaiSdk.GetProjectAgentList(projectId)
dongTaiSdk.DeleteAgent(agentId)
dongTaiSdk.StartAgent(agentId)
dongTaiSdk.StopAgent(agentId)
dongTaiSdk.ModifiedAgentAlias(agentId,alias)
dongTaiSdk.GetAgentDetail(agentId)
dongTaiSdk.GetAgentList(page=1,pageSize=50,projectName=None,state=None,token=None)
dongTaiSdk.GetScaDetail(scaId)
dongTaiSdk.GetScaList(page=1,pageSize=50,keyword=None,language=None,level=None,order=None,projectId=None,projectName=None,versionId=None)
dongTaiSdk.GetScaSummary(page=1,pageSize=50,keyword=None,language=None,level=None,order=None,projectId=None,projectName=None,versionId=None)
dongTaiSdk.GetVulnSummary(projectId=None,language=None,level=None,order=None,projectName=None,status=None,type=None,url=None,versionId=None,statusId=None)
dongTaiSdk.GetVulnDetail(vulnId)