code: def create_jdbc_resource(name, server=None, **kwargs):
      '''
      Create a JDBC resource
      '''
      defaults = {
          'description': '',
          'enabled': True,
          'id': name,
          'poolName': '',
          'target': 'server'
      }
  
      # Data = defaults + merge kwargs + poolname
      data = defaults
      data.update(kwargs)
  
      if not data['poolName']:
          raise CommandExecutionError('No pool name!')
  
      return _create_element(name, 'resources/jdbc-resource', data, serverf create_jdbc_resource(name, server=None, **kwargs):
      '''
      Create a JDBC resource
      '''
      defaults = {
          'description': '',
          'enabled': True,
          'id': name,
          'poolName': '',
          'target': 'server'
      }
  
      # Data = defaults + merge kwargs + poolname
      data = defaults
      data.update(kwargs)
  
      if not data['poolName']:
          raise CommandExecutionError('No pool name!')
  
      return _create_element(name, 'resources/jdbc-resource', data, server)
docs: Create a JDBC resource