check_circle Copied to clipboard for your AI Dev Agent!
smart_toy AI Dev Agent Ready (Cursor • Claude Code • Antigravity • Copilot) api REST + Webhook + FIDO2 / SmartKey ECDSA + Modbus TCP verified_user Release v1.0.76+ • 30+ Controllers • 170+ Endpoints

CES Enterprise API Reference &
AI Developer Agent Integration Blueprints

Feed these structured system prompts, request/response schemas, and complete pseudocode modules directly into your AI coding agent to build zero-shot integrations with the IEA Central Enterprise Server (CES.Api) across Pre-Flight Seam Scoring & Zero-Hardware Shadow-Clone Canaries, Auto-Expiring Compensating Immunity Clamps, Core Industrial IPAM, Cisco/Stratix Topology & 802.11 Wi-Fi Airspace, ServiceNow ITSM/CMDB, SIEM/SOAR, 6-Hypervisor Pre-Update Snapshots, Dynamic Switch NAC (<400ms), OT PAM, Offline FIDO2 / SmartKey Pro v2, and Tamper-Evident ECDSA P-256 Merkle Dossiers (ISA/IEC 62443, EU CRA, NIS2 & Cyber-Insurance).

download Download Raw Markdown (AGENTS.md / CLAUDE.md) code_blocks 8 End-to-End Pseudocode Use Cases Manage_Search Search 155+ API Endpoints
:5444 / :5050
CES HTTPS (TLS 1.3) & HTTP Ports
X-Api-Key
SHA-256 Northbound Headless Auth
CHG-xxxxx
Mandatory Headless Safety Guardrail
< 400ms
Dynamic Switch TCAM Reconcile SLA
6 Hypervisors
Disk-Only + VSS Snapshot API
:502 / :1502
PLC / SoftPLC Modbus TCP Coils

Master System Prompt for Your AI Dev Agent

Paste this block into your project's AGENTS.md, CLAUDE.md, or .cursorrules file before asking your AI agent to write ServiceNow scripts, Python/C#/TypeScript microservices, or SOAR playbooks against CES.Api.

vpn_key 1. Northbound Headless API Key

Used by ServiceNow ITSM/CMDB, SIEM/SOAR playbooks, and unattended CI/CD pipelines. Grants full administrative scope across sites.

X-Api-Key: <your-ces-api-key>

badge 2. Interactive Operator Bearer Token

Issued via POST /api/auth/login. Enforces RBAC role (Admin, SiteAdmin, Operator, Viewer) and AD/Entra ID inherited sites & vaults.

Authorization: Bearer <session-token>

health_and_safety 3. Industrial Safety Guardrail

Required whenever a headless caller (X-Api-Key) invokes a mutating/destructive action (patch dispatch, reboot, remote script). Verified against active Cron windows.

X-Change-Ticket: CHG-104920
CES_AI_AGENT_SYSTEM_PROMPT.md (Copy & Feed to Your AI Coding Assistant)
# SYSTEM CONTEXT: IEA Central Enterprise Server (CES.Api v1.0.54) Integration Rules

