code: def power_cycle(env, identifier):
      
  
      mgr = SoftLayer.HardwareManager(env.client)
      hw_id = helpers.resolve_id(mgr.resolve_ids, identifier, 'hardware')
  
      if not (env.skip_confirmations or
              formatting.confirm('This will power off the server with id %s. '
                                 'Continue?' % hw_id)):
          raise exceptions.CLIAbort('Aborted.')
  
      env.client['Hardware_Server'].powerCycle(id=hw_id)
docs: Power cycle a server.