---
title: "Get Topology by ID"
method: GET
path: "/api/v1/topology/{id}"
tags: ["Topologies"]
---

# Get Topology by ID

`GET /api/v1/topology/{id}`

## Path parameters

- `id` string, uuid, required

## Response `200`

Topology found

- ApiResponseTopology
  - `data` object — The result payload. Omitted on failure.
    - `network_id` string, uuid, required — The network this entity belongs to.
    - `options` TopologyOptions, required
      - `local` TopologyLocalOptions, required
        - `bundle_edges` boolean — Collapse parallel edges between the same pair of nodes into one.
        - `hide_edge_types` EdgeTypeDiscriminants[] — Edge types to leave out of the drawing.
        - `no_fade_edges` boolean — Keep unrelated edges at full opacity when something is selected.
        - `show_minimap` boolean — Show the minimap.
        - `tag_filter` TopologyTagFilter — Filter settings for hiding entities by tag in topology visualization.
          - `hidden_host_tag_ids` string[] — Host tag IDs to hide (hosts with these tags will fade out)
          - `hidden_service_tag_ids` string[] — Service tag IDs to hide (services with these tags will be hidden from nodes)
          - `hidden_subnet_tag_ids` string[] — Subnet tag IDs to hide (subnets with these tags will fade out)
      - `request` TopologyRequestOptions, required
        - `container_rules` object — Rules deciding how nodes are grouped into containers.
        - `element_rules` IdentifiedRuleElementRule[] — Rules deciding how entities are placed and inlined within containers.
          - `id` string, uuid, required — Server-assigned unique identifier.
          - `rule` union, required — Rules that organize nodes within a container into sub-groups.
            - object — One subcontainer per group of service categories.
              - …
            - object — One subcontainer per group of tags.
              - …
            - 'ByHypervisor'
            - 'ByContainerRuntime'
            - 'ByStack'
            - 'ByTrunkPort' — Groups trunk ports (ports with tagged VLANs) into a "Trunk Ports" subcontainer. Higher priority than ByVLAN — prevents trunk ports from being grouped by VLAN.
            - 'ByVLAN' — Groups access ports by their native VLAN ID into per-VLAN subcontainers.
            - 'ByPortOpStatus' — Groups ports by operational status (Up, Down, etc.) into per-status subcontainers.
        - `hide_entities` object — Entity types hidden per view. Keyed by TopologyView, values are entity types (matching those declared as container/element/inline in the view's element_config). Hides every manifestation of the entity in that view — element nodes, container nodes, and inline rows on element cards. Supersedes the old `hide_ports` (L3-only, inline-only).
        - `hide_metadata_values` object — Generic per-(view, entity, filter) hide-set for metadata filters (Category, Virtualization, etc). Supersedes the old `hide_service_categories`; nested so JSON keys are strings all the way down.
    - `created_at` string, date-time, required — When this record was first created.
    - `id` string, uuid, required — Server-assigned unique identifier.
    - `updated_at` string, date-time, required — When this record was last modified.
  - `error` string, nullable — Human-readable failure message. Omitted on success.
  - `meta` ApiMeta, required — API metadata included in all responses
    - `api_version` integer, required — API version (integer, increments on breaking changes)
    - `server_version` string, required — Server version (semver)
  - `success` boolean, required — `true` when the request succeeded. `false` responses carry `error` instead of `data`.

## Other responses

- `404` — Topology not found

## Changes

- **2026-08-03** `28e466341947` — 2 info
  - the `container_rules` response's property default value changed from `{"Application":[{"id":"398d0287-bc2d-4753-99bc-b5ac170172b5","rule":{"ByApplication":{"tag_ids":[]}}}],"L2Physical":[{"id":"385a9401-906a-4f8e-8f4f-c02564e8d173","rule":"ByHost"}],"L3Logical":[{"id":"3b5aa500-b9cb-4f5f-a94a-52412a1815b0","rule":"BySubnet"},{"id":"32477e07-d47c-44a6-90a7-f7666f5408e4","rule":"MergeContainerBridges"}],"Workloads":[{"id":"385a9401-906a-4f8e-8f4f-c02564e8d173","rule":"ByHost"}]}` to `{"Application":[{"id":"a84691d3-74d0-4967-ae76-cf510fb432a7","rule":{"ByApplication":{"tag_ids":[]}}}],"L2Physical":[{"id":"b49472d1-1cd4-4340-b9d2-19674a0cfedb","rule":"ByHost"}],"L3Logical":[{"id":"31d4c8e7-77be-449c-b2f9-0ab5836924f8","rule":"BySubnet"},{"id":"9675598e-a790-4199-a294-66a36ee34c5e","rule":"MergeContainerBridges"}],"Workloads":[{"id":"b49472d1-1cd4-4340-b9d2-19674a0cfedb","rule":"ByHost"}]}` for the status `200`
  - the `element_rules` response's property default value changed from `{"id":"b639a20c-3d84-4365-871f-4bf152ddd0a8","rule":"ByTrunkPort"}, {"id":"300857a5-6b64-4926-853f-86e4f0bc97ac","rule":"ByVLAN"}, {"id":"f3cb5129-6282-4814-b8ab-e440af777788","rule":"ByPortOpStatus"}, {"id":"d2e85250-eb06-40e3-b8e8-f231ade2bead","rule":{"ByServiceCategory":{"categories":["NetworkCore","NetworkAccess","RemoteAccess","Workstation","Mobile","Printer","OpenPorts"],"is_infra_rule":true,"title":"Infrastructure"}}}, {"id":"4f4a8d39-d504-45ef-9d31-f6db1755d122","rule":{"ByTag":{"tag_ids":[],"title":null}}}, {"id":"59b8b695-b1c5-485e-b32c-41edb0129dc7","rule":"ByHypervisor"}, {"id":"6e0c3d69-dc0a-40e9-ada6-47a53506d054","rule":"ByContainerRuntime"}, {"id":"645619b3-5092-49b1-b073-cc583e8b9790","rule":"ByStack"}` to `{"id":"283ff095-7f0c-4c8d-a63e-8be4e9a7bb61","rule":"ByTrunkPort"}, {"id":"b4f0758b-ce9a-43ac-802a-e1f385b65079","rule":"ByVLAN"}, {"id":"3a622453-ccf7-45dd-b4f3-e6b3ffb33e51","rule":"ByPortOpStatus"}, {"id":"9ac43a4b-758c-4052-a760-4cff987bfea3","rule":{"ByServiceCategory":{"categories":["NetworkCore","NetworkAccess","RemoteAccess","Workstation","Mobile","Printer","OpenPorts"],"is_infra_rule":true,"title":"Infrastructure"}}}, {"id":"f9f4444e-f370-44c7-9247-548c0dceb468","rule":{"ByTag":{"tag_ids":[],"title":null}}}, {"id":"c760800f-c45d-4ad1-91ab-ece194327a05","rule":"ByHypervisor"}, {"id":"0471f9e4-1610-4734-9dca-540b2d871dc5","rule":"ByContainerRuntime"}, {"id":"88ce46ee-7577-47c3-b8f9-e1ec4944f66b","rule":"ByStack"}` for the status `200`
- …earlier changes not shown

[Full history](https://skmtc.dev/scanopy/apis/scanopy-api/changes/api/v1/topology/:id/get.md)

---

[API](https://skmtc.dev/scanopy/apis/scanopy-api.md) · [All operations](https://skmtc.dev/scanopy/apis/scanopy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scanopy/scanopy-api/revisions/28e466341947/schema)