You are integrating an external enterprise system (ServiceNow ITSM/CMDB/VR, SIEM/SOAR, SCADA HMI, Hypervisor Orchestrator, or custom Python/C#/TypeScript automation) with the IEA Central Enterprise Server (CES.Api).

## 1. Base URLs & Network Topology (Purdue Levels 1–4)
- Central Enterprise Server (CES - L4): https://192.168.5.102:5444 (or http://192.168.5.102:5050)
- Site Relay Server (SRS - L3 DMZ):     https://<srs-host>:5443 (or http://<srs-host>:5051)
- PLC / SoftPLC Modbus TCP (L2/L3):     <srs-host>:502 (or 1502)
- OpenAPI / Swagger JSON Schema:        https://192.168.5.102:5444/swagger/v1/swagger.json
- Root CA Certificate Bootstrap:        GET {CES_BASE_URL}/certs/root.cer (DER/PEM X.509 Root CA)
- Always parameterize CES_BASE_URL (defaulting to https://192.168.5.102:5444); never hardcode localhost.

## 2. Unified Dual-Authentication & Industrial Safety Guardrails
1. Headless Northbound API Key (ServiceNow, SIEM/SOAR, Automation):
   - Header: X-Api-Key: <northbound-api-key>
   - Resolves to CallerType = "ServiceNowServiceAccount", CallerRole = "Admin", IsHeadless = true.
2. Interactive Session Bearer Token (Portals & Custom UIs):
   - Obtain via POST /api/auth/login with { "email": "...", "password": "..." }.
   - Header: Authorization: Bearer <token>
3. Mandatory Headless Safety Interlock (IndustrialSafetyGuardrail):
   - Header: X-Change-Ticket: CHG-<AlphanumericId> (Regex: ^CHG-[A-Za-z0-9_-]+$, e.g., CHG-104920).
   - CRITICAL RULE: When calling destructive or state-changing endpoints (patch dispatch, reboot, remote script execution) with X-Api-Key (IsHeadless == true), CES verifies:
     (a) X-Change-Ticket header matches ^CHG-[A-Za-z0-9_-]+$, AND
     (b) The target endpoint's Maintenance Zone (GroupId) is currently INSIDE an active Cron Maintenance Window (unless "bypassMaintenanceWindow": true is passed on non-disruptive scheduled/interactive jobs via /api/jobs/run or /api/jobs/schedules).
   - If outside an active Maintenance Window without bypass, CES returns HTTP 403/409 with SafetyEvaluationResult:
     { "isPermitted": false, "requiresChangeTicket": true, "requiresMaintenanceWindow": true, "isInsideMaintenanceWindow": false }
   - To stage patches 24/7 outside a maintenance window with zero plant impact, pass "stageOnly": true to POST /api/patching/dispatch (dispatches STAGE_PATCH to C:\IEA_Staging\Patches).

## 3. Core Operational & Data Sovereignty Invariants
- Core Industrial IPAM & Dynamic Cisco/Stratix Physical + VLAN Connectivity (v1.0.54): Configure & trigger Purdue L3 SRS.Service Cisco/Stratix switch crawls (CDP, per-VLAN SNMPv2c @<vlanId> & SNMPv3 contextName="vlan-<id>" CAM tables, Switch ARP caches, and IOS XE RESTCONF) via GET/PUT /api/ipam/sites/{siteId}/crawl-config and POST /api/ipam/sites/{siteId}/crawl (honoring Fragile OT Exclusions). Query /24 & /16 paginated heatmaps via GET /api/ipam/sites/{siteId}/subnets/{subnetId}/grid?page=1&pageSize=256, manage static IP reservations via /api/ipam/sites/{siteId}/reservations, run 2-step CSV DryRun/commit imports via POST /api/ipam/sites/{siteId}/import-csv, sync ServiceNow cmdb_ci_ip_network & cmdb_ci_ip_address via POST /api/ipam/sites/{siteId}/servicenow-sync, render physical/VLAN connectivity diagrams via GET /api/ipam/sites/{siteId}/topology?mode=physical|vlan, pin Known-Good Cabling Baselines via POST /api/ipam/sites/{siteId}/baseline/pin, and enforce 1-click DynamicQuarantine (DENY ACL at Seq=500) on cabling drift via POST /api/ipam/sites/{siteId}/drifts/{driftId}/quarantine.
- Cryptographic Rolling mTLS, ECDSA P-256 Canonical Signing & Shared Update Immunity (v1.0.51–v1.0.53): One-time rolling enrollment tokens, strict X.509 mTLS verification (MtlsNode cannot be spoofed via Bearer JWTs), canonical ECDSA P-256 (SHA-256) job & .ieaupgrade manifest signatures, and cross-site bad-update shared immunity circuit breakers.
- Standard DNS Governance, OS Resolver Cache Polling, Real-Time ETW Process Rollup & Multi-Stage Async Firewall Validation (v1.0.49): Configure hierarchical DNS policies (Endpoint -> Site -> Global) via GET/PUT /api/fleet/dns/policy ("mode": "PeriodicCache" | "ContinuousEtw" | "Disabled", "continuousCaptureDurationMinutes", "appendToKnownExternalDestinations"). Query per-endpoint DNS posture, deduplicated historical query rollup, and Known External Destinations (with live "firewallStatus": "NotAllowed" | "UpdatingOnAgent" | "AllowedValidated") via GET /api/fleet/endpoints/{id}/dns. Authorize any DNS destination in Host Windows Firewall & CMDB across Endpoint, Group, Site, or Global scope via POST /api/fleet/endpoints/{id}/dns/allow-in-firewall, and dispatch active name-resolution hardening ("ApplyHardeningBaseline", "DisableLlmnr", "DisableNetbios", "DisableMdns", "DisableWpad", "FlushDnsCache", "AddHostsEntry", "RemoveHostsEntry", "RestoreDefaultHosts") at Endpoint, Group, Site, or Global scope via POST /api/fleet/endpoints/{id}/dns/remediate.
- Read-Only Multi-Vendor OT Firewall Integration & 6-File CSV Reconciliation (v1.0.45): Register and audit Palo Alto PAN-OS, Fortinet FortiGate, Cisco Secure Firewall (FTD/ASA), Check Point, Hirschmann EAGLE40, and Moxa EDR-G9010 firewalls via /api/firewalls/devices, /api/firewalls/devices/{id}/sync, /api/firewalls/devices/{id}/import-csv, and GET /api/firewalls/reconciliation (Matched, MissingOnFirewall, UnexpectedOnFirewall, OverlyPermissiveOnFirewall).
- Scheduled Jobs & Interactive User-Session Execution (v1.0.40): Schedule one-time ("scheduledForUtc") or recurring CRON ("cronExpression") jobs for an Endpoint or MaintenanceZone via /api/jobs/schedules or /api/jobs/run. Built-in interactive templates: "system-popup-msgbox" (native Win32 WTSSendMessageW operator modal popup across active sessions) and "system-start-interactive-app" (WTS DuplicateTokenEx + CreateProcessAsUserW into winsta0\default).
- CMDB Hardware Manual Override Lock (🔒): Updating asset specs via PUT /api/cmdb/inventory/{machineId}/hardware sets hardwareManualOverride = true so background WMI telemetry and offline IEEE MAC OUI sweeps never overwrite curated specs (pass "resetToAuto": true to unlock).
- Pre-Update VM Snapshots: Always use Disk-Only + Guest VSS Quiesce ("includeMemoryState": false, "quiesceGuestVss": true) via POST /api/virtualization/snapshots/take to prevent Active Directory USN rollback or SQL/Historian split-brain. Signing off a window as "Validated" arms a 24-hour snapshot auto-delete timer; "ValidationFailed" freezes deletion and raises an on-premises Asset INC.
- Sovereign Service Desk Queues: Asset INC and Site REQ tickets (including OT PAM External Account rotation REQs) are locked to SiteQueue (neverLeavesPremises = true). Only Admin/SiteAdmin can promote tickets to PLATFORM_INC or DEV_REQ, which runs SanitizeForCloud() to strip all IPs, hostnames, and usernames.

8 Enterprise Use Cases & Complete Pseudocode Blueprints

Select an integration scenario below. Each blueprint includes a ready-to-send prompt and complete state-machine pseudocode that your AI coding assistant can translate into Python, C#, TypeScript, PowerShell, or ServiceNow Flow Designer in one shot.

Use Case 1: ServiceNow ITSM / CMDB Bi-Directional Sync, Offline MAC OUI & Change-Gated Patching

GET /api/cmdb/inventory PUT /api/cmdb/inventory/{id}/hardware POST /api/cmdb/firewall-policies/sync-servicenow POST /api/patching/dispatch
🤖 Prompt to Feed Your AI Dev Agent
"Write a ServiceNow Integration / Python orchestration module against CES.Api (https://192.168.5.102:5444) using X-Api-Key. It must: (1) trigger an offline IEEE MAC OUI vendor evaluation on CES, (2) pull the flattened 50+ attribute CMDB inventory from GET /api/cmdb/inventory, (3) push curated asset metadata back to PUT /api/cmdb/inventory/{machineId}/hardware so CES locks hardwareManualOverride = true, (4) synchronize authorized cross-network firewall policy CIs via POST /api/cmdb/firewall-policies/sync-servicenow, and (5) dispatch an approved Windows KB patch via POST /api/patching/dispatch with X-Change-Ticket: CHG-104920, automatically falling back to stageOnly: true (STAGE_PATCH) if the target zone is currently outside its maintenance window."
pseudocode_uc1_servicenow_cmdb_and_patching.py
# ============================================================================
# MODULE 1: ServiceNow CMDB Bi-Directional Sync & Change-Gated Patching
# ============================================================================

CONFIG = {
    "CES_BASE_URL": "https://192.168.5.152:5444",
    "API_KEY": env("CES_NORTHBOUND_API_KEY"),
    "CA_CERT_PATH": "./certs/ces_root_ca.cer"
}

HEADERS_BASE = {
    "X-Api-Key": CONFIG["API_KEY"],
    "Content-Type": "application/json",
    "Accept": "application/json"
}

function sync_cmdb_and_dispatch_patch(site_id, target_machine_id, kb_number, snow_change_ticket):
    # STEP 1: Trigger 100% Offline IEEE MAC OUI Vendor Resolution on CES (38,600+ prefixes)
    # Populates Manufacturer from mac-oui-vendors.json while skipping hardwareManualOverride == true
    HTTP.POST(f"{CONFIG.CES_BASE_URL}/api/cmdb/mac-oui/evaluate", headers = HEADERS_BASE)

    # STEP 2: Pull Flattened 50+ Attribute CMDB Inventory for the Site
    inventory_resp = HTTP.GET(
        url = f"{CONFIG.CES_BASE_URL}/api/cmdb/inventory?siteId={site_id}&includeUnmanaged=true",
        headers = HEADERS_BASE
    )
    assert inventory_resp.status == 200
    for asset in inventory_resp.json():
        upsert_servicenow_cmdb_ci(
            machine_id          = asset.machineId,
            hostname            = asset.hostname,
            custom_label        = asset.customLabel,
            ip_address          = asset.ipAddress,
            mac_address         = asset.macAddress,
            manufacturer        = asset.manufacturer,
            model               = asset.model,
            serial_number       = asset.serialNumber,
            bios_uuid           = asset.biosUuid,
            os_name             = asset.osName,
            esu_status          = asset.esuStatus,
            iec62443_sl_score   = asset.iec62443Score,
            patch_window_status = asset.patchComplianceState, # "ToBeScheduled" | "Scheduled" | "Missing"
            is_manual_override  = asset.hardwareManualOverride
        )

    # STEP 3: Curate & Lock Hardware Metadata from Master Asset Registry (🔒 Manual Override)
    # Sets hardwareManualOverride = true so WMI telemetry / OUI sweeps never overwrite curated specs
    HTTP.PUT(
        url = f"{CONFIG.CES_BASE_URL}/api/cmdb/inventory/{target_machine_id}/hardware",
        headers = HEADERS_BASE,
        json = {
            "customLabel": "PLC-PACKAGING-HMI-01",
            "manufacturer": "Rockwell Automation / Allen-Bradley",
            "model": "VersaView 6300B Industrial Box PC",
            "serialNumber": "RA-6300B-994812",
            "assetClass": "HMI",
            "operationalRole": "Primary Packaging Line Operator Station",
            "businessCriticality": "Tier-1 Mission Critical",
            "purdueLevel": "Level 2",
            "department": "Body & Stamping Assembly",
            "locationCode": "BLDG-4-BAY-12",
            "supportGroup": "OT-Controls-Engineering",
            "resetToAuto": false
        }
    )

    # STEP 4: Bi-Directionally Synchronize Authorized Cross-Network Firewall Policies
    # Syncs u_cmdb_ci_firewall_policy CIs linked via 'Governed by::Governs' to cmdb_ci_appl
    HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/cmdb/firewall-policies/sync-servicenow",
        headers = HEADERS_BASE,
        json = { "siteId": site_id, "pushPendingToServiceNow": true }
    )

    # STEP 5: Dispatch Change-Gated Patch (With Automatic Pre-Staging Fallback)
    mutation_headers = { **HEADERS_BASE, "X-Change-Ticket": snow_change_ticket } # e.g. "CHG-104920"
    dispatch_resp = HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/patching/dispatch",
        headers = mutation_headers,
        json = { "machineId": target_machine_id, "kbNumber": kb_number, "stageOnly": false, "autoReboot": false }
    )

    if dispatch_resp.status in [403, 409]:
        guardrail = dispatch_resp.json()
        if guardrail.requiresMaintenanceWindow and not guardrail.isInsideMaintenanceWindow:
            # Outside maintenance window -> Pre-stage binary to C:\IEA_Staging\Patches immediately
            stage_resp = HTTP.POST(
                url = f"{CONFIG.CES_BASE_URL}/api/patching/dispatch",
                headers = mutation_headers,
                json = { "machineId": target_machine_id, "kbNumber": kb_number, "stageOnly": true, "autoReboot": false }
            )
            return { "status": "PRE_STAGED_FOR_NEXT_WINDOW", "job": stage_resp.json() }

    return { "status": "DISPATCHED_IN_ACTIVE_WINDOW", "job": dispatch_resp.json() }

