|
| 1 | +# Model Objects |
| 2 | + |
| 3 | +Model objects are the nodes in your architecture graph. They represent the actors, systems, services, and components that make up your software architecture. |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## Object types |
| 8 | + |
| 9 | +IcePanel uses the <Tooltip tip="Framework for visualising software architecture through four levels of abstraction: Context, Containers, Components, and Code">C4 model</Tooltip>'s levels of abstraction. Each object type maps to a C4 level: |
| 10 | + |
| 11 | +| Type | C4 Level | Description | |
| 12 | +| --- | --- | --- | |
| 13 | +| `root` | — | The root node of every [domain](/core-concepts/domains). There is exactly one per domain. All top-level systems and actors are children of the root. | |
| 14 | +| `actor` | Level 1 | A person or external role that interacts with your architecture (e.g. "Customer", "Admin") | |
| 15 | +| `system` | Level 1 | A top-level software system (e.g. "IcePanel") | |
| 16 | +| `group` | Level 1 | A visual grouping (e.g. "Worker Pool", "Subnet") | |
| 17 | +| `app` | Level 2 | A deployable unit (container) inside a system: a service, web app, mobile app, or queue | |
| 18 | +| `store` | Level 2 | A persistent data store inside a system: a database, blob store, or cache | |
| 19 | +| `component` | Level 3 | An internal building block inside an `app` or `store` | |
| 20 | + |
| 21 | +--- |
| 22 | + |
| 23 | +## The parent–child hierarchy |
| 24 | + |
| 25 | +Model objects form a tree. Every object except `root` has a `parentId` pointing to its parent: |
| 26 | + |
| 27 | +``` |
| 28 | +root |
| 29 | +├── actor: Customer |
| 30 | +├── system: Payment Service |
| 31 | +│ ├── app: API Gateway |
| 32 | +│ │ ├── component: Auth Middleware |
| 33 | +│ │ └── component: Rate Limiter |
| 34 | +│ ├── app: Payment Processor |
| 35 | +│ └── store: Transactions DB |
| 36 | +└── system: Auth Platform (external) |
| 37 | +``` |
| 38 | + |
| 39 | +--- |
| 40 | + |
| 41 | +## Creating objects |
| 42 | + |
| 43 | +To create a new object, specify the `landscapeId` and either the `versionId` or `latest`: |
| 44 | +<EndpointRequestSnippet endpoint="POST /landscapes/{landscapeId}/versions/{versionId}/model/objects" /> |
| 45 | + |
| 46 | +--- |
| 47 | + |
| 48 | +## Filtering objects |
| 49 | + |
| 50 | +To find the root object (required as `parentId` when creating top-level objects), use the query parameter `?filter[type]=root` |
| 51 | + |
| 52 | +<EndpointRequestSnippet endpoint="GET /landscapes/{landscapeId}/versions/{versionId}/model/objects" /> |
| 53 | + |
| 54 | +The `GET /model/objects` endpoint supports the following filters: |
| 55 | + |
| 56 | +| Query parameter | Description | |
| 57 | +| --- | --- | |
| 58 | +| `filter[type]` | Object type | |
| 59 | +| `filter[status]` | Status lifecycle value | |
| 60 | +| `filter[parentId]` | Direct parent ID | |
| 61 | +| `filter[domainId]` | Domain ID | |
| 62 | +| `filter[external]` | `true` / `false` | |
| 63 | +| `filter[tagIds][]` | One or more tag IDs | |
| 64 | +| `filter[teamIds][]` | One or more team IDs | |
| 65 | +| `filter[technologyIds][]` | One or more technology IDs | |
| 66 | +| `filter[labels][key]` | Label key-value pair | |
| 67 | +| `filter[name]` | Partial name match | |
| 68 | +| `filter[linked]` | `true` to return only objects with at least one link | |
| 69 | + |
| 70 | +--- |
| 71 | + |
| 72 | +## Status lifecycle |
| 73 | + |
| 74 | +Objects and connections share a four-state lifecycle representing their architectural status: |
| 75 | + |
| 76 | +``` |
| 77 | +live → deprecated → removed → future |
| 78 | +``` |
| 79 | + |
| 80 | +| Status | Description | |
| 81 | +| --- | --- | |
| 82 | +| `live` | Current, active element | |
| 83 | +| `future` | Planned but not yet built | |
| 84 | +| `deprecated` | Still in use but being phased out | |
| 85 | +| `removed` | Retired, kept for historical reference | |
| 86 | + |
| 87 | +Use the `filter[status]` query parameter to retrieve only objects with a given status. |
| 88 | + |
| 89 | +--- |
| 90 | + |
| 91 | +## Related concepts |
| 92 | + |
| 93 | +- [Model Connections](/core-concepts/model-connections) |
0 commit comments