# LEM Edge Lifecycle Management - Component Router

> You are at https://api.litmus.io/lem/edge-lifecycle/agents.md.
> Parent: https://api.litmus.io/lem/agents.md
> Pick the sub-component matching your task and fetch only that file.

---

## What Edge Lifecycle Management is

LEM's per-edge fleet operations: deploying apps, backups, alerts, RBAC, licensing, certificates, HA, OAuth clients, logs across managed LE instances.

- Primary URL prefix: `{{LEM_URL}}/api/v1/...`
- Some sub-sections use `{{LEM_URL}}/mpcs/...` (Features / Applications launch)
- Auth: `X-AuthToken: {{LEM_AdminApiToken}}` (use `Authorization` header for /mpcs/ paths)

---

## Sub-components

| Sub-component | URL prefix | Scope | Fetch |
|---|---|---|---|
| Dashboard | `/api/v1/` | Project dashboards, deployment info, system time | /lem/edge-lifecycle/dashboard.md |
| Licenses | `/api/v1/device-license-pool/` | License pool: SKUs, summary, used, CSV import/export | /lem/edge-lifecycle/licenses.md |
| Edge Devices | `/api/v1/` | Per-device: details, metrics, raw data, services, backups, events, apps, license | /lem/edge-lifecycle/edge-devices.md |
| OAuth Clients | `/api/v1/device/{id}/oauth-clients` | Per-device OAuth clients: list, create, rename, regenerate secret, delete | /lem/edge-lifecycle/oauth-clients.md |
| Device HA | `/api/v1/device/{id}/ha` | High-availability pair: details, interfaces, configure, enable, disable | /lem/edge-lifecycle/device-ha.md |
| Log Forwarding | `/api/v1/device/{id}/log-forwarding/` | Per-device log forwarding: status, start, stop | /lem/edge-lifecycle/log-forwarding.md |
| Activation | `/api/v1/activation/`, `/zt/` | Zero-touch + activation approve/reject | /lem/edge-lifecycle/activation.md |
| Templates | `/api/v1/template/` | LEM-level config templates | /lem/edge-lifecycle/templates.md |
| Applications | `/api/v1/`, `/mpcs/` | Marketplace lookups + Launch app to device (async) | /lem/edge-lifecycle/applications.md |
| Certificates | `/api/v1/device-certificates/` | Per-device cert: get, issue, reset, upload | /lem/edge-lifecycle/certificates.md |
| AI/ML Models | `/api/v1/file/`, `/files/` | 3-step S3 upload, list, deploy to edge | /lem/edge-lifecycle/ai-ml-models.md |
| Remote Access | `/api/v1/wg/` | WireGuard peers / subnets / stats | /lem/edge-lifecycle/remote-access.md |
| Software Update | `/api/v1/async-task/` | Async-task subtask history | /lem/edge-lifecycle/software-update.md |
| Events | `/api/v1/loopedge-events/` | System events + per-device events | /lem/edge-lifecycle/events.md |
| Edge Logs | `/api/v1/edge-logs/` | Query edge logs, hits, statistics | /lem/edge-lifecycle/edge-logs.md |
| Audit Logs | `/api/v1/logs/v2` | Company audit records, categories, export | /lem/edge-lifecycle/audit-logs.md |
| Alerts | `/api/v1/project/` | Project triggers, notification actions, incidents | /lem/edge-lifecycle/alerts.md |
| Platform Rules | `/api/v1/platform-rule/`, `/api/v1/project/platform-rule` | Project-level platform rules and their notifications | /lem/edge-lifecycle/platform-rules.md |
| Jobs | `/api/v1/batchdm/` | Batch DM device jobs | /lem/edge-lifecycle/jobs.md |
| Features (Marketplace Catalog) | `/mpcs/` | Manage marketplace: catalogs, releases, registries | /lem/edge-lifecycle/features.md |
| Settings | `/api/v1/project/` | Project settings: timezone, retention, MQTT creds, members | /lem/edge-lifecycle/settings.md |
| RBAC | `/api/v1/loopedge-user/` | Per-edge user management (NOT LEM admin users) | /lem/edge-lifecycle/rbac.md |

---

## Quick path

| Keywords | Fetch |
|---|---|
| "list edges in a project" | /lem/edge-lifecycle/edge-devices.md |
| "deploy app to edge" (chain) | /workflows/deploy-app-lem.md |
| "back up an edge from LEM" (chain) | /workflows/backup-restore-edge.md |
| "create alert with action template" (chain) | /workflows/create-project-alert.md |
| "zero-touch register edge" (chain) | /workflows/provision-zero-touch.md |
| "upload AI/ML model to LEM" (chain) | /workflows/upload-ml-model-lem.md |
| "license SKU", "license pool" | /lem/edge-lifecycle/licenses.md |
| "device cert", "issue cert to edge" | /lem/edge-lifecycle/certificates.md |
| "WireGuard peer", "remote tunnel" | /lem/edge-lifecycle/remote-access.md |
| "marketplace catalog admin" | /lem/edge-lifecycle/features.md |
| "RBAC on the edge itself" | /lem/edge-lifecycle/rbac.md |
| "HA pair", "high availability" | /lem/edge-lifecycle/device-ha.md |
| "edge OAuth client", "client secret for an edge" | /lem/edge-lifecycle/oauth-clients.md |
| "edge logs", "log hits", "log statistics" | /lem/edge-lifecycle/edge-logs.md |
| "audit records", "audit export" | /lem/edge-lifecycle/audit-logs.md |
| "platform rule notifications" | /lem/edge-lifecycle/platform-rules.md |

---

## RBAC note

`/lem/edge-lifecycle/rbac.md` manages users on the LE instance itself (the loopedge user table). To manage who can log into LEM, see /lem/admin-console/admin-console-settings.md instead.

---

## When to back out

| Task | Fetch |
|---|---|
| LEM admin / instance-wide config | /lem/admin-console/agents.md |
| DT2 asset models (fleet-wide) | /lem/digital-twins.md |
| Individual edge operations (no LEM) | /le/agents.md |
| Not in Edge Lifecycle at all | back out to /lem/agents.md |