Use Case 2: Closed-Loop OT Patch Rollout with 6-Hypervisor Pre-Update VM Snapshot & Auto-Rollback

GET /api/patching/endpoints/{id}/window-state POST /api/virtualization/snapshots/take POST /api/patching/groups/{id}/release-window POST /api/patching/window-history/{runId}/validate
🤖 Prompt to Feed Your AI Dev Agent
"Build an automated Maintenance Window orchestrator for CES.Api that executes a closed-loop OT patch rollout for a Maintenance Zone (groupId). It must: (1) verify the maintenance window is open via GET /api/patching/endpoints/{machineId}/window-state, (2) take a Disk-Only + Guest VSS Quiesce hypervisor snapshot (includeMemoryState: false) via POST /api/virtualization/snapshots/take across vSphere/Hyper-V/Proxmox/Scale HC3/HPE VME/Nutanix AHV, (3) release the maintenance window gate via POST /api/patching/groups/{groupId}/release-window, (4) monitor reboot SLA health, and (5) submit post-maintenance validation via POST /api/patching/window-history/{runId}/validate—automatically reverting the VM snapshot via POST /api/virtualization/snapshots/{id}/revert if validation or reboot SLA fails."
pseudocode_uc2_hypervisor_snapshot_and_window_validation.py
# ============================================================================
# MODULE 2: Closed-Loop Maintenance Window, 6-Hypervisor Snapshot & Rollback
# Supports: VMware vSphere, Hyper-V, Proxmox VE, Scale HC3, HPE VME, Nutanix AHV
# ============================================================================

function execute_guarded_zone_maintenance(group_id, primary_machine_id, cluster_id, change_ticket):
    headers = {
        "X-Api-Key": CONFIG["API_KEY"],
        "X-Change-Ticket": change_ticket,
        "Content-Type": "application/json"
    }

    # 1. Check Maintenance Window State & Release Gate Requirement
    win_state = HTTP.GET(
        f"{CONFIG.CES_BASE_URL}/api/patching/endpoints/{primary_machine_id}/window-state",
        headers = headers
    ).json()

    if not win_state.inMaintenanceWindow:
        raise WindowClosedException(f"Next window opens at {win_state.nextWindowStartUtc}")

    active_run_id = win_state.activeWindowRunId

    # 2. Take Pre-Update Hypervisor Snapshot (Disk-Only + Guest VSS Quiesce)
    # CRITICAL OT GUARDRAIL: includeMemoryState = false prevents AD USN rollback & SQL split-brain
    snap_resp = HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/virtualization/snapshots/take",
        headers = headers,
        json = {
            "machineId": primary_machine_id,
            "clusterId": cluster_id,
            "windowRunId": active_run_id,
            "includeMemoryState": false,
            "quiesceGuestVss": true,
            "reason": f"Pre-Update Safety Snapshot ({change_ticket})"
        }
    )
    assert snap_resp.status == 200
    snapshot_id = snap_resp.json().id

    # 3. Release Maintenance Window Gate (Authorizes Staged Patches to Install)
    if win_state.requireWindowRelease and win_state.windowReleaseState != "Released":
        HTTP.POST(
            url = f"{CONFIG.CES_BASE_URL}/api/patching/groups/{group_id}/release-window",
            headers = headers,
            json = {
                "releasedBy": "Automated-Shift-Supervisor-Integration",
                "releaseChannel": "CesConsole",
                "notes": f"Snapshot {snapshot_id} verified. Releasing zone for {change_ticket}."
            }
        )

    # 4. Trigger Sequential Zone Reboot & Monitor Recovery SLA (Default 15m)
    HTTP.POST(f"{CONFIG.CES_BASE_URL}/api/patching/groups/{group_id}/reboot-start", headers = headers)

    while true:
        HTTP.POST(f"{CONFIG.CES_BASE_URL}/api/ingest/reboot/check-sla", headers = headers)
        history = HTTP.GET(f"{CONFIG.CES_BASE_URL}/api/patching/groups/{group_id}/window-history", headers = headers).json()
        current_run = find(history, lambda r: r.id == active_run_id)

        if current_run.rebootTimedOutCount > 0:
            # 5A. EMERGENCY ROLLBACK: 1-Click Hypervisor Revert + Freeze Snapshot Deletion
            HTTP.POST(
                url = f"{CONFIG.CES_BASE_URL}/api/virtualization/snapshots/{snapshot_id}/revert",
                headers = headers,
                json = { "reason": "Automated rollback due to Reboot Recovery SLA timeout" }
            )
            HTTP.POST(
                url = f"{CONFIG.CES_BASE_URL}/api/patching/window-history/{active_run_id}/validate",
                headers = headers,
                json = {
                    "status": "ValidationFailed",
                    "validatedBy": "Automated-SLA-Watchdog",
                    "notes": "Host exceeded Reboot SLA; reverted to pre-patch VSS snapshot."
                }
            )
            return { "outcome": "ROLLED_BACK_TO_SNAPSHOT", "snapshotId": snapshot_id }

        if current_run.allJobsCompleted and current_run.postScreenshotCaptured:
            break
        sleep(30)

    # 5B. SUCCESS: Sign Off 'Validated' -> Arms 24-Hour Post-Validation Auto-Delete Timer
    val_resp = HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/patching/window-history/{active_run_id}/validate",
        headers = headers,
        json = {
            "status": "Validated",
            "validatedBy": "Automated-SCADA-Health-Verifier",
            "notes": "All HMI services running, post-patch desktop screenshot verified."
        }
    )
    return { "outcome": "VALIDATED_AND_24H_CLEANUP_ARMED", "snapshotId": snapshot_id, "result": val_resp.json() }

