DongTai-SDK-Python
Quick start
You need a config file
config.json
{
"DongTai":{
"token":"your token",
"url":"http://127.0.0.1:90"
}
}
How to use:
from dongtai_sdk.DongTai import DongTai
dongTaiSdk = DongTai("config.json")
Support function (Continuous updating)
Project
dongTaiSdk.GetProjectList(page,pageSize,name=None)
dongTaiSdk.GetProjectVerList(projectId)
dongTaiSdk.AddProjectVersion(projectId,verName,description,isEdit=True)
dongTaiSdk.SearchProject(projectId)
Agent (Completed)
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)