Asset

AssetView

class grapl_analyzerlib.nodes.asset.AssetView(uid: int, node_key: str, graph_client: Any, node_types: Set[str], hostname: Optional[str] = None, asset_ip: Optional[List[IpAddressView]] = None, asset_processes: Optional[List[ProcessView]] = None, files_on_asset: Optional[List[FileView]] = None, **kwargs)

Predicate

Type

Description

node_key

string

A unique identifier for this node.

hostname

string

The hostname of this asset.

asset_processes

List[Process]

Processes associated with this asset.

get_hostname(cached=True) Optional[str]
classmethod node_schema() grapl_analyzerlib.schema.Schema
queryable

alias of grapl_analyzerlib.nodes.asset.AssetQuery

with_asset_ip(*asset_ips, cached=True)
with_asset_processes(*processes, cached=True)
with_files_on_asset(*files, cached=True)

AssetQuery

class grapl_analyzerlib.nodes.asset.AssetQuery
classmethod node_schema() grapl_analyzerlib.schema.Schema
with_asset_ip(*asset_ips: IpAddressQuery)
with_asset_processes(*asset_processes: ProcessQuery)
with_files_on_asset(*files_on_asset: FileQuery)
with_hostname(*, eq: Optional[StrOrNot] = None, contains: Optional[OneOrMany[StrOrNot]] = None, starts_with: Optional[StrOrNot] = None, ends_with: Optional[StrOrNot] = None, regexp: Optional[OneOrMany[StrOrNot]] = None, distance_lt: Optional[Tuple[str, int]] = None) grapl_analyzerlib.nodes.asset.AssetQuery