code: def create_host(resource_root, host_id, name, ipaddr, rack_id=None):
    
    apihost = ApiHost(resource_root, host_id, name, ipaddr, rack_id)
    return call(resource_root.post, HOSTS_PATH, ApiHost, True, data=[apihost])[0]
docs: Create a host
    @param resource_root: The root Resource object.
    @param host_id: Host id
    @param name: Host name
    @param ipaddr: IP address
    @param rack_id: Rack id. Default None
    @return: An ApiHost object