Use Case 3: SIEM / SOAR Sub-400ms Dynamic Switch Quarantine & 1-Click "Allow-All" Diagnostic Bypass

GET /api/cmdb/relationships/flow-compliance POST /api/switches/{id}/rules POST /api/switches/{id}/reconcile POST /api/nac/sites/{siteId}/allow-all-bypass
🤖 Prompt to Feed Your AI Dev Agent
"Create a SOAR playbook integration for CES.Api Dynamic NAC (/api/nac/* and /api/switches/*). Provide two functions: (1) enforce_zero_trust_switch_acl(), which audits unapproved network flows via GET /api/cmdb/relationships/flow-compliance, injects a deny rule on a managed Cisco IOS XE / Rockwell Stratix / Dell OS10 / Belden Hirschmann switch, triggers POST /api/switches/{id}/reconcile, and asserts that hardware TCAM commit latency is under 400ms; and (2) engage_emergency_site_bypass(), which activates the 1-Click 'Allow-All' Diagnostic Bypass at hardware sequence 10 (POST /api/nac/sites/{siteId}/allow-all-bypass) with a 60-minute auto-revert timer."
pseudocode_uc3_soar_switch_nac_and_bypass.py
# ============================================================================
# MODULE 3: SIEM/SOAR Sub-400ms Switch Quarantine & 1-Click Allow-All Bypass
# Supported Switches: Cisco IOS XE, Rockwell Stratix, Dell OS10/DNOS, Hirschmann HiOS
# ============================================================================

function enforce_zero_trust_switch_acl(site_id, switch_id, compromised_ip, change_ticket):
    headers = {
        "X-Api-Key": CONFIG["API_KEY"],
        "X-Change-Ticket": change_ticket,
        "Content-Type": "application/json"
    }

    # 1. Inspect Unauthorized Network Flows Detected Against CMDB Relationships
    flow_audit = HTTP.GET(
        url = f"{CONFIG.CES_BASE_URL}/api/cmdb/relationships/flow-compliance?siteId={site_id}",
        headers = headers
    ).json()

    # 2. Inject High-Priority Deny Rule on Target Industrial Switch
    # Anti-Lockout engine automatically protects 192.168.5.152 (CES), SRS IPs, PTP (UDP 319/320), and CIP (UDP 2222)
    rule_resp = HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/switches/{switch_id}/rules",
        headers = headers,
        json = {
            "sequenceNumber": 10050,
            "action": "Deny",
            "protocol": "ip",
            "sourceIp": compromised_ip,
            "sourceWildcard": "0.0.0.0",
            "destinationIp": "any",
            "destinationPort": "any",
            "description": f"SOAR Quarantine for {compromised_ip} ({change_ticket})"
        }
    )
    assert rule_resp.status == 200

    # 3. Reconcile & Commit Hardware TCAM ACLs + Sync Agent Host Firewall Policy
    reconcile_resp = HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/switches/{switch_id}/reconcile",
        headers = headers
    ).json()

    commit_ms = reconcile_resp.commitLatencyMs
    return {
        "quarantinedIp": compromised_ip,
        "switchId": switch_id,
        "commitLatencyMs": commit_ms,
        "within400msSla": commit_ms <= 400
    }

function engage_emergency_site_bypass(site_id, duration_minutes = 60, reason = "Plant Floor Troubleshooting"):
    # Injects sequence '10 permit ip any any' across all switches in the site and suspends
    # IEA.Agent Windows Firewall blocks for duration_minutes before automatically reverting.
    bypass_resp = HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/nac/sites/{site_id}/allow-all-bypass",
        headers = HEADERS_BASE,
        json = {
            "isBypassActive": true,
            "autoRevertMinutes": duration_minutes,
            "reason": reason
        }
    )
    assert bypass_resp.status == 200
    return bypass_resp.json()

Use Case 4: OT Privileged Access Management (OT PAM) JIT Checkout & External Device Rotation REQ

POST /api/otpam/entries/{id}/checkout POST /api/otpam/checkouts/{id}/reveal POST /api/otpam/checkouts/{id}/checkin POST /api/otpam/entries/{id}/raise-rotation-req
🤖 Prompt to Feed Your AI Dev Agent
"Write an integration script for CES.Api OT Privileged Access Management (/api/otpam/*). Implement two workflows: (1) Just-In-Time (JIT) checkout of a managed endpoint local admin credential (POST /api/otpam/entries/{id}/checkout), approval (/approve), plaintext secret retrieval (/reveal), and check-in (/checkin) which triggers automatic post-lease password rotation while respecting Winlogon HMI Auto-Logon guards; and (2) raising an on-premises SiteQueue rotation REQ ticket for an external OT device (POST /api/otpam/entries/{id}/raise-rotation-req) and subsequently updating its password via PUT /api/otpam/entries/{id}, which automatically resolves the linked REQ ticket."
pseudocode_uc4_otpam_jit_and_external_req.py
# ============================================================================
# MODULE 4: OT PAM Just-In-Time Credential Lease & External Rotation REQ Loop
# ============================================================================

function jit_checkout_and_rotate_managed_admin(entry_id, operator_bearer_token, support_ticket_id):
    user_headers = { "Authorization": f"Bearer {operator_bearer_token}", "Content-Type": "application/json" }

    # 1. Request Credential Checkout (Enforces Instant / RequireTicket / RequireApproval gate)
    checkout_resp = HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/otpam/entries/{entry_id}/checkout",
        headers = user_headers,
        json = {
            "durationMinutes": 60,
            "ticketNumber": support_ticket_id,
            "reason": "Scheduled PLC communication driver reconfiguration"
        }
    ).json()

    checkout_id = checkout_resp.checkoutId

    # 2. Approve Pending Lease if Gate == RequireApproval
    if checkout_resp.status == "PendingApproval":
        HTTP.POST(
            url = f"{CONFIG.CES_BASE_URL}/api/otpam/checkouts/{checkout_id}/approve",
            headers = HEADERS_BASE,
            json = { "approvedBy": "OT-Security-Supervisor", "notes": "Verified active maintenance window" }
        )

    # 3. Reveal Ephemeral Plaintext Password for Active Lease
    secret_resp = HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/otpam/checkouts/{checkout_id}/reveal",
        headers = user_headers
    ).json()
    ephemeral_password = secret_resp.password

    # ... [Operator performs maintenance using ephemeral_password] ...

    # 4. Check In Credential Lease -> Triggers Immediate Post-Checkout Rotation on Endpoint
    # Guarded by HMI Winlogon AutoAdminLogon & Windows Service account checks
    return HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/otpam/checkouts/{checkout_id}/checkin",
        headers = user_headers,
        json = { "notes": "Maintenance completed; trigger immediate password rotation." }
    ).json()

function rotate_external_ot_device_with_sovereign_req(external_entry_id, new_device_password):
    # 1. Raise (or retrieve existing deduplicated) on-premises SiteQueue Service Request (REQ)
    # Ticket has TicketType = "REQ", NeverLeavesPremises = true, RotationStatus = "PendingManualRotationReq"
    req_resp = HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/otpam/entries/{external_entry_id}/raise-rotation-req",
        headers = HEADERS_BASE,
        json = { "requestedBy": "OT-Compliance-Scheduler" }
    ).json()

    # 2. After technician updates password on physical PLC/RTU/Switch, commit newPassword to OT PAM
    # Updating newPassword AUTOMATICALLY resolves the linked REQ ticket (Status = "Resolved")
    update_resp = HTTP.PUT(
        url = f"{CONFIG.CES_BASE_URL}/api/otpam/entries/{external_entry_id}",
        headers = HEADERS_BASE,
        json = {
            "newPassword": new_device_password,
            "comments": f"Rotated on physical device under {req_resp.ticketNumber}"
        }
    ).json()

    assert update_resp.rotationStatus == "Healthy"
    return update_resp

