code: def stop(name, call=None):
      '''
      Stop a VM.
  
      .. versionadded:: 2016.3.0
  
      name
          The name of the VM to stop.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud -a stop my-vm
      '''
      if call != 'action':
          raise SaltCloudSystemExit(
              'The start action must be called with -a or --action.'
          )
  
      log.info('Stopping node %s', name)
  
      return vm_action(name, kwargs={'action': 'stop'}, call=callf stop(name, call=None):
      '''
      Stop a VM.
  
      .. versionadded:: 2016.3.0
  
      name
          The name of the VM to stop.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud -a stop my-vm
      '''
      if call != 'action':
          raise SaltCloudSystemExit(
              'The start action must be called with -a or --action.'
          )
  
      log.info('Stopping node %s', name)
  
      return vm_action(name, kwargs={'action': 'stop'}, call=call)
docs: Stop a VM.
  
      .. versionadded:: 2016.3.0
  
      name
          The name of the VM to stop.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud -a stop my-vm