Manager
psengine.entity_lists.entity_list_mgr.EntityListMgr
¶
Manages requests for Recorded Future List API.
PARAMETER | DESCRIPTION |
---|---|
rf_token
|
Recorded Future API token.
TYPE:
|
Source code in psengine/entity_lists/entity_list_mgr.py
create
¶
create(
list_name: str, list_type: str = 'entity'
) -> EntityList
Create a new list.
PARAMETER | DESCRIPTION |
---|---|
list_name
|
List name to use for the new list.
TYPE:
|
list_type
|
List type. Supported types are documented in the List API support page.
TYPE:
|
Endpoint
list/create
RAISES | DESCRIPTION |
---|---|
ValidationError
|
If any supplied parameter is of incorrect type. |
ListApiError
|
If connection error occurs. |
RETURNS | DESCRIPTION |
---|---|
EntityList
|
EntityList object for the new list. |
Source code in psengine/entity_lists/entity_list_mgr.py
fetch
¶
fetch(list_: Union[str, tuple[str, str]]) -> EntityList
Get a list by its ID. Use this method to retrieve list info.
PARAMETER | DESCRIPTION |
---|---|
list_
|
List string ID or tuple of (name, type).
TYPE:
|
Endpoint
list/{list_id}/info
RAISES | DESCRIPTION |
---|---|
ValidationError
|
If any supplied parameter is of incorrect type. |
ListResolutionError
|
When |
ListApiError
|
If connection error occurs. |
RETURNS | DESCRIPTION |
---|---|
EntityList
|
RFList object for the given list ID. |
Source code in psengine/entity_lists/entity_list_mgr.py
search
¶
search(
list_name: Optional[str] = None,
list_type: Optional[str] = None,
max_results: int = DEFAULT_LIMIT,
) -> list[EntityList]
Search lists.
PARAMETER | DESCRIPTION |
---|---|
list_name
|
List name to search.
TYPE:
|
list_type
|
List type to filter by. Ignored if None.
TYPE:
|
max_results
|
Maximum number of lists to return.
TYPE:
|
Endpoint
list/search
RAISES | DESCRIPTION |
---|---|
ValidationError
|
If any supplied parameter is of incorrect type. |
ListApiError
|
If the list API call fails. |
RETURNS | DESCRIPTION |
---|---|
list[EntityList]
|
List of EntityList objects from |