Use Case 5: Cyber-Physical ESP32 Panel SmartKey, SCADA HMI Feed & PLC Modbus TCP Interlocks

POST /api/maintenance-portal/smartkeys/{keyUid}/signal GET /api/maintenance-portal/scada/upcoming-windows.txt MODBUS TCP :502 Coils 0001–0003 & Reg 3001
🤖 Prompt to Feed Your AI Dev Agent
"Write a cyber-physical plant-floor integration module that interfaces with CES.Api and SRS.Service. Include: (1) an ESP32 / edge gateway client that signs rotary key-switch assertions (LOCKED, RELEASED, VALIDATE, ROLLBACK) using HMAC-SHA256 and posts to POST /api/maintenance-portal/smartkeys/{keyUid}/signal, and (2) a PLC / SoftPLC Modbus TCP client (port 502/1502) that reads Zone Z's patching status and progress (Discrete Input 1001 + Z*10, Input Register 3001 + Z*10) and pulses Coil 0001 + Z*10 (CMD_RELEASE_ZONE) or Coil 0003 + Z*10 (CMD_ROLLBACK)."
pseudocode_uc5_smartkey_scada_and_modbus_tcp.py
# ============================================================================
# MODULE 5: ESP32 SmartKey HMAC Interlock, SCADA Feed & PLC Modbus TCP Bridge
# ============================================================================

import hmac, hashlib, time

function send_esp32_smartkey_assertion(key_uid, zone_id, switch_state, shared_hmac_secret):
    # switch_state: "LOCKED" | "RELEASED" | "VALIDATE" | "ROLLBACK"
    # Evaluates Series (AND), Parallel (OR), and Series-Parallel multi-key topologies
    timestamp_utc = int(time.time())
    canonical_payload = f"{key_uid}|{zone_id}|{switch_state}|{timestamp_utc}"
    signature_hex = hmac.new(
        key = shared_hmac_secret.encode("utf-8"),
        msg = canonical_payload.encode("utf-8"),
        digestmod = hashlib.sha256
    ).hexdigest().lower()

    resp = HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/maintenance-portal/smartkeys/{key_uid}/signal",
        headers = { "Content-Type": "application/json" },
        json = {
            "keyUid": key_uid,
            "zoneId": zone_id,
            "state": switch_state,
            "timestampUtc": timestamp_utc,
            "signature": signature_hex
        }
    )
    assert resp.status == 200
    return resp.json()

function plc_modbus_tcp_zone_controller(srs_ip, modbus_port = 502, zone_index_z = 1, line_is_safe = true):
    # Per-Zone Address Offset: offset = Z * 10
    offset = zone_index_z * 10
    COIL_RELEASE_ZONE = 1 + offset    # 0001 + offset (CMD_RELEASE_ZONE)
    COIL_VALIDATE_OK  = 2 + offset    # 0002 + offset (CMD_VALIDATE_OK)
    COIL_ROLLBACK     = 3 + offset    # 0003 + offset (CMD_ROLLBACK)
    DI_PATCH_ACTIVE   = 1001 + offset # 1001 + offset (STS_PATCHING_ACTIVE)
    DI_SRS_HEALTHY    = 1002 + offset # 1002 + offset (STS_SRS_HEALTHY)
    IR_ZONE_PROGRESS  = 3001 + offset # 3001 + offset (REG_ZONE_PROGRESS 0..100%)

    modbus = ModbusTcpClient(host = srs_ip, port = modbus_port)
    modbus.connect()

    if line_is_safe:
        modbus.write_coil(address = COIL_RELEASE_ZONE, value = true)
    else:
        modbus.write_coil(address = COIL_ROLLBACK, value = true)
        return { "status": "PLC_EMERGENCY_ROLLBACK_SIGNALED" }

    while modbus.read_discrete_inputs(address = DI_PATCH_ACTIVE, count = 1).bits[0]:
        pct = modbus.read_input_registers(address = IR_ZONE_PROGRESS, count = 1).registers[0]
        update_hmi_progress_bar(zone_index_z, pct)
        sleep(5)

    modbus.write_coil(address = COIL_VALIDATE_OK, value = true)
    modbus.close()
    return { "status": "PLC_VALIDATED_COMPLETE", "zoneIndex": zone_index_z }

Use Case 6: ISA/IEC 62443-3-3 Hybrid Compliance Engine, Multi-Tier Patch Windows & Vector PDF Export

PUT /api/compliance/patch-window-policy GET /api/compliance/iec62443/overview POST /api/compliance/iec62443/compensating-factors/batch-sign-off GET /api/compliance/iec62443/export-pdf
🤖 Prompt to Feed Your AI Dev Agent
"Write a compliance automation client for CES.Api (/api/compliance/*) that: (1) configures the hierarchical Multi-Tier Windows Patch Compliance Window Policy (MaintenanceZone -> Site -> Global) via PUT /api/compliance/patch-window-policy, (2) batch signs off pending compensating controls (POST /api/compliance/iec62443/compensating-factors/batch-sign-off), (3) fetches the ISA/IEC 62443-3-3 hybrid report (GET /api/compliance/iec62443/overview) including FR 1–FR 7 scores, SL-A vs. SL-T, Single Lowest/Highest Outlier Hosts, and 30-day velocity delta, and (4) downloads the Vector PDF 1.4 compliance report (GET /api/compliance/iec62443/export-pdf)."
pseudocode_uc6_iec62443_and_patch_windows.py
# ============================================================================
# MODULE 6: ISA/IEC 62443-3-3 Hybrid Engine, Patch Windows & Vector PDF Export
# ============================================================================

function configure_patch_windows_and_export_iec62443_pdf(site_id, zone_id, output_pdf_path):
    # 1. Configure Multi-Tier Patch Compliance Window Policy (Global Admin)
    # Classifies pending updates into ToBeScheduled (Compliant), Scheduled (Compliant), Missing (Non-Compliant)
    HTTP.PUT(
        url = f"{CONFIG.CES_BASE_URL}/api/compliance/patch-window-policy",
        headers = HEADERS_BASE,
        json = {
            "scopeMode": "All",          # "All" (Zone->Site->Global) | "Site" (Site->Global) | "Global"
            "globalWindowDays": 30,      # Allowed: 7, 14, 30, 60, 90, 180
            "siteOverrides": { site_id: 60 },
            "zoneOverrides": { zone_id: 14 }
        }
    )

    # 2. Batch Sign Off Compensating Controls (30% Weight in Hybrid 70/30 Engine)
    HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/compliance/iec62443/compensating-factors/batch-sign-off",
        headers = HEADERS_BASE,
        json = {
            "siteId": site_id,
            "signedOffBy": "Chief-OT-Security-Officer",
            "reviewNotes": "Verified physical cabinet locks and unidirectional gateway controls."
        }
    )

    # 3. Query Full ISA/IEC 62443-3-3 Hybrid Report (FR 1..FR 7, Outliers, 30d Velocity)
    report = HTTP.GET(
        url = f"{CONFIG.CES_BASE_URL}/api/compliance/iec62443/overview?siteId={site_id}",
        headers = HEADERS_BASE
    ).json()

    # 4. Stream Customizable Multi-Page Vector PDF 1.4 Report (with 7-Spoke Polar Radar Graph)
    pdf_stream = HTTP.GET(
        url = f"{CONFIG.CES_BASE_URL}/api/compliance/iec62443/export-pdf?siteId={site_id}&includeOutliers=true",
        headers = HEADERS_BASE
    )
    write_binary_file(output_pdf_path, pdf_stream.bytes())
    return report

