NetworkBodySpec – Infra API – MediaKind
NetworkBodySpec
This documentation covers the specifications and requirements for the Network Body.
Overview
The NetworkBodySpec outlines the structure, expected fields, and data types that can be used within the network body.
Components
- Network ID: Unique identifier for the network (string).
- Network Name: The name of the network (string).
- Nodes: A list of nodes associated with the network.
Nodes Structure
Each node contains:
- Node ID: Unique identifier for the node (string).
- Node Type: Specifies the type of node (string).
- Status: Current status of the node (string).
Example JSON Structure
{
"networkId": "12345",
"networkName": "Main Network",
"nodes": [
{
"nodeId": "node1",
"nodeType": "router",
"status": "active"
},
{
"nodeId": "node2",
"nodeType": "switch",
"status": "inactive"
}
]
}
Conclusion
This specification serves as a guideline for developers to structure their network data accurately.