Presentation#
Six weeks after going live, the VLAN automation was running perfectly, and everyone was happy! Every morning, three or four new service requests arrived from application teams, and the Orchestrator handled them automatically: the deployments worked and the switches got configured. Everything looked fantastic.
The escalation arrived on a Thursday. The application team lead was asking why VLAN requests were taking three to five business days when the ITSM portal said “submitted”. The network team checked their queue: zero pending requests, all deployments successful. The automation had processed every request within twenty minutes, but the ITSM tickets still showed “In Progress” because nobody had written the integration that would update them.
The automation had done its job, but nobody outside the network team could see it.
A week later, the team deployed a self-service portal so application teams could submit requests directly and see their status. By noon, the network team had received forty-seven VLAN requests. All valid and formatted correctly. The problem: the portal had no authorization model and accepted submissions from anyone who had the URL. All requests ran under a single Application Programming Interface (API) token with write rights. Moreover, there was no rate limiting, no approval gate, no audit trail of who submitted what.
The automation worked. The access model did not.
These two failures are both Presentation failures. One is the absence of a feedback loop; the other is the absence of guardrails. This chapter closes those gaps.
Fundamentals#
Every building block covered so far faces inward: toward other blocks or toward engineers who understand the Network Automation Platform (NAP). The Source of Truth (SoT) holds network intent for automation systems. The Executor applies changes to devices. Observability validates results. The Orchestrator coordinates all of them. Each of these blocks may have a UI, an API, or both, designed for the people who built and operate it, not for everyone who needs to interact with it.
The Presentation layer faces outward. Its job is to make the whole NAP accessible to audiences who should not need to understand the internals. Think of the application team requesting a network service, the security auditor asking what changed last quarter, or another team’s CI/CD pipeline provisioning infrastructure without a human in the loop.
In Chapter 3, the Presentation block sat at the edge of the NAF Framework, facing humans and external systems. Chapter 8 established that async workflows require status endpoints and notification hooks. The Presentation layer delivers both.
The Presentation layer serves three goals that map directly to three architectural functionalities.
Provide a stable, authenticated API with a consistent access model. Every consumer, human or machine, should interact with the NAP through a versioned, access-controlled contract that does not change without notice. The underlying blocks can be replaced, upgraded, or restructured; the consumer-facing contract must remain stable. Authentication and authorization are enforced at this boundary, centralized rather than duplicated per tool.
Serve every consumer type through the interface that fits their workflow. A network engineer and an application team manager have different needs, different levels of technical depth, and different expectations about how automation communicates with them. The Presentation layer provides multiple surfaces: GUI portals, Command Line Interface (CLI), ChatOps integrations, all backed by the same API and the same access model, with status surfaced to the audience that initiated the action.
Connect the NAP bidirectionally to external systems and deliver results back through the channels consumers already use. The application team already works in the ITSM. An engineer already has the chat channel open. Another team’s release pipeline already runs on the Internal Developer Platform (IDP). The NAP should meet them where they are: receiving requests from their systems and sending results back to those same systems, not requiring a new tool in their workflow.
What is in scope
- The API layer: authentication, authorization, versioning, and rate limiting for all consumers
- User interfaces built on that API: GUI portals, CLI, ChatOps, mobile surfaces
- External integrations: ITSM workflows, chat and messaging platforms, webhook callbacks to waiting callers such as CI/CD pipelines
- Outbound notifications: status callbacks, push alerts, messaging channel events
- Operational dashboards when surfaced to non-engineer audiences (access control, audience scoping, and portal embedding; the underlying metrics architecture belongs to Chapter 7)
What is out of scope
The Presentation layer surfaces what the other blocks produce. It produces nothing itself.
- Producing the data that gets displayed: metrics, logs, and operational state belong to Observability
- Rendering configuration and processing templates: that is the Executor’s adapters (Chapter 6)
- Running workflows and producing their audit records: that is the Orchestrator
- Business logic: deciding which workflow to run, owning the rules that decide whether a request is valid, or managing workflow state belong to the Orchestrator and the Source of Truth (see the WARNING at the end of the Solutions Landscape section)
Functionalities#
Three functionalities deliver the three goals, one each, as Figure 9.1 shows. They come in the order a request meets them.
- API Layer: the contract and access model every consumer goes through. Versioned, authenticated, stable, and enforced through Role-Based Access Control (RBAC). Authentication and multi-tenancy are enforced here, once, and every other surface is built on top of it.
- User Interfaces: the surfaces built on that contract. GUI portals, CLI, mobile, and ChatOps are form factors of the same underlying API, not separate systems with their own rules.
- Integrations and Notifications: the connections to external systems, and the delivery of results back out. ITSM workflows and messaging systems inbound, turned into calls to the API layer; ticket updates, chat messages, pages, and webhook callbacks, for example to a waiting CI/CD pipeline, outbound.
API Layer#
The Presentation layer API is the foundation. Every consumer surface is a caller of this layer: the portal, the CLI, an ITSM form, a ChatOps bot, an Artificial Intelligence (AI) agent. Authentication, RBAC, versioning, and rate limiting are enforced here. Design it well or everything above inherits its problems.
Chapter 5 covered the SoT’s own API: how automation systems query intent data, the consumption patterns such as Representational State Transfer (REST), GraphQL, and webhooks, and the read/write model for network configuration. The API discussed here is different in purpose: it is the outward-facing contract for consumers of the NAP as a whole. Where the SoT API answers “what should the network look like?”, the Presentation layer API answers “what is the NAP doing, and how do I interact with it?” Both may be REST APIs; they serve different audiences with different access models.
This section stays on the consumer’s side of the front door. What sits behind it has its own chapters in Part 3: identity for workflows, least privilege, and tenant isolation in Chapter 13, and how the NAP survives load and outages in Chapter 12. What belongs here is the contract consumers see, and the limits the front door enforces on them.
The shape to aim for is the API Gateway pattern from microservice architecture (Sam Newman, Building Microservices; Chris Richardson, microservices.io): one entry point in front of many services. The gateway routes each call to the block that serves it, composes the responses that need several blocks, and handles the concerns every call shares, such as authentication, rate limiting, and versioning, once. The gateway products in the Solutions Landscape section implement the routing and the shared concerns. The resources consumers see are yours to design.
What the gateway must not become is a proxy. The Presentation API should not mirror internal block interfaces. Exposing a /v1/sot/vlans/ endpoint that proxies directly to the SoT’s API, or a /v1/orchestrator/jobs/ endpoint that wraps Orchestrator job IDs, ties consumers to internal implementation details. When you replace one block with another, every CI/CD pipeline that stored those IDs must be updated. The Presentation API should expose NAP-level concepts instead. A /v1/requests/ endpoint represents a service request, whichever Orchestrator processed it. A /v1/services/vlan/ endpoint returns a VLAN’s current state, aggregated from SoT and Observability, without revealing which block supplied each piece. Consumers get a stable contract; the internal implementation can evolve freely behind it.
The same goes for per-consumer views. A device record serves a network engineer troubleshooting a link, a finance analyst calculating depreciation, and a workflow that needs a management address and nothing else. Chapter 5 covers how to build those views and what each approach costs. The Presentation layer’s views differ in two ways: they serve people and systems outside the NAP rather than the blocks inside it, and they often compose several blocks into one response, such as a VLAN’s intent next to its health.
The API exposes two categories of endpoints:
Read endpoints: workflow status and history, audit records, and service state aggregated from the SoT and Observability blocks, such as “the VLAN
app-payments: present on 24 of 24 switches in Building B, gateway reachable, last changed by request REQ-4471”. These are the queries the application team uses to check request status, the auditor uses to review a change record, and the monitoring system uses to verify NAP health.Write endpoints: trigger a workflow, submit a service request, approve or reject a pending gate, cancel a running job. Write endpoints require stronger authorization. Different roles should have access to different write operations: an application team member can submit a request but cannot trigger arbitrary workflows; a network engineer can approve a pending gate but cannot modify workflow definitions.
The read/write distinction also shapes contract stability. Both need versioning, but they fail differently. A broken read endpoint fails quietly, in a dashboard nobody checks for a year. A broken write endpoint fails loudly, in a pipeline. Give reads the longer deprecation window.
Versioning and Stability#
Consumer-facing APIs must be versioned. The Presentation layer API is the contract, and the block internals are the implementation. Internal refactoring of the Orchestrator, SoT, or Observability blocks must not break external callers. Chapter 11 builds on this: the API is where the NAP’s platform contract with its users lives.
Version by URL prefix (/v1/, /v2/) rather than by header. When something breaks at 03:00 and you are grepping logs, you want to see /v1/ against /v2/ immediately, without digging through request headers.
The breaking changes that hurt are rarely in the URL, though. They are in what a network request means. Take the campus VLAN endpoint. In v1, POST /v1/requests/vlan took a vlan_id from the requester. Then the service layer of Chapter 4 started deriving VLAN IDs from the building’s range, and a requester-supplied ID became a way to bypass the design. v2 drops the field. During the deprecation window, v1 still accepts it. A v1 call with an ID that does not match what the design would derive gets a clear rejection, “VLAN 500 is outside the range reserved for building B; omit vlan_id”, and the ID is never silently overridden.
Four things in a network service API are contract, and changing any of them is a breaking change:
- Request fields and their values:
building,profile, and the names of the profiles. Renamingstandardtodefaultbreaks every ITSM form that offers it. - The status vocabulary: submitted, pre-checks running, awaiting approval, complete, partially complete. A ticket integration maps these one to one.
- What “complete” means: configuration applied, or service validated by Observability. Moving from the first to the second changes when a release pipeline may proceed, even with an identical payload.
- Error codes: “building not found” and “profile not offered” are what the ITSM shows the requester, so they need to be as stable as the fields.
Announce breaking changes three to six months ahead through the Deprecation and Sunset headers (RFC 9745 and RFC 8594), so a consumer learns about the sunset from the API itself. The first carries the date the endpoint was deprecated, the second the date it stops working:
Deprecation: @1782864000
Sunset: Mon, 01 Jan 2027 00:00:00 GMT
Link: <https://docs/migration>; rel="deprecation"Authentication and Authorization#
Authentication answers: who are you? Authorization answers: what are you allowed to do?
Many teams implement authentication before authorization, then discover that “authenticated” and “authorized” are different problems when someone submits forty-seven requests under a valid token they should not have had.
Authentication patterns for network automation platforms:
- SSO / LDAP integration: the enterprise standard. Engineers and application teams authenticate with their corporate identity. No separate credentials to manage, and deprovisioning is automatic when someone leaves.
- OAuth 2.0 / OIDC: for external systems and web portal users. Produces short-lived tokens rather than long-lived credentials.
- Scoped API tokens: for programmatic access by CI/CD pipelines and automation scripts. Each token is scoped to a specific set of permissions with a defined expiry. A shared admin token used by all consumers is not authentication: it is a shared password that cannot be revoked without breaking every caller simultaneously.
Implement authorization through RBAC. Roles should map to operational responsibilities, not to tool capabilities. A common starting model for network automation is shown in Figure 9.2. It is not the only valid one: your organization may need fewer roles, or more granular ones.
read-only: view any data, trigger no actionsoperator: submit service requests, trigger pre-approved workflows (the Pre-Approved Automation Pattern of Chapter 15)engineer: approve gates, full workflow management, SoT write access, view all audit recordsadmin: NAP configuration, user management, credential rotation
Each role inherits all permissions of the role below it. An engineer can do everything an operator can, plus approve gates, write to the SoT, and manage workflows. Keeping approval out of the operator role stops a requester from approving their own change, and the Orchestrator’s separation-of-duties rule (Chapter 8) stops an engineer from approving a request they submitted themselves.
RBAC is enforced at the API boundary. The underlying blocks see only authenticated API calls from the Presentation layer; they do not manage consumer identity independently. Two consequences need designing from the start. Every query is scoped to the caller’s tenant, so the application team for Building B never sees the facilities team’s requests for Building A; Chapter 13 develops that isolation. And the authorization log records denied requests alongside approved ones, because who tried to do what and was refused matters as much to an auditor as what was permitted. Chapter 13 also extends the model from people to the workflows themselves, with workload identity, attribute-based policy, and least privilege.
API Types#
REST is the default. It is simpler to version, reason about, and cache than GraphQL. Network automation teams rarely need GraphQL’s consumer-driven query flexibility and pay a meaningful operational cost for the additional complexity. The exception is a view that crosses blocks on every request. A Network Operations Center (NOC) screen that, for one switch, needs the device, the services on it, its uplink circuit, and any open requests touching it makes four REST calls per device, or one GraphQL query. That is a justified choice; it is rarely the right first choice.
The Model Context Protocol (MCP) interface is the AI surface of the Presentation layer. Human operators reach the NAP through a CLI and application teams through a portal; agents built on a Large Language Model (LLM) reach it through an MCP server. This server is the door for agents from outside the NAP, such as an engineer’s assistant or another team’s agent. Agents the Orchestrator runs inside the NAP use the per-block tool surfaces instead (Chapter 8), and Chapter 18 builds the full agentic architecture on them.
What changes is who drives the interaction. A REST client follows a sequence fixed in code: a CI/CD pipeline calls POST /v1/requests/vlan, then polls GET /v1/requests/{id}. An agent decides at runtime which tool to call next, after reading each result. That freedom is what makes it useful for open-ended questions, and it is why two rules apply to every agent at this door:
- Authorize per tool, not per connection. Each tool carries its own required role, checked on every call, so a chain of five read tools still cannot reach a write it was never granted.
- Give the agent no standing role of its own. An interactive agent acts as the person who invoked it, and the audit record names both. An autonomous one runs under a service identity scoped to read tools, and its writes pass through the same approval gate a human would hit.
The four roles above cover both cases. What changes is who the caller is, not the access model.
Protecting the Front Door#
Every consumer reaches the NAP through this layer, so this is where you limit them. Chapter 12 covers how the NAP as a whole survives load and partial failure. This section covers only what the front door adds, and there are three things.
Rate limiting protects the blocks behind the door. Automated consumers without rate limits will exhaust the Orchestrator’s queue. The forty-seven-request incident did not need a malicious actor: only a motivated team, a URL, and no throttle. Enforce three kinds of limit at the API boundary:
- Per-token limits: requests per minute per consumer.
- Burst limits: simultaneous in-flight requests.
- Operation-specific limits: a firmware upgrade workflow should never run more than one instance per device at a time.
Answer a throttled request with Hypertext Transfer Protocol (HTTP) 429 and a Retry-After header. The alternative is a silent queue fill that surfaces as a timeout hours later.
Keep the layer stateless. Centralizing authentication makes this layer’s availability the NAP’s availability, as far as anybody outside can tell. So keep nothing in it that a restart would lose: workflow state belongs to the Orchestrator, which persists it durably, and a workflow already running must finish whether or not anybody can watch it. The approval gate is the one exception, because it waits for a human who arrives through this door, which is why its timeout action has to be set on purpose.
Stateless does not mean the layer stores nothing. Its authorization log, registered callback URLs, saved views, and notification preferences are small, and they still need backing up. The events waiting for delivery are not its state either: they sit in the durable message bus described in Chapter 12, so a restart resumes delivery instead of losing it.
Plan for the day the door is down. Protecting the front door also means not depending on it completely. Each block keeps its own interface and a few local administrative credentials, held by named engineers and never issued to consumers, for the day this layer is down. Part 3 covers the break-glass path that uses them: the procedure in Chapter 11, the NAP-down scenario in Chapter 12, and its governance in Chapter 13. One point belongs to this chapter, because it is about surfaces: make the NAP faster than the bypass for the operations engineers perform most often. If approving a change through the portal takes four clicks and a login while Secure Shell (SSH) takes one command, the portal loses.
The API decides what each consumer is allowed to ask for. The surfaces built on it decide how they ask.
User Interfaces#
User interfaces are the surfaces built on top of the API. They are different form factors of the same NAP, each appropriate for a different consumer type. The RBAC model applies uniformly regardless of which surface is used.
Every surface you add is a surface you keep in step with the others. When a workflow gains a required input, the API contract absorbs the validation, but the ITSM form, the portal, the CLI flags, and the chat command each need the field added by hand, usually by different people. That multiplication is the strongest practical argument for having fewer surfaces than you can imagine wanting, and for making the API the one place the rules live.
GUI and Self-Service Portal#
When you build one, the web portal is the richest surface for people who are not automation engineers, and the one that carries the approval screen. Its design principle is progressive disclosure: show the right amount of information to the right audience without exposing the underlying complexity.
The application team sees a three-step view: submitted, in progress, complete, with a status detail that reads “pre-checks running across 24 switches” in plain language, not orchestrator job IDs. The network engineer sees the per-device pre-check results, the approval gate with an approve or reject action, and the full workflow trace if needed. The admin sees everything, including configuration and audit queries.
The engineer’s view is the one that decides whether the gate is real. Approving a change to 24 switches at 02:00 should take under a minute, which it does only if the screen answers four questions without making them go looking for a fifth:
- What changes, exactly. The rendered configuration for one representative device per platform, not a job identifier and not all 24 diffs.
- What the pre-checks found. Per device: passed, failed, or skipped, failures first, with the reason attached. The 21 passes are not the interesting part.
- What is different from the last time this ran. A change that looks like the previous forty gets approved quickly. One that touches a new device role or a platform the workflow has not seen before deserves the extra thirty seconds, and the screen is what makes that visible.
- What happens if they do nothing. The configured timeout action, stated on the screen with the deadline: proceed, abort, or escalate (Chapter 8 sets the rules).
Everything else belongs one click deeper. An approval screen that opens with a workflow identifier and a link to the orchestrator has handed the work back to the engineer, which is what the gate was supposed to save them.
Read and write interfaces have different design requirements. A read-only status dashboard can be relatively permissive: any engineer using the NAP can see the current state of their requests. The write path (submitting a request, approving a gate, canceling a running job) needs input validation, a confirmation step, and a clear statement of what will happen before the action is committed.
I have seen teams build portals where the submit button on a new service request form calls the Orchestrator API directly, with no validation layer between the form and the workflow. That is not good because when a user submits a subnet that conflicts with an existing allocation, the error comes back as an unformatted Orchestrator stack trace that bothers the user and gives no clear action point. The balance between being functional and thin is hard: checking an input is not business logic, but owning the rules is. If possible, the Presentation layer should ask the SoT to validate the input before the request reaches the Orchestrator, and turn the SoT’s answer into a clear, actionable error. This keeps every block solving problems within its own boundaries, without cascading problems outside.
Adoption is measurable, and it should be measured, because otherwise “the portal is working” stays a matter of opinion. Chapter 11 measures adoption of the NAP as a whole, and Chapter 15 treats each network service as a product whose interface is this layer. Three signals are specific to the surfaces:
- Share of requests per surface. How many arrive through the portal, the ITSM, the API, and the CLI. A portal carrying 5% of requests after six months has answered the build-versus-integrate question for you.
- Time to first status. How long after submission the requester sees anything other than “submitted”. This is the number the opening story was missing: the automation was fast and the feedback never came.
- Where rejections happen. A validation that fires at the form is cheap. A workflow that fails on input the form should have caught is a form defect, and the ratio between the two tells you whether your validation lives in the right place.
Those numbers usually point the same way. A portal that does not fit how a team already works loses to a simpler integration in the tool everybody opens every morning. An application team submits more consistently through the ITSM it already lives in. An engineer acts faster on an approval that arrives in the chat channel already open during an incident. Where a choice exists between building a new surface and meeting users in the tool they already know, the integration is almost always the right first step.
Command-Line Interface#
The NAP CLI is not the device CLI, which is the domain of Chapter 10. It is a command-line interface to the NAP itself: a tool engineers use to trigger, inspect, and manage automation without opening a browser.
Engineers prefer a CLI for the same reason they prefer shell scripts over GUIs for repetitive work: composability, speed, and scriptability. A CLI command can be aliased, piped into other commands, looped over a device list, incorporated into a runbook, or committed to a repository alongside the infrastructure it manages. A portal click cannot.
During an incident at 02:00, a command typed from memory in five seconds is faster than a portal that takes twenty seconds to navigate and authenticate. Engineers also trust CLI tools more for high-stakes operations: the parameters are visible in the shell history, auditable, and reproducible.
For CI/CD pipelines, a CLI produces structured exit codes (0 for success, non-zero for failure) that map directly to pipeline pass/fail conditions without any parsing. Those pipelines are often other teams’, running on the IDP (Chapter 11): an application release that needs a VLAN before it deploys runs netauto workflow run vlan-deploy --params params.json --wait under a service account scoped to that one workflow. The network change still runs as a change workflow in the Orchestrator; the pipeline only requests it and waits.
Design principles for a NAP CLI:
- Consistent noun-verb command structure (
workflow run,workflow status,request list) that maps predictably to API operations - Machine-readable output via a
--jsonflag so pipeline scripts can parse the result - Environment-aware configuration: API endpoint and token read from a config file or environment variables, not hardcoded into scripts
- The same RBAC that applies to the API applies to the CLI: a token with operator-level permissions cannot trigger admin-level operations regardless of which surface is used
Whether to build one at all is the prior question, and the answer is usually not yet. A NAP CLI is worth building when engineers already script against the API and each has written their own wrapper. At that point you are maintaining several private CLIs, with no shared token handling and no versioning. Before that, a documented API and the orchestrator’s own CLI cover the same ground. The signal to watch for is duplication: when the third engineer writes the same authentication helper, the CLI has paid for itself.
Instant Messaging and Mobile#
Slack, Teams, and similar platforms play a dual role in network automation: they are both a notification channel (the Presentation layer pushes events into them) and an interaction surface (engineers send commands through them). Acknowledging this duality matters for architecture: the same workspace that receives alert notifications should support approval flows, reducing context-switching for engineers who are already monitoring those channels.
Figure 9.3 shows one approval from start to finish, with the API call behind each step.
As an interaction surface, messaging platforms work through bots that translate conversational commands into API calls. The bot is thin: it parses the message, maps it to a Presentation layer API call under the sender’s identity, and formats the response for the channel. Approvals, status queries, and quick actions such as @netbot compliance-check B all work this way. The same RBAC model applies: the bot authenticates engineers through SSO and forwards each request with a token scoped to that engineer’s role, so an engineer with read-only access cannot trigger a workflow through chat any more than through the portal.
This interface has been around for several years, but the arrival of LLMs has completely revolutionized it: what used to be a hardcoded syntax that people struggled to use has become a human-like interaction in natural language. In fact, ChatOps is becoming a more and more common interface as users adopt AI assistants (e.g., ChatGPT) and connect them to agentic tools instead of the pre-configured commands of the first bots. The idea is the same, but the impact and reach increase exponentially.
Mobile serves the people a portal does not reach: a technician in front of a rack, hands busy, who scans a device’s barcode to see its automation state (managed, last deployed 14 days ago, no pending changes) and confirms a line-card replacement. It follows the chat pattern. A phone calls the same API under the technician’s role, and only the screen is smaller.
Documentation and Reporting#
The people who read about the automation, rather than operate it, need two outputs, both generated from live NAP data and never written by hand. Documentation per service combines its SoT definition, its Observability status, and its Orchestrator change history, and runbooks generated from workflow definitions describe what the automation actually does. Reports give managers and auditors periodic summaries: weekly change summaries, compliance exports from the audit trail and the authorization log, and Service Level Agreement (SLA) trends. Templates render both from the data and regenerate on every change.
This book follows the same pattern: written once in Markdown, and rendered to a website, a printed book, and an ebook.
Dashboards follow the split Chapter 7 sets: Observability owns them, and this layer embeds them for other audiences.
Every surface so far assumes the consumer comes to the NAP. The last functionality is about the NAP going to them.
Integrations and Notifications#
The Presentation layer connects to external systems in both directions, and Figure 9.4 shows the two side by side.
Inbound, an integration turns another system’s event into a call to the API layer. An ITSM webhook or a chat command becomes an API request like any other, under the same authentication and RBAC, so integrations add no second way in. Outbound, the NAP reaches systems that are not waiting on a call of their own. An event delivery component inside the Presentation layer does three jobs. It subscribes to the Orchestrator’s status events and routes each one to whoever needs it. It sends the event in the format each destination expects: a ticket update, a chat message, a page, or a webhook. And it keeps trying when a destination does not answer. An event that still fails after the last retry goes to a dead-letter queue, a holding area somebody reviews, instead of disappearing.
At small scale, a single component handles both patterns cleanly. At larger scale, outbound event delivery (with its retry logic, dead-letter queues, and subscription management) typically becomes a distinct component with its own operational concerns: the event delivery box in Figure 9.4. That is why this model separates the two as distinct functionalities.
ITSM Integration#
ITSM platforms occupy two distinct positions in a network automation architecture, panels 2 and 3 of Figure 9.5 in the Solutions Landscape section, and the distinction matters for design:
- The ITSM platform is the Presentation layer: its forms define the user interface, its workflow engine handles approvals and notifications, and the automation API is called from within ITSM workflows. In this model there is no external integration because ITSM is not external to the Presentation layer: it is the Presentation layer.
- A dedicated Presentation layer exists and the ITSM platform is one of the consumers it synchronizes with: requests arrive via ITSM webhooks and status updates flow back to ITSM tickets.
A third role is also common: ITSM as a SoT data source. When the Configuration Management Database (CMDB) holds authoritative asset or service records, the kind Chapter 5 assigns to the asset system, the SoT may federate those records. The discovered state in the same CMDB still belongs to Observability. In this role, ITSM plays no part in the user-facing automation interface.
The rest of this section describes the integration pattern (second point). Choose the ITSM-as-Presentation-layer pattern (first point) when the ITSM platform’s workflow engine, approval model, and notification system cover your request patterns. It saves you a separate layer between users and the blocks.
ITSM integration is what you build when consumers should not need to know the NAP exists. The application team already works in an ITSM. The most usable interface is the one they are already using.
An ITSM form for “New Network Service Request” captures exactly the fields the SoT model needs and submits them in the structured format the API layer expects. The form is the requester’s surface; they never see the API call. On submission, the ITSM calls the API layer with its own service account and passes the requester’s identity with the request. The API layer authorizes the requester’s role, not the service account’s: a shared integration token that carried its own permissions would rebuild the single admin token of the opening story. Then it has the SoT validate the payload and forwards the request to the Orchestrator.
That phrase, “exactly the fields the SoT model needs”, hides the maintenance question: the form lives in a tool another team owns, and the model it mirrors belongs to yours. When the SoT gains a required field, the form keeps submitting without it, and the rejection lands on the requester rather than on whoever changed the model. Treat the form as a versioned consumer of the API like any other. A model change that adds a required field is a breaking change and goes through the deprecation window described earlier. Before it ships, somebody validates the form’s payload against the new schema in the ITSM’s test instance.
After the request fires, the ticket should reflect the workflow state in near real time: “SoT validation complete”, then “Pre-checks running: 24 switches”, then “Approval gate: pending engineer sign-off”, then “Complete: 24/24 switches configured”. This bidirectional synchronization is more complex than a one-shot webhook. Event delivery does it, through a persistent subscription to the Orchestrator’s status events or a polling reconciler that turns them into ticket updates.
In many organizations, the ITSM ticket is the change management record. The Presentation layer must ensure the ticket contains enough information to satisfy change management requirements even if the authoritative audit trail lives in the Orchestrator. The two records serve different audiences: the ITSM ticket serves the requester and their manager; the Orchestrator audit record serves the network engineer and the compliance auditor. Chapter 13 makes the link enforceable, with a gate that refuses a production deployment without an approved ticket.
ITSM integration has limits. It is appropriate for structured, form-driven request workflows with defined states. It is not suitable for real-time operational queries, complex workflow trace inspection, or power-user operations where engineers need to iterate quickly. Design the NAP knowing that ITSM covers the majority of non-engineer requests and a CLI or specific portal covers the rest.
Push Notifications and Webhook Delivery#
Event delivery’s routing is configuration, not code. When a workflow completes, reaches an approval gate, or fails, engineers receive failure details in a dedicated operations channel, application teams receive completion status through the ITSM ticket, and on-call engineers receive critical failures through the paging system.
The opening story showed what happens without it. The application team waited three to five business days for work that had already finished, not because the automation was slow but because nothing told them it was done. A workflow that completes without reaching the person who asked for it has not completed from their point of view, and the failure is invisible from inside the NAP: every dashboard shows green while somebody waits.
Webhook delivery is the outbound counterpart to incoming webhooks. A caller that registered a callback URL when triggering a workflow receives the result via HTTP POST when the workflow completes. Delivery guarantees, retry policy, and payload schema are part of the API contract, which means they have to be written down.
The workable default is at-least-once: retry with exponential backoff for a bounded number of attempts, then dead-letter the delivery and raise an alert; never drop it silently. At-least-once means the consumer will sometimes receive the same completion twice, so every payload carries an event identifier and the workflow run identifier, and the consumer deduplicates on them, as Chapter 8 requires for inbound events. Sign the payload so the receiver can tell your callback from anybody else’s POST. A callback that fails silently, with no retry, no log, and no alert, is worse than no callback at all, because the caller assumes the result was delivered.
Those three functionalities describe what the layer has to provide. What is unusual here is how little of it you should expect to build.
Solutions Landscape#
The Presentation chapter has a different relationship with the solutions landscape than any other chapter in Part 2. There are almost no tools that exist exclusively as Presentation. Every block already has a UI. The architectural question is not “which Presentation tool should I use?” It is: when do I accept the embedded UIs of each block, and when do I build a dedicated Presentation layer above them?
The tools listed here are examples for explanatory purposes, not recommendations. Evaluate them against your team’s capabilities, existing tooling, and operational constraints.
Two models coexist in mature NAPs.
Embedded model: use the built-in UI of each block for its audience. Engineers use the orchestrator portal for workflow management, the SoT web UI for inventory, the observability dashboards for network health. This works when all consumers are engineers who understand the tooling and when cross-block views are not needed. The operational overhead is low: no additional systems to run.
Dedicated Presentation model: build or adopt a layer above the blocks that provides a unified experience. Necessary when non-engineers need access, when you need cross-block status in a single view, or when the RBAC requirements do not map cleanly to the built-in permissions of individual tools.
In practice those two models give three places the layer can live, and Figure 9.5 draws them side by side.
The first panel is the embedded model. The other two are the dedicated one in two forms: the ITSM plays the whole layer, or you put an API layer of your own under every surface. That API layer is the same whether the surfaces above it are the ones people already use, such as the ITSM, a CLI, or chat, or include a portal you build. The portal is an optional addition on top, not a different architecture.
The products on the market fall into six approaches, and each one fills a panel:
- Embedded per-block UI (AWX portal, Nautobot UI, Grafana), panel 1: for engineering audiences, when per-tool RBAC is acceptable and no cross-block view is needed.
- ITSM as the primary interface (ServiceNow, Jira Service Management), panel 2, or a surface of panel 3: for enterprises whose non-engineers already work in the ITSM, with form-driven request flows.
- Custom self-service portal (a React, Vue, or Django application), the optional portal of panel 3: when non-engineers need access, with unified RBAC and self-service approvals.
- API gateway (Kong, AWS API Gateway, NGINX), the API layer of panel 3: the API Gateway pattern’s routing and shared concerns, when several consumers need different authentication, rate limiting, and enforced versioning.
- Network-native portals (Itential, the NSO northbound UI), panel 3 bought rather than built: network-centric products with built-in RBAC and ITSM adapters.
- Developer portal (Backstage), a surface of panel 3 shared with other internal platforms: for large organizations with many internal platforms that need one entry point.
Choosing Between Them#
The decision to build a dedicated Presentation layer should not be the default. Figure 9.6 shows the three questions to ask first. Each of its four outcomes lands on one panel of Figure 9.5: the first two on panels 1 and 2, the last two on panel 3, with or without a portal.
The figure carries the three branch points. Three further conditions do not branch, but they constrain the answer whichever path you take.
Centralized access control is required regardless. If you need authorization that spans multiple blocks uniformly, you need an API layer with centralized auth, whatever client surfaces sit on top of it. That requirement is independent of the portal question.
Commitment matters more than capability. If you are not certain you can maintain a custom portal for years, start with ITSM integration and build a portal only when ITSM proves insufficient for the access patterns you actually have.
Some inputs do not fit a form. Complex fields (YAML snippets, topology parameters, subnet allocation previews), inline validation against the SoT model, or rich status views with per-device drill-down typically exceed what ITSM form builders support cleanly. When consumers regularly need that level of specificity, a portal is worth its operational cost.
The most common mistake is building a custom portal before validating that the need for it is real.
One question decides this more often than any architectural argument: who maintains it. A custom portal is a web application. It needs frontend skills, a release process, dependency patching, and somebody reachable when it breaks at the same moment the network does. A network team without those skills, and without a reliable way to borrow them, should not build one however well the architecture argues for it. That is a question about the shape of the team rather than the shape of the system, and Chapter 14 covers the skills a NAP asks an organization to grow.
Understanding the internals of embedded UIs is important for customization decisions. NetBox and Nautobot are built on Django (Python); their web interface and REST API are Django views and Django REST Framework endpoints. Infrahub uses FastAPI. The “Presentation component” of these SoT tools is a mature web framework: customizable through plugins, custom views, and serializer extensions. The good (well-documented, production-grade) and the bad (you are customizing inside a framework designed primarily for the SoT use case, not for the self-service portal use case).
The Presentation layer should be thin. It is a surface, not a system. It translates, authenticates, and routes; business logic belongs to the Orchestrator and the Source of Truth. The moment it starts making automation decisions, retrying failures on its own, or holding the rules about what counts as a valid change, the boundary has collapsed and you will not be able to evolve either side independently.
That is the layer in principle. The example that follows puts one request through it, seen from three seats: the requester, the approver, and the auditor.
Implementation Example#
Scenario: The same VLAN service request, seen from the outside. An application team needs app-payments in Building B, a network engineer has to approve it mid-flight, and three months later an auditor asks who authorized it. None of the three should have to learn the NAP to get what they need.
Requirements:
- One API contract behind every surface, with authentication and authorization enforced there, once
- A request path through the system the requester already uses every day
- An approval surface with enough detail for an engineer to decide, and no more
- Status in the requester’s own vocabulary, not job identifiers
- A read-only audit view that answers who, when, and which version, months later
- No business logic in any of it: the Presentation layer surfaces what the other blocks decide
Blocks involved:
- Source of Truth: validates the request against the network model, and holds the before-and-after record the auditor reads
- Orchestration: runs the workflow, emits the status events the surfaces subscribe to, and pauses at the approval gate
- Execution and Observability: do the work and confirm it, invisibly to all three audiences
- Presentation:
- API Layer: three role-scoped tokens, one contract, authorization enforced once
- User Interfaces: an ITSM form for the requester, a custom portal for the engineer and the auditor
- Integrations and Notifications: inbound from the ITSM, outbound as ticket updates, approval requests, and paging
This example names no products on purpose, as the rest of Part 2 does. What transfers is which surface serves which audience, and the fact that all of them share one API contract underneath.
By now the campus VLAN request has been modeled, stored, deployed, validated, and coordinated end-to-end. Every one of those chapters described it from the inside, as something the NAP does. This one looks at it from the outside, starting with the application developer who filled in the form.
This campus uses a dedicated layer, the third panel of Figure 9.5, built from three components. The ITSM is the primary interface for the broader organization: application teams submit requests and track status entirely within the ITSM, which routes through the Presentation layer’s API as part of its own workflow automation. A custom portal with an audit view serves the engineering and compliance audiences: network engineers review pre-check results and act on approval gates there, and security auditors query composite change records through its read-only audit interface. Both surfaces share the same API layer, which sits within the Presentation layer itself and enforces authentication, RBAC, and versioning before any request reaches the underlying blocks.
Three Audiences, Two Surfaces#
The API layer enforces three of the four roles defined earlier. The application team holds operator: through the ITSM, whose service account passes each requester’s identity, they read their own requests and submit new ones. The network engineer’s engineer token reads all requests in its scope and approves or rejects gates. The auditor’s read-only token queries audit records across the full NAP, with no write access. admin plays no part in this flow, which is the point of keeping it a separate role. Neither surface bypasses the API layer. Figure 9.7 shows the result.
The application team, through the ITSM. They submit requests and want to know when the service is ready and what happened if it failed. They should never need to open the orchestrator or the SoT: the ITSM is their entry point, and the NAP’s API is something they never see.
The application developer fills in an ITSM form: service name (
app-payments), building (B), and profile (standard), plus the requesting team and a business justification for the ticket. On submission, the ITSM calls the NAP’s API layer directly as part of its own workflow automation. The API layer authenticates the ITSM’s service account, authorizes the developer’s ownoperatorrole, asks the SoT to validate the payload against its data model, and forwards the structured request to the Orchestrator.Validation can fail: the requested building may match no site in the SoT, or the profile may not be offered there. The SoT then rejects the request, and the API layer returns a structured error at once, before any Orchestrator workflow starts. The ITSM updates the ticket with a clear failure reason: “building C not found in site registry” or “profile high-security is not offered in building B”. The application team sees the rejection in their ticket and can correct the request without involving a network engineer. No partial workflow state is created and no Saga rollback is needed, because the workflow never started.
The guardrails the opening story lacked show up here too. The same week, a release pipeline owned by the payments team retries a failed submission in a loop under its own service token. After 20 requests in a minute it crosses the per-token limit. The API layer answers
429withRetry-After: 60, and the Orchestrator’s queue never sees the excess. The duplicates that did get through carry the same deduplication key, so the Orchestrator starts one workflow, not 20.As the workflow progresses, the Presentation layer turns the Orchestrator’s status events into the ticket updates listed in the ITSM Integration section. The application team watches their ticket update without knowing that the Orchestrator, the SoT, or the Executor exist.
The network engineer, through the portal. They receive the approval gate notification the workflow raises (Chapter 8, step 3), and they need the pre-check results for the 24 target switches, a decision, and a way to inspect the outcome. Their surface is more detailed than the ITSM form and still bounded to their team’s scope.
When the workflow reaches the approval gate, the Orchestrator pauses and emits an event. The Presentation layer receives it, identifies the network engineer responsible for Building B, and sends an approval request to their Slack channel with a direct link to the gate review page. The review page shows the pre-check results per switch: which passed, which failed, which were skipped, and why. The engineer approves or rejects from the portal. The action is logged: who approved, from which interface, at what time, under which token.
Separation of duties holds at the same door. A network engineer who submitted a request for a lab VLAN in Building B opens its gate and finds no approve button. A direct API call fails too, with
403, because the Orchestrator’s rule forbids approving your own request (Chapter 8). The refusal goes into the authorization log like any approval.The security auditor, through the portal’s read-only view. They arrive three months later asking who requested this VLAN, who approved it, which version of the workflow ran, and what the before-and-after state of the switches was. Their surface can trigger nothing at all.
Three months later, the security auditor queries the Presentation layer API: “show me the full change record for VLAN app-payments, Building B”. The read-only audit endpoint aggregates three sources:
- The Orchestrator’s audit record (the Traceability section of Chapter 8): which workflow version ran, every step input and output, any Saga compensation actions
- The SoT change history (Chapter 5): before-and-after state of the VLAN definition
- The Presentation layer’s own authorization log: who submitted the request, which token they used, who approved the gate and when, and any refused attempts on the same request
The response is a structured document the auditor can attach to the change management record. None of the three underlying blocks was designed to produce this composite record independently. The Presentation layer assembled it from their individual APIs under the auditor’s read-only token.
The same six-step workflow from Chapter 8 served three audiences through two surfaces, and none of them had to learn how the NAP works.
Summary#
Before this chapter, the focus was on the inner blocks of the architecture. But nothing sits alone. The NAP has external integrations with humans or other systems, and the Presentation layer offers this capability via an API layer and user interfaces.
The API layer is the foundation. It exposes a consistent and usable layer to the whole platform, hiding the inner details, which provides the implicit guardrails to operate it effectively, supporting different interactions, including agentic ones via MCP. In all cases, it ensures security boundaries and scalable and reliable performance, covered in Part 3.
The adoption of network automation depends a lot on providing the proper user interfaces to each persona, adjusting to their needs and capabilities. There is no one interface to rule them all. Adapt to the audiences, make the best one for each, and sometimes acknowledge that some users may need direct interfaces with the inner blocks for some specific interactions. And do not forget about outgoing interactions: how the NAP will actively communicate with external entities to provide the fastest response when needed.
Finally, to close Part 2, let us focus on the Network itself, covered in Chapter 10.
References#
- Designing Web APIs, Brenda Jin, Saurabh Sahni, and Amir Shevat (O’Reilly, 2018). API design, versioning, and developer experience; the basis of the API Layer section.
- API Design Patterns, JJ Geewax (Manning, 2021). A systematic catalog of resource layout, naming, and interaction patterns for consistent, scalable APIs.
- Building Microservices, 2nd Edition, Sam Newman (O’Reilly, 2021). API gateways and authentication at the boundary.
💬 Found something to improve? Send feedback for this chapter