# aalmero/sepm-api architecture

> Architecture diagram of the GitHub repository aalmero/sepm-api, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aalmero/sepm-api
- Repository: https://github.com/aalmero/sepm-api

## Overview

sepm-api is a Python client for Symantec Endpoint Protection Manager’s REST API. A caller configures credentials and creates the manager client, then uses endpoint-specific methods to manage resources or retrieve results; those methods issue HTTP requests through a shared authenticated session. The README also identifies endpoint coverage broadly, including undocumented APIs. The graph preserves the major endpoint families, but most endpoint files were not sampled, so their individual calls into the session are not asserted. No repository database or persistent local store is shown.

Main entry points: [`sepm/__init__.py`](https://github.com/aalmero/sepm-api/blob/main/sepm/__init__.py) (Manager client), [`sepm/rest_api_session.py`](https://github.com/aalmero/sepm-api/blob/main/sepm/rest_api_session.py) (REST session), [`sepm/endpoints/administrators.py`](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/administrators.py) (Administrators), [`sepm/endpoints/computers.py`](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/computers.py) (Computers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client and transport"]
  node_manager["Manager client<br/>[__init__.py]"]
  node_config["Configuration<br/>[config.py]"]
  node_session["REST session"]
  node_errors["API errors<br/>[exceptions.py]"]
end

subgraph group_management["Management APIs"]
  node_administrators["Administrators<br/>[administrators.py]"]
  node_computers["Computers<br/>[computers.py]"]
  node_groups["Groups<br/>[groups.py]"]
  node_domains["Domains<br/>[domains.py]"]
  node_commands["Endpoint commands<br/>[commands.py]"]
  node_identity["Identity<br/>[identity.py]"]
end

subgraph group_security["Security and cloud APIs"]
  node_policies["Policies<br/>[policies.py]"]
  node_blacklist["Blacklist<br/>[blacklist.py]"]
  node_content["Content<br/>[content.py]"]
  node_cloud["Cloud enrollment<br/>[cloud.py]"]
  node_tdad["AD threat defense"]
  node_replication["Replication<br/>[replication.py]"]
  node_group_update["Group update provider"]
end

subgraph group_insights["Reporting APIs"]
  node_events["Events<br/>[events.py]"]
  node_statistics["Statistics<br/>[statistics.py]"]
  node_reporting["Reporting<br/>[reporting.py]"]
  node_notifications["Notifications<br/>[notifications.py]"]
  node_requested_files["Requested files<br/>[requested_files.py]"]
  node_version["Version<br/>[version.py]"]
end

node_caller(("Client caller"))
node_sepm_api{{"SEPM REST API"}}

node_caller -->|"creates client"| node_manager
node_manager -->|"uses defaults"| node_config
node_manager -.->|"creates session"| node_session
node_manager -.->|"exposes endpoint"| node_administrators
node_manager -.->|"exposes endpoint"| node_computers
node_manager -.->|"exposes endpoint"| node_groups
node_manager -.->|"exposes endpoint"| node_domains
node_manager -.->|"exposes endpoint"| node_commands
node_manager -.->|"exposes endpoint"| node_identity
node_manager -.->|"exposes endpoint"| node_policies
node_manager -.->|"exposes endpoint"| node_blacklist
node_manager -.->|"exposes endpoint"| node_content
node_manager -.->|"exposes endpoint"| node_cloud
node_manager -.->|"exposes endpoint"| node_tdad
node_manager -.->|"exposes endpoint"| node_replication
node_manager -.->|"exposes endpoint"| node_group_update
node_manager -.->|"exposes endpoint"| node_events
node_manager -.->|"exposes endpoint"| node_statistics
node_manager -.->|"exposes endpoint"| node_reporting
node_manager -.->|"exposes endpoint"| node_notifications
node_manager -.->|"exposes endpoint"| node_requested_files
node_manager -.->|"exposes endpoint"| node_version
node_administrators -->|"calls"| node_session
node_computers -->|"calls"| node_session
node_groups -->|"calls"| node_session
node_commands -->|"calls"| node_session
node_policies -->|"calls"| node_session
node_cloud -->|"calls"| node_session
node_tdad -->|"calls"| node_session
node_session -->|"sends HTTP"| node_sepm_api
node_session -->|"raises"| node_errors

click node_manager "https://github.com/aalmero/sepm-api/blob/main/sepm/__init__.py"
click node_config "https://github.com/aalmero/sepm-api/blob/main/sepm/config.py"
click node_session "https://github.com/aalmero/sepm-api/blob/main/sepm/rest_api_session.py"
click node_errors "https://github.com/aalmero/sepm-api/blob/main/sepm/exceptions.py"
click node_administrators "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/administrators.py"
click node_computers "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/computers.py"
click node_groups "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/groups.py"
click node_domains "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/domains.py"
click node_commands "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/commands.py"
click node_identity "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/identity.py"
click node_policies "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/policies.py"
click node_blacklist "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/blacklist.py"
click node_content "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/content.py"
click node_cloud "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/cloud.py"
click node_tdad "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/threat_defense_for_active_directory.py"
click node_replication "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/replication.py"
click node_group_update "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/group_update_provider.py"
click node_events "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/events.py"
click node_statistics "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/statistics.py"
click node_reporting "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/reporting.py"
click node_notifications "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/notifications.py"
click node_requested_files "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/requested_files.py"
click node_version "https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/version.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_manager,node_config,node_session,node_errors,node_caller toneBlue
class node_administrators,node_computers,node_groups,node_domains,node_commands,node_identity toneAmber
class node_policies,node_blacklist,node_content,node_cloud,node_tdad,node_replication,node_group_update,node_sepm_api toneMint
class node_events,node_statistics,node_reporting,node_notifications,node_requested_files,node_version toneRose
```

## Components

### Client and transport

- [Manager client](https://github.com/aalmero/sepm-api/blob/main/sepm/__init__.py): `sepm/__init__.py`
- [Configuration](https://github.com/aalmero/sepm-api/blob/main/sepm/config.py): `sepm/config.py`
- [REST session](https://github.com/aalmero/sepm-api/blob/main/sepm/rest_api_session.py): `sepm/rest_api_session.py`
- [API errors](https://github.com/aalmero/sepm-api/blob/main/sepm/exceptions.py): `sepm/exceptions.py`

### Management APIs

- [Administrators](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/administrators.py): `sepm/endpoints/administrators.py`
- [Computers](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/computers.py): `sepm/endpoints/computers.py`
- [Groups](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/groups.py): `sepm/endpoints/groups.py`
- [Domains](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/domains.py): `sepm/endpoints/domains.py`
- [Endpoint commands](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/commands.py): `sepm/endpoints/commands.py`
- [Identity](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/identity.py): `sepm/endpoints/identity.py`

### Security and cloud APIs

- [Policies](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/policies.py): `sepm/endpoints/policies.py`
- [Blacklist](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/blacklist.py): `sepm/endpoints/blacklist.py`
- [Content](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/content.py): `sepm/endpoints/content.py`
- [Cloud enrollment](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/cloud.py): `sepm/endpoints/cloud.py`
- [AD threat defense](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/threat_defense_for_active_directory.py): `sepm/endpoints/threat_defense_for_active_directory.py`
- [Replication](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/replication.py): `sepm/endpoints/replication.py`
- [Group update provider](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/group_update_provider.py): `sepm/endpoints/group_update_provider.py`

### Reporting APIs

- [Events](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/events.py): `sepm/endpoints/events.py`
- [Statistics](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/statistics.py): `sepm/endpoints/statistics.py`
- [Reporting](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/reporting.py): `sepm/endpoints/reporting.py`
- [Notifications](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/notifications.py): `sepm/endpoints/notifications.py`
- [Requested files](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/requested_files.py): `sepm/endpoints/requested_files.py`
- [Version](https://github.com/aalmero/sepm-api/blob/main/sepm/endpoints/version.py): `sepm/endpoints/version.py`

### Other components

- **Client caller**
- **SEPM REST API**

## Connections

- Client caller → Manager client: creates client (evidence: `sepm/__init__.py`)
- Manager client → Configuration: uses defaults (evidence: `sepm/__init__.py`)
- Manager client → REST session: creates session (evidence: `sepm/__init__.py`)
- Manager client → Administrators: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Computers: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Groups: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Domains: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Endpoint commands: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Identity: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Policies: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Blacklist: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Content: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Cloud enrollment: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → AD threat defense: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Replication: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Group update provider: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Events: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Statistics: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Reporting: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Notifications: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Requested files: exposes endpoint (evidence: `sepm/__init__.py`)
- Manager client → Version: exposes endpoint (evidence: `sepm/__init__.py`)
- Administrators → REST session: calls (evidence: `sepm/endpoints/administrators.py`)
- Computers → REST session: calls (evidence: `sepm/endpoints/computers.py`)
- Groups → REST session: calls (evidence: `sepm/endpoints/groups.py`)
- Endpoint commands → REST session: calls (evidence: `sepm/endpoints/commands.py`)
- Policies → REST session: calls (evidence: `sepm/endpoints/policies.py`)
- Cloud enrollment → REST session: calls (evidence: `sepm/endpoints/cloud.py`)
- AD threat defense → REST session: calls (evidence: `sepm/endpoints/threat_defense_for_active_directory.py`)
- REST session → SEPM REST API: sends HTTP (evidence: `sepm/rest_api_session.py`)
- REST session → API errors: raises (evidence: `sepm/rest_api_session.py`)
