use of com.aliyun.openservices.log.request.ListProjectRequest in project opscloud4 by ixrjog.
the class AliyunLogDriver method listProject.
/**
* 列出 project
*
* @param aliyun
* @param project
* @return
*/
public List<Project> listProject(AliyunConfig.Aliyun aliyun, String project) {
int offset = 0;
ListProjectRequest req = new ListProjectRequest(project, offset, QUERY_SIZE);
try {
Client client = buildClient(aliyun);
return client.ListProject(req).getProjects();
} catch (LogException lg) {
log.error("阿里云日志服务查询Project错误! , {}", lg.GetErrorMessage());
}
return Collections.emptyList();
}
Aggregations