clusters.py 文件源码

python
阅读 40 收藏 0 点赞 0 评论 0

项目:clusterdock 作者: cloudera 项目源码 文件源码
def add_hosts(self, hostIds):
    """
    Adds a host to the cluster.

    @param hostIds: List of IDs of hosts to add to cluster.
    @return: A list of ApiHostRef objects of the new
             hosts that were added to the cluster
    @since: API v3
    """
    hostRefList = [ApiHostRef(self._get_resource_root(), x) for x in hostIds]
    return self._post("hosts", ApiHostRef, True, data=hostRefList,
        api_version=3)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号