open-api-demo
This project is an example for CloudQuery Community, which can assist community users in code development such as organizational structure import, and is also the recommended implementation of the current CloudQuery open API. Welcome all community users with development capabilities to join us and learn about code technology.
本项目为 CloudQuery 社区的示例项目,可以帮助社区用户进行组织架构导入等代码开发,也是目前 CloudQuery OpenAPI 的推荐实现。欢迎各位有开发能力的社区用户加入我们,切磋代码技术。
Use Guide
- After downloading the code package or cloning the code, use IDEA or other Java IDE tools to open it. exist
open-api-demo/src/main/java/cn/bintools/cloud/openapi/ad/
FindAdDomainServer
in the directory ; - Replace the
APPID
andSECRET
in the code with the appId and secret applied by the CloudQuery platform ; - Replace
HOST
in the code with the IP of the CloudQuery server ; - Replace the
adminName
in theconnectionAdDomain()
method with the AD server account ; - Replace
adminPassword
with the corresponding password of the account ; - Replace
ldapURL
with the domain name and port number of the AD server ; - Replace
SECURITY_AUTHENTICATION
with the corresponding authentication level of the AD server ("none", "simple", "strong") ; - Run the
main
method in the class ;
- 下载代码包或克隆代码后,使用IDEA或其他Java IDE工具打开。在
open-api-demo/src/main/java/cn/bintools/cloud/openapi/ad/
目录下找到AdDomainServer
; - 将代码中的
APPID
与SECRET
替换为 CloudQuery 平台申请的appId
和secret
; - 将代码中的
HOST
替换为 CloudQuery 服务器所在ip ; - 将
connectionAdDomain()
方法中的adminName
替换为AD服务器账户; - 将
adminPassword
替换为账户对应密码; - 将
ldapURL
替换为AD服务器域名以及端口号; - 将
SECURITY_AUTHENTICATION
替换为AD服务器对应验证等级 ("none","simple","strong"); - 运行类中的
main
方法;
TODO
Permission module and audit module will continue to be opened in the future
- Permission module: export and import permissions under connection
- Audit module: filter and export audit records
后续会持续开放 权限模块、审计模块
- 权限模块:连接下权限导出、导入
- 审计模块:审计记录筛选、导出
Details
Refer to the link for details of interface use here
接口调用详情请参考这里
Thanks
Special thanks:
- Dear community users
- Dear bugs
Learn More
Click here to learn about CloudQuery
Click here to learn about Bintools
点击了解 CloudQuery
点击了解 Bintools