4.7.4.1. Adapter schemas

Parsers for adapter schemas.

axonius_api_client.parsers.adapters.parse_adapters(raw)[source]

Parser to turn adapters metadata into a more friendly format.

Parameters

raw (dict) – the raw output from axonius_api_client.api.adapters.adapters.Adapters._get()

Return type

typing.List[dict]

axonius_api_client.parsers.adapters.parse_adapter(name, adapter)[source]

Parse a single adapter.

Parameters
  • name (str) – raw name of adapter (aws_adapter)

  • adapter (dict) – adapter meta data

Return type

dict

axonius_api_client.parsers.adapters.get_specific_name(config)[source]

Get the name of the specific schema for the current adapter.

Parameters

config (dict) – advanced settings schemas for current adapter

Return type

str

axonius_api_client.parsers.adapters.parse_cnxs(cnxs, adapter)[source]

Parse the connections metadata for this adapter.

Parameters
  • cnxs (typing.List[dict]) – connections of current adapter

  • adapter (dict) – current adapter metadata

Return type

typing.List[dict]

axonius_api_client.parsers.adapters.parse_cnx(cnx, adapter)[source]

Parse the connection metadata for this adapter.

Parameters
  • cnx (dict) – current connection

  • adapter (dict) – current adapter metadata

Return type

typing.List[dict]