REST Interface¶
An H2OConnection represents the latest active handle to a cloud. No more than a single H2OConnection object will be active at any one time.
- class h2o.connection.H2OConnection(ip, port, start_h2o, enable_assertions, license, nthreads, max_mem_size, min_mem_size, ice_root, strict_version_check, proxy, https, insecure, username, password, max_mem_size_GB, min_mem_size_GB, proxies, size)[source]¶
Bases: object
H2OConnection is a class that represents a connection to the H2O cluster. It is specified by an IP address and a port number.
Objects of type H2OConnection are not instantiated directly!
This class contains static methods for performing the common REST methods GET, POST, and DELETE.
Methods
check_conn() cluster_is_up(conn) Determine if an H2O cluster is up or not current_connection() default() delete(url_suffix, **kwargs) get(url_suffix, **kwargs) get_json(url_suffix, **kwargs) https() insecure() ip() jar_paths() make_url(url_suffix[, _rest_version]) password() port() post(url_suffix[, file_upload_info]) post_json(url_suffix[, file_upload_info]) rest_ctr() rest_version() session_id() username()