code: def snapshot(name, suffix=None, connection=None, username=None, password=None):
      '''
      Takes a snapshot of a particular VM or by a UNIX-style wildcard.
  
      .. versionadded:: 2016.3.0
  
      :param connection: libvirt connection URI, overriding defaults
  
          .. versionadded:: 2019.2.0
      :param username: username to connect with, overriding defaults
  
          .. versionadded:: 2019.2.0
      :param password: password to connect with, overriding defaults
  
          .. versionadded:: 2019.2.0
  
      .. code-block:: yaml
  
          domain_name:
            virt.snapshot:
              - suffix: periodic
  
          domain*:
            virt.snapshot:
              - suffix: periodic
      '''
  
      return _virt_call(name, 'snapshot', 'saved', 'Snapshot has been taken', suffix=suffix,
                        connection=connection, username=username, password=passwordf snapshot(name, suffix=None, connection=None, username=None, password=None):
      '''
      Takes a snapshot of a particular VM or by a UNIX-style wildcard.
  
      .. versionadded:: 2016.3.0
  
      :param connection: libvirt connection URI, overriding defaults
  
          .. versionadded:: 2019.2.0
      :param username: username to connect with, overriding defaults
  
          .. versionadded:: 2019.2.0
      :param password: password to connect with, overriding defaults
  
          .. versionadded:: 2019.2.0
  
      .. code-block:: yaml
  
          domain_name:
            virt.snapshot:
              - suffix: periodic
  
          domain*:
            virt.snapshot:
              - suffix: periodic
      '''
  
      return _virt_call(name, 'snapshot', 'saved', 'Snapshot has been taken', suffix=suffix,
                        connection=connection, username=username, password=password)
docs: Takes a snapshot of a particular VM or by a UNIX-style wildcard.
  
      .. versionadded:: 2016.3.0
  
      :param connection: libvirt connection URI, overriding defaults
  
          .. versionadded:: 2019.2.0
      :param username: username to connect with, overriding defaults
  
          .. versionadded:: 2019.2.0
      :param password: password to connect with, overriding defaults
  
          .. versionadded:: 2019.2.0
  
      .. code-block:: yaml
  
          domain_name:
            virt.snapshot:
              - suffix: periodic
  
          domain*:
            virt.snapshot:
              - suffix: periodic