Manager
psengine.fusion.fusion_mgr.FusionMgr
¶
Manages requests for Recorded Future Fusion files.
PARAMETER | DESCRIPTION |
---|---|
rf_token
|
Recorded Future API token.
TYPE:
|
Source code in psengine/fusion/fusion_mgr.py
get_files
¶
get_files(
file_paths: Union[str, list[str]],
) -> list[FileGetOut]
Get one or more files.
PARAMETER | DESCRIPTION |
---|---|
file_paths
|
One or more paths to fetch
TYPE:
|
Endpoint
/fusion/v3/files/
RAISES | DESCRIPTION |
---|---|
ValidationError
|
If any supplied parameter is of incorrect type. |
FusionGetFileError
|
If API error occurs. |
RETURNS | DESCRIPTION |
---|---|
list[FileGetOut]
|
A FusionFile object with name and content of the file |
Source code in psengine/fusion/fusion_mgr.py
post_file
¶
post_file(
file_path: Path, fusion_path: str
) -> list[FileInfoOut]
Post a file.
PARAMETER | DESCRIPTION |
---|---|
file_path
|
Path of the local file
TYPE:
|
fusion_path
|
Path of the fusion file
TYPE:
|
Endpoint
/fusion/v3/files/
RAISES | DESCRIPTION |
---|---|
ValidationError
|
If any supplied parameter is of incorrect type. |
FusionPostFileError
|
If API error occurs or the input file cannot be read. |
RETURNS | DESCRIPTION |
---|---|
list[FileInfoOut]
|
Info of the file that have been posted |
Source code in psengine/fusion/fusion_mgr.py
delete_files
¶
delete_files(
file_paths: Union[str, list[str]],
) -> list[FileDeleteOut]
Delete one or more files.
PARAMETER | DESCRIPTION |
---|---|
file_paths
|
One or more paths to delete
TYPE:
|
Endpoint
/fusion/v3/files/
RAISES | DESCRIPTION |
---|---|
ValidationError
|
If any supplied parameter is of incorrect type. |
FusionDeleteFileError
|
If API error occurs. |
RETURNS | DESCRIPTION |
---|---|
list[FileDeleteOut]
|
A list of deleted files. |
Source code in psengine/fusion/fusion_mgr.py
head_files
¶
head_files(
file_paths: Union[str, list[str]],
) -> list[FileHeadOut]
Head of one or more files.
PARAMETER | DESCRIPTION |
---|---|
file_paths
|
One or more paths to check
TYPE:
|
Endpoint
/fusion/v3/files/
RAISES | DESCRIPTION |
---|---|
ValidationError
|
If any supplied parameter is of incorrect type. |
FusionHeadFileError
|
If API error occurs. |
RETURNS | DESCRIPTION |
---|---|
list[FileHeadOut]
|
List of headers info for the requested files. |
Source code in psengine/fusion/fusion_mgr.py
list_dir
¶
list_dir(file_path: str) -> DirectoryListOut
Get directory, subdirectory and file information of a path.
PARAMETER | DESCRIPTION |
---|---|
file_path
|
Directory to list
TYPE:
|
Endpoint
/fusion/v3/files/directory
RAISES | DESCRIPTION |
---|---|
ValidationError
|
If any supplied parameter is of incorrect type. |
FusionListDirError
|
If API error occurs. |
RETURNS | DESCRIPTION |
---|---|
DirectoryListOut
|
The tree structure. |