4.7.4.4. System

Parsers for system objects.

axonius_api_client.parsers.system.parse_sizes(raw)[source]

Parse the disk usage metadata.

Parameters

raw (dict) –

Return type

dict

axonius_api_client.parsers.system.parse_instances(raw)[source]

Parse instance data to add more maths.

Parameters

raw – data returned from axonius_api_client.api.system.instances.Instances._get()

axonius_api_client.parsers.system.parse_cat_actions(raw)[source]

Parse the permission labels into a layered dict.

Parameters

raw (dict) – result from axonius_api_client.api.system.system_roles.SystemRoles._get_labels()

Return type

dict

axonius_api_client.parsers.system.parse_roles(roles)[source]

Parse roles permissions into a flat structure.

Parameters

roles (typing.List[dict]) – roles to parse

Return type

typing.List[dict]

axonius_api_client.parsers.system.parse_role(role)[source]

Parse a roles permissions into a flat structure.

Parameters

role (dict) – role to parse

Return type

dict

axonius_api_client.parsers.system.parse_role_perms(perms)[source]

Parse a roles permissions into a flat structure.

Parameters
  • role – role to parse

  • perms (dict) –

Return type

dict

axonius_api_client.parsers.system.parse_user(user, role_obj)[source]

Parse a user to add role and other info.

Parameters
  • user (dict) – user to parse

  • role_obj (dict) – role object associated with user

Return type

dict