get_topology
Fetch Prisma SD-WAN AnyNet topology summaries or full link details, filterable by site/status, with optional underlay derivation via VPN leg resolution.
Instructions
Return AnyNet topology with careful ID semantics preserved.
Summary mode returns counts and links that are not up. Full mode requires a
site or status filter to avoid flooding the model. view='basenet' derives
the underlay: it takes VPN leg IDs from AnyNet and resolves each through live
vpnlink status, exposing element/interface-level underlay information. A
link's path_id and controller anynet_link_id are kept distinct.
Args:
detail: summary (default) returns link/node counts plus only the
links that are not up. full returns every matching link and
requires site or status to be set — a tenant-wide full dump
is refused rather than flooding the response. node_count
reflects the nodes array the controller's AnyNet payload
actually returns, which can legitimately be 0 on tenants where
the controller reports links only — a 0 node count alongside a
non-zero link count is not an error, and link records still name
their endpoints.
site: Site name or controller ID to scope the topology to. Required
for detail="full" (unless status is set) and for
view="basenet".
status: Filter links to one status value (e.g. "up"), case
insensitive. Can substitute for site when detail="full".
view: anynet (default) returns AnyNet-level links. basenet
derives the underlay by resolving each AnyNet link's VPN legs
through live status lookups — one API call per leg, capped at 100
legs per call (the server fan-out ceiling) and resumed via
leg_offset. Requires site.
leg_offset: For view="basenet" only: index into the full VPN-leg
list to resume from — use the previous response's
next_leg_offset. Must be >= 0. Ignored for view="anynet".
cursor: Opaque pagination token copied from a previous response's
next_cursor. Omit on the first call.
limit: Max links to return in this page. Omit to use the server
default page size (50; max 200).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site name or controller ID to scope the topology to. Required for `detail="full"` (unless `status` is set) and for `view="basenet"`. | |
| view | No | `anynet` (default) returns AnyNet-level links. `basenet` derives the underlay by resolving each AnyNet link's VPN legs through live status lookups — one API call per leg, capped at 100 legs per call (the server fan-out ceiling) and resumed via `leg_offset`. Requires `site`. | anynet |
| limit | No | Max links to return in this page. Omit to use the server default page size (50; max 200). | |
| cursor | No | Opaque pagination token copied from a previous response's `next_cursor`. Omit on the first call. | |
| detail | No | `summary` (default) returns link/node counts plus only the links that are not up. `full` returns every matching link and requires `site` or `status` to be set — a tenant-wide full dump is refused rather than flooding the response. `node_count` reflects the `nodes` array the controller's AnyNet payload actually returns, which can legitimately be 0 on tenants where the controller reports links only — a 0 node count alongside a non-zero link count is not an error, and link records still name their endpoints. | summary |
| status | No | Filter links to one status value (e.g. `"up"`), case insensitive. Can substitute for `site` when `detail="full"`. | |
| leg_offset | No | For `view="basenet"` only: index into the full VPN-leg list to resume from — use the previous response's `next_leg_offset`. Must be >= 0. Ignored for `view="anynet"`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |