{ "properties": { "auto_start": { "type": "boolean", "description": "Start the topology when opened" }, "revision": { "type": "integer", "description": "Version of the .gns3 specification." }, "type": { "enum": [ "topology" ], "description": "Type of file. It's always topology" }, "project_id": { "maxLength": 36, "minLength": 36, "type": "string", "description": "Project UUID", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" }, "version": { "type": "string", "description": "Version of the GNS3 software which have update the file for the last time" }, "topology": { "properties": { "nodes": { "items": { "properties": { "properties": { "type": "object", "description": "Properties specific to an emulator" }, "console": { "type": [ "integer", "null" ], "description": "Console TCP port", "maximum": 65535, "minimum": 1 }, "node_type": { "enum": [ "cloud", "ethernet_hub", "ethernet_switch", "frame_relay_switch", "atm_switch", "docker", "dynamips", "vpcs", "virtualbox", "vmware", "iou", "qemu" ], "description": "Type of node" }, "symbol": { "minLength": 1, "type": "string", "description": "Symbol of the node" }, "project_id": { "maxLength": 36, "minLength": 36, "type": "string", "description": "Project UUID", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" }, "x": { "type": "integer", "description": "X position of the node" }, "y": { "type": "integer", "description": "Y position of the node" }, "node_directory": { "type": [ "null", "string" ], "description": "Working directory of the node. Read only" }, "console_type": { "enum": [ "serial", "vnc", "telnet", null ], "description": "Console type" }, "width": { "type": "integer", "description": "Width of the node" }, "z": { "type": "integer", "description": "Z position of the node" }, "compute_id": { "type": "string", "description": "Compute identifier" }, "console_host": { "minLength": 1, "type": "string", "description": "Console host" }, "height": { "type": "integer", "description": "Height of the node" }, "name": { "minLength": 1, "type": "string", "description": "Node name" }, "command_line": { "type": [ "null", "string" ], "description": "Command line use to start the node" }, "label": { "properties": { "text": { "type": "string" }, "rotation": { "type": "integer", "description": "Rotation of the label" }, "y": { "type": "integer", "description": "Relative Y position of the label" }, "style": { "type": "string", "description": "SVG style attribute" }, "x": { "type": "integer", "description": "Relative X position of the label" } }, "additionalProperties": false, "type": "object", "required": [ "text", "x", "y" ] }, "node_id": { "maxLength": 36, "minLength": 36, "type": "string", "description": "Node UUID", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" }, "status": { "enum": [ "stopped", "started", "suspended" ], "description": "Status of the node" } }, "type": "object", "additionalProperties": false, "$schema": "http://json-schema.org/draft-04/schema#", "description": "A node object" }, "type": "array", "description": "Nodes elements" }, "drawings": { "items": { "properties": { "svg": { "type": "string", "description": "SVG content of the drawing" }, "project_id": { "maxLength": 36, "minLength": 36, "type": "string", "description": "Project UUID", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" }, "x": { "type": "integer", "description": "X property" }, "drawing_id": { "maxLength": 36, "minLength": 36, "type": "string", "description": "Drawing UUID", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" }, "rotation": { "type": "integer", "description": "Rotation of the element", "maximum": 360, "minimum": 0 }, "y": { "type": "integer", "description": "Y property" }, "z": { "type": "integer", "description": "Z property" } }, "additionalProperties": false, "type": "object", "$schema": "http://json-schema.org/draft-04/schema#", "description": "An drawing object" }, "type": "array", "description": "Drawings elements" }, "links": { "items": { "properties": { "nodes": { "items": { "properties": { "port_number": { "type": "integer", "description": "Port number" }, "adapter_number": { "type": "integer", "description": "Adapter number" }, "node_id": { "maxLength": 36, "minLength": 36, "type": "string", "description": "Node UUID", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" }, "label": { "properties": { "text": { "type": "string" }, "rotation": { "type": "integer", "description": "Rotation of the label" }, "y": { "type": "integer", "description": "Relative Y position of the label" }, "style": { "type": "string", "description": "SVG style attribute" }, "x": { "type": "integer", "description": "Relative X position of the label" } }, "additionalProperties": false, "type": "object", "required": [ "text", "x", "y" ] } }, "additionalProperties": false, "type": "object", "required": [ "node_id", "adapter_number", "port_number" ] }, "type": "array", "description": "List of the VMS" }, "project_id": { "maxLength": 36, "minLength": 36, "type": "string", "description": "Project UUID", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" }, "capture_file_name": { "type": [ "string", "null" ], "description": "Read only property. The name of the capture file if capture is running" }, "capture_file_path": { "type": [ "string", "null" ], "description": "Read only property. The full path of the capture file if capture is running" }, "link_id": { "maxLength": 36, "minLength": 36, "type": "string", "description": "Link UUID", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" }, "capturing": { "type": "boolean", "description": "Read only property. True if a capture running on the link" } }, "type": "object", "$schema": "http://json-schema.org/draft-04/schema#", "additionalProperties": false, "required": [ "nodes" ], "description": "A link object" }, "type": "array", "description": "Link elements" }, "computes": { "items": { "properties": { "version": { "type": [ "string", "null" ], "description": "Version of the GNS3 remote compute server" }, "compute_id": { "type": "string", "description": "Server identifier" }, "host": { "type": "string", "description": "Server host" }, "name": { "type": "string", "description": "Server name" }, "cpu_usage_percent": { "type": [ "number", "null" ], "description": "CPU usage of the compute. Read only", "maximum": 100, "minimum": 0 }, "port": { "type": "integer", "description": "Server port" }, "memory_usage_percent": { "type": [ "number", "null" ], "description": "RAM usage of the compute. Read only", "maximum": 100, "minimum": 0 }, "connected": { "type": "boolean", "description": "Whether the controller is connected to the compute server or not" }, "user": { "type": [ "string", "null" ], "description": "User for authentication" }, "protocol": { "enum": [ "http", "https" ], "description": "Server protocol" } }, "type": "object", "required": [ "compute_id", "protocol", "host", "port", "name" ], "additionalProperties": false, "$schema": "http://json-schema.org/draft-04/schema#", "description": "Request validation to a GNS3 compute object instance" }, "type": "array", "description": "Computes servers" } }, "additionalProperties": false, "type": "object", "required": [ "nodes", "links", "drawings", "computes" ], "description": "The topology content" }, "name": { "type": "string", "description": "Name of the project" } }, "type": "object", "$schema": "http://json-schema.org/draft-04/schema#", "additionalProperties": false, "required": [ "project_id", "type", "revision", "version", "name", "topology" ], "description": "The topology" }