code: def shutdown(self, force=False):
          
          body = {'force': force}
          self.manager.session.post(self.uri + '/operations/shutdown', body=body)
docs: Shut down and power off the HMC represented by this Console object.
  
          While the HMC is powered off, any Python resource objects retrieved
          from this HMC may raise exceptions upon further use.
  
          In order to continue using Python resource objects retrieved from this
          HMC, the HMC needs to be started again (e.g. by powering it on
          locally). Once the HMC is available again, Python resource objects
          retrieved from that HMC can continue to be used.
          An automatic re-logon will be performed under the covers, because the
          HMC startup invalidates the currently used HMC session.
  
          Authorization requirements:
  
          * Task permission for the "Shutdown/Restart" task.
          * "Remote Shutdown" must be enabled on the HMC.
  
          Parameters:
  
            force (bool):
              Boolean controlling whether the shutdown operation is processed
              when users are connected (`True`) or not (`False`). Users in this
              sense are local or remote GUI users. HMC WS API clients do not
              count as users for this purpose.
  
          Raises:
  
            :exc:`~zhmcclient.HTTPError`
            :exc:`~zhmcclient.ParseError`
            :exc:`~zhmcclient.AuthError`
            :exc:`~zhmcclient.ConnectionError`