class_docstr: Information about the backend H2O cluster.
  
  This object is available from ``h2o.cluster()`` or ``h2o.connection().cluster``, and its purpose is to provide
  basic information / manipulation methods for the underlying cluster.
class_docstr_tok: ["Information","about","the","backend","H2O","cluster",".","This","object","is","available","from","``","h2o.cluster","(",")","``","or","``","h2o.connection","(",")",".cluster","``",",","and","its","purpose","is","to","provide","basic","information","\/","manipulation","methods","for","the","underlying","cluster","."]
docstr: Shut down the server.
  
  This method checks if the H2O cluster is still running, and if it does shuts it down (via a REST API call).
  
  :param prompt: A logical value indicating whether to prompt the user before shutting down the H2O server.
docstr_tok: ["Shut","down","the","server",".","This","method","checks","if","the","H2O","cluster","is","still","running",",","and","if","it","does","shuts","it","down","(","via","a","REST","API","call",")",".",":","param","prompt",":","A","logical","value","indicating","whether","to","prompt","the","user","before","shutting","down","the","H2O","server","."]
code: def shutdown(self, prompt=False):
      """
      Shut down the server.
  
      This method checks if the H2O cluster is still running, and if it does shuts it down (via a REST API call).
  
      :param prompt: A logical value indicating whether to prompt the user before shutting down the H2O server.
      """
      if not self.is_running():
          return
      assert_is_type(prompt, bool)
      if prompt:
          question = (
              "Are you sure you want to shutdown the H2O instance running at %s (Y/N)? "
              % h2o.connection().base_url
          )
          response = input(question)
      else:
          response = "Y"
      if response.lower() in {"y", "yes"}:
          h2o.api("POST /3/Shutdown")
          h2o.connection().close()
  
imports: from h2o.utils.compatibility import *
  import json
  import re
  import sys
  import time
  import h2o
  from h2o.exceptions import H2OConnectionError, H2OServerError
  from h2o.display import H2OTableDisplay
  from h2o.schemas import H2OSchema
  from h2o.utils.typechecks import assert_is_type
  from h2o.utils.shared_utils import get_human_readable_bytes, get_human_readable_time
  from h2o.two_dim_table import H2OTwoDimTable
label_desc: Use image node_id 4 for calling the H2OCluster obj's underlying member method code with example usage: obj.shutdown(prompt) without return types