JupyterHub API#
- Release:
2.3.1
- Date:
Jan 20, 2024
JupyterHub also provides a REST API for administration of the Hub and users. The documentation on Using JupyterHub’s REST API provides information on:
what you can do with the API
creating an API token
adding API tokens to the config files
making an API request programmatically using the requests library
learning more about JupyterHub’s API
JupyterHub API Reference:
- Application configuration
- Module:
jupyterhub.app
JupyterHub
JupyterHub
JupyterHub.active_server_limit
JupyterHub.active_user_window
JupyterHub.activity_resolution
JupyterHub.admin_access
JupyterHub.admin_users
JupyterHub.allow_named_servers
JupyterHub.answer_yes
JupyterHub.api_page_default_limit
JupyterHub.api_page_max_limit
JupyterHub.api_tokens
JupyterHub.authenticate_prometheus
JupyterHub.authenticator_class
JupyterHub.base_url
JupyterHub.bind_url
JupyterHub.cleanup_proxy
JupyterHub.cleanup_servers
JupyterHub.concurrent_spawn_limit
JupyterHub.config_file
JupyterHub.confirm_no_ssl
JupyterHub.cookie_max_age_days
JupyterHub.cookie_secret
JupyterHub.cookie_secret_file
JupyterHub.data_files_path
JupyterHub.db_kwargs
JupyterHub.db_url
JupyterHub.debug_db
JupyterHub.debug_proxy
JupyterHub.default_server_name
JupyterHub.default_url
JupyterHub.external_ssl_authorities
JupyterHub.extra_handlers
JupyterHub.extra_log_file
JupyterHub.extra_log_handlers
JupyterHub.forwarded_host_header
JupyterHub.generate_certs
JupyterHub.generate_config
JupyterHub.hub_bind_url
JupyterHub.hub_connect_ip
JupyterHub.hub_connect_port
JupyterHub.hub_connect_url
JupyterHub.hub_ip
JupyterHub.hub_port
JupyterHub.hub_routespec
JupyterHub.implicit_spawn_seconds
JupyterHub.init_spawners_timeout
JupyterHub.internal_certs_location
JupyterHub.internal_ssl
JupyterHub.ip
JupyterHub.jinja_environment_options
JupyterHub.last_activity_interval
JupyterHub.load_groups
JupyterHub.load_roles
JupyterHub.log_datefmt
JupyterHub.log_format
JupyterHub.log_level
JupyterHub.logging_config
JupyterHub.logo_file
JupyterHub.named_server_limit_per_user
JupyterHub.oauth_token_expires_in
JupyterHub.pid_file
JupyterHub.port
JupyterHub.proxy_api_ip
JupyterHub.proxy_api_port
JupyterHub.proxy_auth_token
JupyterHub.proxy_check_interval
JupyterHub.proxy_class
JupyterHub.proxy_cmd
JupyterHub.recreate_internal_certs
JupyterHub.redirect_to_server
JupyterHub.reset_db
JupyterHub.service_check_interval
JupyterHub.service_tokens
JupyterHub.services
JupyterHub.show_config
JupyterHub.show_config_json
JupyterHub.shutdown_on_logout
JupyterHub.spawner_class
JupyterHub.ssl_cert
JupyterHub.ssl_key
JupyterHub.statsd_host
JupyterHub.statsd_port
JupyterHub.statsd_prefix
JupyterHub.subdomain_host
JupyterHub.template_paths
JupyterHub.template_vars
JupyterHub.tornado_settings
JupyterHub.trust_user_provided_tokens
JupyterHub.trusted_alt_names
JupyterHub.trusted_downstream_ips
JupyterHub.upgrade_db
JupyterHub.use_legacy_stopped_server_status_code
JupyterHub.user_redirect_hook
- Module:
- Authenticators
- Module:
jupyterhub.auth
Authenticator
Authenticator
Authenticator.add_user()
Authenticator.admin_users
Authenticator.allowed_users
Authenticator.auth_refresh_age
Authenticator.authenticate()
Authenticator.auto_login
Authenticator.auto_login_oauth2_authorize
Authenticator.blocked_users
Authenticator.check_allowed()
Authenticator.check_blocked_users()
Authenticator.custom_html
Authenticator.delete_invalid_users
Authenticator.delete_user()
Authenticator.enable_auth_state
Authenticator.get_authenticated_user()
Authenticator.get_custom_html()
Authenticator.get_handlers()
Authenticator.is_admin()
Authenticator.login_service
Authenticator.login_url()
Authenticator.logout_url()
Authenticator.manage_groups
Authenticator.normalize_username()
Authenticator.post_auth_hook
Authenticator.post_spawn_stop()
Authenticator.pre_spawn_start()
Authenticator.refresh_pre_spawn
Authenticator.refresh_user()
Authenticator.run_post_auth_hook()
Authenticator.username_map
Authenticator.username_pattern
Authenticator.username_regex
Authenticator.validate_username()
Authenticator.whitelist
LocalAuthenticator
LocalAuthenticator
LocalAuthenticator.add_system_user()
LocalAuthenticator.add_user()
LocalAuthenticator.add_user_cmd
LocalAuthenticator.admin_users
LocalAuthenticator.allowed_groups
LocalAuthenticator.allowed_users
LocalAuthenticator.auth_refresh_age
LocalAuthenticator.auto_login
LocalAuthenticator.auto_login_oauth2_authorize
LocalAuthenticator.blocked_users
LocalAuthenticator.check_allowed()
LocalAuthenticator.check_allowed_groups()
LocalAuthenticator.create_system_users
LocalAuthenticator.delete_invalid_users
LocalAuthenticator.enable_auth_state
LocalAuthenticator.group_whitelist
LocalAuthenticator.manage_groups
LocalAuthenticator.post_auth_hook
LocalAuthenticator.refresh_pre_spawn
LocalAuthenticator.system_user_exists()
LocalAuthenticator.uids
LocalAuthenticator.username_map
LocalAuthenticator.username_pattern
LocalAuthenticator.whitelist
PAMAuthenticator
PAMAuthenticator
PAMAuthenticator.add_user_cmd
PAMAuthenticator.admin_groups
PAMAuthenticator.admin_users
PAMAuthenticator.allowed_groups
PAMAuthenticator.allowed_users
PAMAuthenticator.auth_refresh_age
PAMAuthenticator.auto_login
PAMAuthenticator.auto_login_oauth2_authorize
PAMAuthenticator.blocked_users
PAMAuthenticator.check_account
PAMAuthenticator.create_system_users
PAMAuthenticator.delete_invalid_users
PAMAuthenticator.enable_auth_state
PAMAuthenticator.encoding
PAMAuthenticator.group_whitelist
PAMAuthenticator.manage_groups
PAMAuthenticator.open_sessions
PAMAuthenticator.pam_normalize_username
PAMAuthenticator.post_auth_hook
PAMAuthenticator.refresh_pre_spawn
PAMAuthenticator.service
PAMAuthenticator.uids
PAMAuthenticator.username_map
PAMAuthenticator.username_pattern
PAMAuthenticator.whitelist
DummyAuthenticator
DummyAuthenticator
DummyAuthenticator.admin_users
DummyAuthenticator.allowed_users
DummyAuthenticator.auth_refresh_age
DummyAuthenticator.auto_login
DummyAuthenticator.auto_login_oauth2_authorize
DummyAuthenticator.blocked_users
DummyAuthenticator.delete_invalid_users
DummyAuthenticator.enable_auth_state
DummyAuthenticator.manage_groups
DummyAuthenticator.password
DummyAuthenticator.post_auth_hook
DummyAuthenticator.refresh_pre_spawn
DummyAuthenticator.username_map
DummyAuthenticator.username_pattern
DummyAuthenticator.whitelist
- Module:
- Spawners
- Module:
jupyterhub.spawner
Spawner
Spawner
Spawner.args
Spawner.auth_state_hook
Spawner.cmd
Spawner.consecutive_failure_limit
Spawner.cpu_guarantee
Spawner.cpu_limit
Spawner.create_certs()
Spawner.debug
Spawner.default_url
Spawner.disable_user_config
Spawner.env_keep
Spawner.environment
Spawner.format_string()
Spawner.get_args()
Spawner.get_env()
Spawner.get_state()
Spawner.http_timeout
Spawner.hub_connect_url
Spawner.ip
Spawner.mem_guarantee
Spawner.mem_limit
Spawner.move_certs()
Spawner.notebook_dir
Spawner.oauth_roles
Spawner.options_form
Spawner.options_from_form
Spawner.poll()
Spawner.poll_interval
Spawner.port
Spawner.post_stop_hook
Spawner.pre_spawn_hook
Spawner.ssl_alt_names
Spawner.ssl_alt_names_include_local
Spawner.start()
Spawner.start_timeout
Spawner.stop()
Spawner.template_namespace()
LocalProcessSpawner
LocalProcessSpawner
LocalProcessSpawner.args
LocalProcessSpawner.auth_state_hook
LocalProcessSpawner.cmd
LocalProcessSpawner.consecutive_failure_limit
LocalProcessSpawner.cpu_guarantee
LocalProcessSpawner.cpu_limit
LocalProcessSpawner.debug
LocalProcessSpawner.default_url
LocalProcessSpawner.disable_user_config
LocalProcessSpawner.env_keep
LocalProcessSpawner.environment
LocalProcessSpawner.http_timeout
LocalProcessSpawner.hub_connect_url
LocalProcessSpawner.interrupt_timeout
LocalProcessSpawner.ip
LocalProcessSpawner.kill_timeout
LocalProcessSpawner.mem_guarantee
LocalProcessSpawner.mem_limit
LocalProcessSpawner.notebook_dir
LocalProcessSpawner.oauth_roles
LocalProcessSpawner.options_form
LocalProcessSpawner.options_from_form
LocalProcessSpawner.poll_interval
LocalProcessSpawner.popen_kwargs
LocalProcessSpawner.port
LocalProcessSpawner.post_stop_hook
LocalProcessSpawner.pre_spawn_hook
LocalProcessSpawner.shell_cmd
LocalProcessSpawner.ssl_alt_names
LocalProcessSpawner.ssl_alt_names_include_local
LocalProcessSpawner.start_timeout
LocalProcessSpawner.term_timeout
- Module:
- Proxies
- Module:
jupyterhub.proxy
Proxy
Proxy
Proxy.add_all_services()
Proxy.add_all_users()
Proxy.add_hub_route()
Proxy.add_route()
Proxy.add_service()
Proxy.add_user()
Proxy.check_routes()
Proxy.delete_route()
Proxy.delete_service()
Proxy.delete_user()
Proxy.extra_routes
Proxy.get_all_routes()
Proxy.get_route()
Proxy.should_start
Proxy.start()
Proxy.stop()
Proxy.validate_routespec()
ConfigurableHTTPProxy
ConfigurableHTTPProxy
ConfigurableHTTPProxy.api_url
ConfigurableHTTPProxy.auth_token
ConfigurableHTTPProxy.check_running_interval
ConfigurableHTTPProxy.command
ConfigurableHTTPProxy.concurrency
ConfigurableHTTPProxy.debug
ConfigurableHTTPProxy.extra_routes
ConfigurableHTTPProxy.pid_file
ConfigurableHTTPProxy.should_start
- Module:
- Users
- Services
- Services Authentication
- Module:
jupyterhub.services.auth
HubAuth
HubAuth
HubAuth.api_token
HubAuth.api_url
HubAuth.base_url
HubAuth.cache_max_age
HubAuth.certfile
HubAuth.check_scopes()
HubAuth.client_ca
HubAuth.cookie_cache_max_age
HubAuth.cookie_options
HubAuth.get_session_id()
HubAuth.get_token()
HubAuth.get_user()
HubAuth.hub_host
HubAuth.hub_prefix
HubAuth.keyfile
HubAuth.login_url
HubAuth.oauth_scopes
HubAuth.user_for_cookie()
HubAuth.user_for_token()
HubOAuth
HubOAuth
HubOAuth.api_token
HubOAuth.api_url
HubOAuth.base_url
HubOAuth.cache_max_age
HubOAuth.certfile
HubOAuth.clear_cookie()
HubOAuth.client_ca
HubOAuth.cookie_name
HubOAuth.cookie_options
HubOAuth.generate_state()
HubOAuth.get_next_url()
HubOAuth.get_state_cookie_name()
HubOAuth.hub_host
HubOAuth.hub_prefix
HubOAuth.keyfile
HubOAuth.login_url
HubOAuth.oauth_authorization_url
HubOAuth.oauth_client_id
HubOAuth.oauth_redirect_uri
HubOAuth.oauth_scopes
HubOAuth.oauth_token_url
HubOAuth.set_cookie()
HubOAuth.set_state_cookie()
HubOAuth.state_cookie_name
HubOAuth.token_for_code()
HubAuthenticated
HubOAuthenticated
HubOAuthCallbackHandler
- Module: