code: def restart_instance(self, instance):
          
          params = {'state': 'restarted'}
          url = '/instances/{}'.format(instance)
          self.patch_proto(url, params=params)
docs: Restarts a single instance.
  
          :param str instance: A Yamcs instance name.