API列表可以访问:
http://localhost:7180/static/apidocs/rest.html
https://github.com/cloudera/cm_api
使用方式参考:
1、访问集群概要信息
# curl -u admin:your_password 'http://localhost:7180/api/v19/clusters/'
2、获取集群内服务状态信息
# curl -u admin:your_password 'http://localhost:7180/api/v19/clusters/cluster/services'
3、查询指定日期以来的严重事件
# curl -u admin:your_password 'http://localhost:7180/api/v19/events?query=severity==critical;timeReceived=ge=2020-08-16T00:00:00.000Z'