Use Case 7: Air-Gapped Windows 10 / Server 2012 ESU MAK Key Vault & Zero-Reboot Activation

GET /api/esu/summary POST /api/esu/keys POST /api/esu/endpoints/{machineId}/activate
🤖 Prompt to Feed Your AI Dev Agent
"Write an air-gapped Extended Security Updates (ESU) licensing automation script for CES.Api (/api/esu/*). It must: (1) register a site-scoped 25-character ESU MAK key into the AES-256-GCM vault (POST /api/esu/keys), (2) trigger InstallKeyOnly on an air-gapped Windows 10 22H2 / Server 2012 endpoint to harvest its OfflineInstallationId (IID), and (3) apply the Microsoft Confirmation ID (CID) via POST /api/esu/endpoints/{machineId}/activate (ApplyConfirmationId mode) with zero reboot."
pseudocode_uc7_airgap_esu_licensing.py
# ============================================================================
# MODULE 7: Air-Gapped Win10 / Server 2012 ESU MAK Key Vault & CID Activation
# ============================================================================

function activate_airgapped_esu_endpoint(site_id, machine_id, esu_mak_key, program_year = 2):
    # 1. Register Site-Scoped ESU MAK Key in AES-256-GCM Vault (Masked as *****-XXXXX)
    key_resp = HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/esu/keys",
        headers = HEADERS_BASE,
        json = {
            "label": f"Site {site_id} Win10 ESU Year {program_year} MAK",
            "keyValue": esu_mak_key,
            "targetOs": "Windows 10",
            "esuYear": program_year,
            "scope": "Site",
            "siteId": site_id
        }
    ).json()

    # 2. Step A: Install ESU Key & Harvest OfflineInstallationId (IID) on Air-Gapped Endpoint
    HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/esu/endpoints/{machine_id}/activate",
        headers = HEADERS_BASE,
        json = { "keyId": key_resp.id, "esuYear": program_year, "activationMode": "InstallKeyOnly" }
    )

    iid = null
    while iid is null:
        summary = HTTP.GET(f"{CONFIG.CES_BASE_URL}/api/esu/summary?siteId={site_id}", headers = HEADERS_BASE).json()
        ep_esu = find(summary.endpoints, lambda e: e.machineId == machine_id)
        if ep_esu and ep_esu.offlineInstallationId:
            iid = ep_esu.offlineInstallationId
            break
        sleep(10)

    # 3. Exchange IID for Confirmation ID (CID) & Apply with Zero Reboot (slmgr.vbs //B /atp)
    cid = request_microsoft_vlsc_confirmation_id(installation_id = iid)
    return HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/esu/endpoints/{machine_id}/activate",
        headers = HEADERS_BASE,
        json = {
            "keyId": key_resp.id,
            "esuYear": program_year,
            "activationMode": "ApplyConfirmationId",
            "confirmationId": cid
        }
    ).json()

Use Case 8: Sovereign Helpdesk Triage, Ad-Hoc Desktop Screenshot, Forensics & Sanitized Escalation

GET /api/tickets/site/{siteId} POST /api/fleet/endpoints/{id}/screenshot POST /api/tickets/{id}/forensics/execute POST /api/tickets/{id}/promote-to-platform-inc
🤖 Prompt to Feed Your AI Dev Agent
"Write an automated incident triage workflow for CES.Api (/api/tickets/* and /api/fleet/*). When a new Asset INC arrives in SiteQueue (GET /api/tickets/site/{siteId}), automatically: (1) trigger an on-demand 1-slot active user session desktop screenshot on the affected endpoint (POST /api/fleet/endpoints/{machineId}/screenshot), (2) execute the ticket forensics collector (POST /api/tickets/{id}/forensics/execute), and (3) if the root cause is an IEA platform defect, escalate it via POST /api/tickets/{id}/promote-to-platform-inc so CES sanitizes all PII/IPs/hostnames (SanitizeForCloud()) before forwarding to CrowdCompatibilityIncQueue."
pseudocode_uc8_sovereign_helpdesk_and_forensics.py
# ============================================================================
# MODULE 8: Sovereign Helpdesk Triage, Ad-Hoc Screenshot & Sanitized Escalation
# ============================================================================

function triage_site_incident_and_escalate_if_platform_bug(site_id, ticket_id):
    # 1. Fetch Sovereign Site Queue Tickets (Asset INCs & Site REQs never leave premises)
    tickets = HTTP.GET(f"{CONFIG.CES_BASE_URL}/api/tickets/site/{site_id}", headers = HEADERS_BASE).json()
    ticket = find(tickets, lambda t: t.id == ticket_id)
    assert ticket.neverLeavesPremises == true

    machine_id = ticket.machineId

    # 2. Trigger 1-Slot Ad-Hoc Active User Session Desktop Screenshot
    if machine_id:
        HTTP.POST(
            url = f"{CONFIG.CES_BASE_URL}/api/fleet/endpoints/{machine_id}/screenshot",
            headers = HEADERS_BASE,
            json = { "requestedBy": "Automated-Incident-Triage" }
        )

    # 3. Execute Automated Endpoint Forensics Package for the Ticket
    forensics_resp = HTTP.POST(
        url = f"{CONFIG.CES_BASE_URL}/api/tickets/{ticket_id}/forensics/execute",
        headers = HEADERS_BASE
    ).json()

    # 4. If Platform Defect -> Promote via SanitizeForCloud() (Strips IPs, Hostnames & Usernames)
    if is_platform_defect(forensics_resp):
        promoted = HTTP.POST(
            url = f"{CONFIG.CES_BASE_URL}/api/tickets/{ticket_id}/promote-to-platform-inc",
            headers = HEADERS_BASE,
            json = {
                "escalatedBy": "Senior-OT-Platform-Admin",
                "sanitizedSummaryNotes": "Relay cache convergence timeout observed on large CAB payload."
            }
        ).json()
        return { "triageOutcome": "PROMOTED_TO_SANITIZED_PLATFORM_INC", "ticket": promoted }

    return {
        "triageOutcome": "RETAINED_ON_PREMISES_SITE_QUEUE",
        "screenshotImageUrl": f"{CONFIG.CES_BASE_URL}/api/fleet/endpoints/{machine_id}/screenshot/image",
        "forensics": forensics_resp
    }

Interactive CES REST, Fieldbus & Hardware Endpoint Catalog

Search across all 28 controllers, Core Industrial IPAM & Cisco/Stratix Topology endpoints, southbound agent/relay ingestion routes, ESP32 SmartKey webhooks, SCADA HMI feeds, and PLC Modbus TCP register offsets.

