original_docstring: 
      Retrieves list of domains sets from QRadar service.
      If you do not have the System Administrator or Security Administrator permissions,
      then for each domain assigned to your security profile you can only view the values
      for the id and name fields. All other values return null.
      possible arguments:
      - domain_id: Retrieves details of the specific domain that corresponds to the ID given.
      - range: Range of offenses to return (e.g.: 0-20, 3-5, 3-3).
      - filter: Query filter to filter results returned by QRadar service. see
                https://www.ibm.com/support/knowledgecenter/SS42VS_SHR/com.ibm.qradarapi.doc/c_rest_api_filtering.html
                for more details.
      - fields: If used, will filter all fields except for the specified ones.
                Use this parameter to specify which fields you would like to get back in the
                response. Fields that are not explicitly named are excluded.
      Args:
          client (Client): QRadar client to perform the API call.
          args (Dict): Demisto args.
  
      Returns:
          CommandResults.
      
docstring: Retrieves list of domains sets from QRadar service.
  If you do not have the System Administrator or Security Administrator permissions,
  then for each domain assigned to your security profile you can only view the values
  for the id and name fields. All other values return null.
  possible arguments:
  domain_id: Retrieves details of the specific domain that corresponds to the ID given.
  range: Range of offenses to return .
  filter: Query filter to filter results returned by QRadar service.
docstring_tokens: Retrieves list of domains sets from QRadar service . If you do not have the System Administrator or Security Administrator permissions then for each domain assigned to your security profile you can only view the values for the id and name fields . All other values return null . possible arguments : domain_id : Retrieves details of the specific domain that corresponds to the ID given . range : Range of offenses to return . filter : Query filter to filter results returned by QRadar service .
code: def qradar_domains_list_command(client: Client, args: Dict) -> CommandResults:
      """
      Retrieves list of domains sets from QRadar service.
      If you do not have the System Administrator or Security Administrator permissions,
      then for each domain assigned to your security profile you can only view the values
      for the id and name fields. All other values return null.
      possible arguments:
      - domain_id: Retrieves details of the specific domain that corresponds to the ID given.
      - range: Range of offenses to return (e.g.: 0-20, 3-5, 3-3).
      - filter: Query filter to filter results returned by QRadar service. see
                https://www.ibm.com/support/knowledgecenter/SS42VS_SHR/com.ibm.qradarapi.doc/c_rest_api_filtering.html
                for more details.
      - fields: If used, will filter all fields except for the specified ones.
                Use this parameter to specify which fields you would like to get back in the
                response. Fields that are not explicitly named are excluded.
      Args:
          client (Client): QRadar client to perform the API call.
          args (Dict): Demisto args.
  
      Returns:
          CommandResults.
      """
      # backward compatibility for domain_id argument named is 'id' in QRadar v2.
      domain_id = args.get('domain_id') or args.get('id')
      range_ = f'''items={args.get('range', DEFAULT_RANGE_VALUE)}'''
      filter_ = args.get('filter')
      fields = args.get('fields')
  
      response = client.domains_list(domain_id, range_, filter_, fields)
      outputs = sanitize_outputs(response, DOMAIN_OLD_NEW_MAP)
  
      return CommandResults(
          readable_output=tableToMarkdown('Domains List', outputs, removeNull=True),
          outputs_prefix='QRadar.Domains',
          outputs_key_field='ID',
          outputs=outputs,
          raw_response=response
      )
code_tokens: def qradar_domains_list_command ( client : Client , args : Dict ) -> CommandResults : domain_id = args . get ( 'domain_id' ) or args . get ( 'id' ) range_ = f'''items={args.get('range', DEFAULT_RANGE_VALUE)}''' filter_ = args . get ( 'filter' ) fields = args . get ( 'fields' ) response = client . domains_list ( domain_id , range_ , filter_ , fields ) outputs = sanitize_outputs ( response , DOMAIN_OLD_NEW_MAP ) return CommandResults ( readable_output = tableToMarkdown ( 'Domains List' , outputs , removeNull = True ) , outputs_prefix = 'QRadar.Domains' , outputs_key_field = 'ID' , outputs = outputs , raw_response = response )
short_docstring: Retrieves list of domains sets from QRadar service.
short_docstring_tokens: Retrieves list of domains sets from QRadar service .
comment: """
      Retrieves list of domains sets from QRadar service.
      If you do not have the System Administrator or Security Administrator permissions,
      then for each domain assigned to your security profile you can only view the values
      for the id and name fields. All other values return null.
      possible arguments:
      - domain_id: Retrieves details of the specific domain that corresponds to the ID given.
      - range: Range of offenses to return (e.g.: 0-20, 3-5, 3-3).
      - filter: Query filter to filter results returned by QRadar service. see
                https://www.ibm.com/support/knowledgecenter/SS42VS_SHR/com.ibm.qradarapi.doc/c_rest_api_filtering.html
                for more details.
      - fields: If used, will filter all fields except for the specified ones.
                Use this parameter to specify which fields you would like to get back in the
                response. Fields that are not explicitly named are excluded.
      Args:
          client (Client): QRadar client to perform the API call.
          args (Dict): Demisto args.
  
      Returns:
          CommandResults.
      """$SEP$# backward compatibility for domain_id argument named is 'id' in QRadar v2.