def get_computers_with_policy_and_relay_list(api, configuration, api_version, api_exception, relay_list_id, policy_id):
    """ Search for computers that are assigned to a specific policy and relay list.

    :param api: The Deep Security API modules.
    :param configuration: Configuration object to pass to the api client.
    :param api_version: The version of the API to use.
    :param api_exception: The Deep Security API exception module.
    :param relay_list_id: The ID of the relay list.
    :param policy_id: The ID of the policy.
    :return: A Computers object that contains matching computers
    """

    # Set search criteria for platform
    policy_criteria = api.SearchCriteria()
    policy_criteria.field_name = "policyID"
    policy_criteria.numeric_test = "equal"
    policy_criteria.numeric_value = policy_id

    # Set search criteria for relay
    relay_criteria = api.SearchCriteria()
    relay_criteria.field_name = "relayListID"
    relay_criteria.numeric_test = "equal"
    relay_criteria.numeric_value = relay_list_id

    # Create the search filter
    search_filter = api.SearchFilter(None, [policy_criteria, relay_criteria])

    # Include the minimum information in the returned Computer objects
    expand = api.Expand(api.Expand.none)

    # Perform the search
    computers_api = api.ComputersApi(api.ApiClient(configuration))
    return computers_api.search_computers(api_version, search_filter=search_filter, expand=expand.list(), overrides=False)