Method Endpoint Route / Register Auth & Guardrail Description, Payload & Response Contract
POST /api/auth/login Public Authenticates { "email", "password" } and returns { "token", "role", "userId", "managedSiteIds", "assignedCredentialIds" }.
POST /api/users/sync-ad-groups AdminX-Api-Key Synchronizes On-Premises Active Directory (LDAP/LDAPS) and Azure Entra ID group memberships, applying highest-privilege role + union of sites and credential vaults.
POST /api/settings/auth/test-directory Admin Verifies connectivity and schema bindings against configured On-Premises LDAP/LDAPS Domain Controllers and Azure Entra ID.
POST /api/settings/keys Admin Generates a SHA-256 Northbound API key (ApiKeyRecord) for ServiceNow, SIEM/SOAR, or headless automation.
GET /certs/root.cer Public Streams the public DER/PEM X.509 CES Root CA certificate for TLS 1.3 trust bootstrapping.
GET /api/cmdb/inventory Viewer+X-Api-Key Returns flattened 50+ attribute CMDB projection across managed endpoints and discovered OT assets (?siteId=&groupId=&includeUnmanaged=true), including hardwareManualOverride and patchComplianceState.
PUT /api/cmdb/inventory/{machineId}/hardware Operator+X-Api-Key Updates hardware/asset specs (manufacturer, model, serialNumber, biosUuid, cpuName, ramTotalGb, macAddress, assetClass, purdueLevel, customLabel) and sets hardwareManualOverride = true (🔒). Pass "resetToAuto": true to unlock.
GET /api/cmdb/mac-oui/status Viewer+X-Api-Key Returns status and prefix count (38,600+) of the 100% offline IEEE MAC OUI database (CES.Api/Data/mac-oui-vendors.json, hot-reloaded on .ieaupgrade).
POST /api/cmdb/mac-oui/evaluate SiteAdmin+X-Api-Key Bulk-evaluates and backfills Manufacturer from MAC addresses across all endpoints completely offline, skipping locked hardwareManualOverride rows.
GET /api/cmdb/ci-suggestions Viewer+ Fast site-sovereign CI autocomplete catalog (customLabel, hostname, machineId, ipAddress, macAddress, osVersion).
POST /api/cmdb/relationships SiteAdmin+X-Api-Key Creates an authorized Parent-Child CMDB communication relationship (CmdbCiRelationship), automatically compiling switch ACLs, endpoint firewall exceptions, and ServiceNow firewall policy CIs.
POST /api/cmdb/firewall-policies/sync-servicenow SiteAdmin+X-Api-Key Bi-directionally synchronizes u_cmdb_ci_firewall_policy CIs linked via Governed by::Governs to cmdb_ci_appl in ServiceNow CMDB.
GET /api/patching/groups Viewer+X-Api-Key Lists all Maintenance Zones (EndpointGroup) with Cron schedules, release gates, SmartKey topology, and hypervisor snapshot bindings.
PUT /api/patching/groups/{groupId} SiteAdmin+X-Api-Key Renames a Maintenance Zone or updates its configuration ({ "name": "Line 2 Packaging Zone", "description": "...", "cronMaintenanceWindow": "...", "durationMinutes": 120 }).
DELETE /api/patching/windows/{windowId} SiteAdmin+X-Api-Key Deletes a Maintenance Window schedule. When all schedules on a zone are removed, immediately clears CronMaintenanceWindow on member endpoints, resets InMaintenanceWindow = false, and triggers WakeupTracker (updateWakeupRequested: true) for instant agent polling sync.
GET /api/patching/endpoints/{machineId}/window-state Viewer+Agent Returns live maintenance window status: inMaintenanceWindow, requireWindowRelease, windowReleaseState, nextWindowStartUtc, cronExpression.
POST /api/patching/groups/{groupId}/release-window Operator+X-Api-Key Releases an active Maintenance Window via CesConsole, TrayGui, or SmartKey. Returns 409 Conflict with nextWindowStartUtc if outside the active window.
POST /api/patching/dispatch X-Api-KeyX-Change-Ticket Dispatches a Windows Update KB job. Pass "stageOnly": true to pre-stage binary payloads to C:\IEA_Staging\Patches 24/7 outside maintenance windows.
POST /api/patching/window-history/{runId}/validate Operator+X-Api-Key Records post-window sign-off (Validated vs ValidationFailed). Validated arms the 24h VM snapshot cleanup timer; ValidationFailed freezes snapshot deletion and raises an on-premises Asset INC.
POST /api/patching/excluded-kbs AdminX-Api-Key Adds a Global Admin platform-wide KB exclusion (PlatformKbExclusion), immediately omitting the KB from all compliance engines and purging pending jobs.
PUT /api/nac/config AdminX-Api-Key Configures the Dynamic NAC Bolt-On (isEnabled, scopeMode, autoEnrollNewMaintenanceWindowsInSite, enableAgentHostFirewallNac, enableSwitchHardwareNac).
POST /api/nac/sites/{siteId}/allow-all-bypass SiteAdmin+X-Api-Key Toggles the 1-Click "Allow-All" Emergency Diagnostic Bypass at hardware sequence 10 and suspends agent firewall blocks with an auto-revert countdown timer.
POST /api/switches/{id}/reconcile SiteAdmin+X-Api-Key Compiles deterministic TCAM ACL sequences (10000–49999) with Anti-Lockout validation across Cisco IOS XE, Rockwell Stratix, Dell OS10/DNOS, and Belden Hirschmann in <400ms.
GET /api/switches/telemetry Viewer+X-Api-Key Returns real-time Switch Configuration Change Latency Monitor telemetry (commit latency in ms vs 400ms SLA and verbatim RESTCONF/CLI/SNMPv3 audit logs).
POST /api/firewalls/devices & /api/firewalls/devices/{id}/sync SiteAdmin+X-Api-Key Registers and triggers read-only live API / SSH audit sync or 6-file CSV bundle import (/import-csv) across Palo Alto PAN-OS, Fortinet FortiGate, Cisco Secure Firewall (FTD/ASA), Check Point, Hirschmann EAGLE40, and Moxa EDR-G9010; reconciled at GET /api/firewalls/reconciliation.
POST /api/virtualization/clusters SiteAdmin+X-Api-Key Registers Global (CES) or Local (SRS L3) hypervisor clusters across VMware vSphere, Microsoft Hyper-V, Proxmox VE, Scale Computing HC3, HPE VM Essentials, and Nutanix AHV.
POST /api/virtualization/snapshots/take Operator+X-Api-Key Resolves guest VM (SMBIOS UUID -> MAC -> IP) and takes a Disk-Only + Guest VSS Quiesce (includeMemoryState: false) pre-update safety snapshot.
POST /api/virtualization/snapshots/{id}/revert SiteAdmin+X-Api-Key Executes a 1-Click Hypervisor Revert to the pre-update snapshot and logs a high-priority audit event.
GET /api/otpam/overview Viewer+X-Api-Key Returns Managed Endpoint Local Admin accounts (guarded by HMI Winlogon Auto-Logon checks) and External OT Device Vault entries, active leases, and rotation states.
POST /api/otpam/entries/{id}/raise-rotation-req SiteAdmin+X-Api-Key Raises (or returns an existing deduplicated) on-premises SiteQueue Service Request (TicketType = "REQ", NeverLeavesPremises = true) for manual external device password rotation. Updating newPassword on PUT /api/otpam/entries/{id} auto-resolves the REQ.
POST /api/otpam/entries/{id}/checkout BearerX-Api-Key Requests a JIT credential lease governed by Instant, RequireTicket, or RequireApproval gates; paired with /approve, /reveal, and /checkin (auto-rotate on check-in).
PUT /api/compliance/patch-window-policy AdminX-Api-Key Configures the hierarchical Multi-Tier Windows Patch Compliance Window Policy (7d, 14d, 30d, 60d, 90d, 180d across Zone -> Site -> Global), classifying pending updates into ToBeScheduled, Scheduled, and Missing.
GET /api/compliance/iec62443/overview Viewer+X-Api-Key Computes FR 1–FR 7 hybrid scores (70% telemetry + 30% signed-off quiz credits), SL-A vs. SL-T, Single Lowest & Highest Outlier Hosts, and 30-day velocity $\Delta\%$.
GET /api/compliance/iec62443/export-pdf Viewer+X-Api-Key Streams the customizable multi-page Vector PDF 1.4 compliance report featuring the 7-spoke heptagonal Polar Radar chart.
POST /api/esu/endpoints/{machineId}/activate SiteAdmin+X-Api-Key Dispatches zero-reboot Windows 10 / Server 2012 ESU activation in OnlineOrKms, InstallKeyOnly (air-gap IID harvest), or ApplyConfirmationId (/atp) mode.
PUT /api/fleet/dns/policy SiteAdmin+X-Api-Key Configures hierarchical Standard DNS Governance Policy (Endpoint -> Site -> Global) across PeriodicCache (Method 1: native Win32 DnsGetCacheDataTable + DnsQuery_W / WMI MSFT_DNSClientCache), ContinuousEtw (Method 2: timed Microsoft-Windows-DNS-Client Event 3008/3020 process rollup), or Disabled, plus appendToKnownExternalDestinations.
GET /api/fleet/endpoints/{id}/dns Viewer+X-Api-Key Returns the endpoint's effective DNS policy, adapter DNS servers, LLMNR/NetBIOS/mDNS/WPAD posture, parsed etc\hosts entries, deduplicated historical query rollup (Internal vs. External), and Known External Destinations.
POST /api/fleet/endpoints/{id}/dns/remediate SiteAdmin+X-Api-Key Dispatches an HMAC-SHA256 signed dns-governance-remediate action (ApplyHardeningBaseline, DisableLlmnr, DisableNetbios, DisableMdns, DisableWpad, FlushDnsCache, AddHostsEntry, RemoveHostsEntry, RestoreDefaultHosts) with instant relay wakeup; paired with DELETE /api/fleet/endpoints/{id}/dns/rollup.
POST /api/fleet/endpoints/{machineId}/screenshot Operator+X-Api-Key Triggers an on-demand 1-slot active user session desktop screenshot (X-Require-Screenshot: true); image served at GET /api/fleet/endpoints/{machineId}/screenshot/image.
POST /api/discovery/sites/{siteId}/trigger SiteAdmin+X-Api-Key Triggers an OT-Safe Network Discovery scan (respecting the Fragile OT Exclusion List and Maintenance Window bounds).
PUT /api/discovery/icmp-policy/sites/{siteId} SiteAdmin+X-Api-Key Configures Site and Maintenance Zone 15-minute ICMP liveness monitoring and polling host election.
GET /api/tickets/site/{siteId} User+X-Api-Key Returns sovereign SiteQueue incidents (INC) and service requests (REQ) for the specified site (neverLeavesPremises: true).
POST /api/tickets/{id}/promote-to-platform-inc SiteAdmin+X-Api-Key Escalates a local incident to a sanitized PLATFORM_INC (CrowdCompatibilityIncQueue) via SanitizeForCloud().
POST /api/jobs/run & /api/jobs/bulk SiteAdmin+X-Api-KeyX-Change-Ticket Dispatches or schedules an HMAC-SHA256 signed PowerShell job or built-in interactive action (scriptId, arguments, scheduledForUtc, cronExpression, bypassMaintenanceWindow). Supports interactive templates system-popup-msgbox (Win32 WTSSendMessageW modal popup) and system-start-interactive-app (WTS CreateProcessAsUserW into winsta0\default), plus Pre/Post screenshot & PID-tree delta forensics (GET /api/jobs/{id}/impact-snapshot with Baseline Screenshot fallback).
POST /api/jobs/schedules & /api/jobs/schedules/{id}/trigger SiteAdmin+X-Api-Key Creates, updates, toggles, deletes, or immediately triggers (/trigger) a ScheduledJobDefinition targeting a single Endpoint or MaintenanceZone (OneTime via scheduledForUtc or RecurringCron via cronExpression, with bypassMaintenanceWindow and instant WakeupTracker signaling).
POST /api/upgrade/execute AdminX-Api-Key Executes an in-situ cryptographic .ieaupgrade lifecycle rollout across CES, SRS, and IEA.Agent with source-hash delta detection.
GET /api/ipam/sites/{siteId}/overview Viewer+X-Api-Key Returns site IPAM summary KPIs, SiteVlanRecords, IpamSubnets (utilization %, gateway, VLAN, DHCP bounds), IpamConflictEvents, CablingDriftAlerts, and DiscoveredSwitchNodes.
GET/PUT /api/ipam/sites/{siteId}/crawl-config SiteAdmin+ Configures Cisco/Stratix crawl depth, ShadowSwitchDiscoveryMode (PassiveLeaf | AutoCrawlWithSiteReadOnlyCred), SnmpVersion (v2c | v3), PreferRestconf, and AutoCreateSiteIncOnCriticalDrift.
POST /api/ipam/sites/{siteId}/crawl Operator+ Enqueues a bounded CISCO_TOPOLOGY_CRAWL directive on the site's Purdue L3 SRS.Service relay while enforcing the Fragile OT Exclusion List.
POST /api/ipam/sites/{siteId}/ingest-snapshot MtlsNodeSiteAdmin+ Ingests SwitchTopologySnapshotDto payloads (SVI subnets, VLANs, CDP physical uplinks, Switch ARP cache, and per-VLAN CAM tables) with trunk-excluded edge binding.
POST/PUT/DEL /api/ipam/sites/{siteId}/subnets/{subnetId?} SiteAdmin+ Creates, updates, or removes IPv4 /16–/30 industrial subnets with CIDR overlap validation and DHCP pool range boundaries.
GET /api/ipam/sites/{siteId}/subnets/{subnetId}/grid Viewer+ Serves paginated 256-tile /24 and /16 (65,536-IP) allocation heatmaps enriched with MAC, offline IEEE OUI vendor, switch/port attachment, and CMDB hostname.
POST/DEL /api/ipam/sites/{siteId}/reservations/{entryId?} Operator+ Creates or releases static IP reservations with optional automatic CMDB placeholder CI pre-creation, plus conflict resolution via POST /api/ipam/sites/{siteId}/conflicts/{conflictId}/resolve.
GET/POST /api/ipam/sites/{siteId}/import-csv & /export-csv SiteAdmin+ Exports IPAM allocations to CSV or executes 2-step CSV import (DryRun: true validation preview followed by DryRun: false transactional commit).
POST /api/ipam/sites/{siteId}/servicenow-sync SiteAdmin+X-Api-Key Bi-directionally synchronizes IpamSubnets → cmdb_ci_ip_network and IpamAddressEntries → cmdb_ci_ip_address with ServiceNow CMDB.
GET /api/ipam/sites/{siteId}/topology?mode=physical|vlan Viewer+ Returns live Physical Layer-2 and VLAN Logical connectivity graph nodes and links, plus Shadow Switch onboarding via POST /api/ipam/sites/{siteId}/shadow-switches/{nodeId}/onboard.
POST /api/ipam/sites/{siteId}/baseline/pin & /drifts/{id}/quarantine SiteAdmin+ Pins the Known-Good Cabling Baseline, approves authorized moves (/approve), or pushes a 1-click DynamicQuarantine (DENY ACL at Seq=500) on cabling drift.
POST /api/maintenance-portal/smartkeys/{keyUid}/signal HMAC-SHA256 Ingests rotary key-switch state assertions (LOCKED, RELEASED, VALIDATE, ROLLBACK) and evaluates Series (AND) / Parallel (OR) physical zone interlocks.
GET /api/maintenance-portal/scada/upcoming-windows.txt SCADA L2/L3 Deterministic plain-text schedule feed for WinCC, Ignition, FactoryTalk, and Wonderware HMI tag scripts.
MODBUS Coils 0001–0003 + (Z*10) | Reg 3001 + (Z*10) TCP :502 / :1502 PLC / SoftPLC interface on SRS.Service: Coil 0001+offset Release Zone, 0002+offset Validate OK, 0003+offset Emergency Rollback, Discrete 1001+offset Patching Active, Input Reg 3001+offset Zone Progress (0–100%).