mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
API in order to get the list of IOU, Dynamips, Qemu images
This commit is contained in:
1 parent
5a4ffae6a2
commit
bca90bc563
14 files changed
+218
-36
No files matched your search
@@ -898,3 +898,21 @@ VM_CONFIGS_SCHEMA = {
|
||||
"additionalProperties": False,
|
||||
"required": ["startup_config_content", "private_config_content"]
|
||||
}
|
||||
|
||||
VMS_LIST_SCHEMA = {
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"description": "List available Dynamips images",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"filename": {
|
||||
"description": "Image filename",
|
||||
"type": ["string"]
|
||||
},
|
||||
},
|
||||
}
|
||||
],
|
||||
"additionalProperties": False,
|
||||
}
|
||||
@@ -323,3 +323,21 @@ IOU_INITIAL_CONFIG_SCHEMA = {
|
||||
"additionalProperties": False,
|
||||
"required": ["content"]
|
||||
}
|
||||
|
||||
IOU_LIST_VMS_SCHEMA = {
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"description": "List available IOU images",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"filename": {
|
||||
"description": "Image filename",
|
||||
"type": ["string"]
|
||||
},
|
||||
},
|
||||
}
|
||||
],
|
||||
"additionalProperties": False,
|
||||
}
|
||||
@@ -397,3 +397,21 @@ QEMU_BINARY_LIST_SCHEMA = {
|
||||
},
|
||||
"additionalProperties": False,
|
||||
}
|
||||
|
||||
QEMU_LIST_IMAGES_SCHEMA = {
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"description": "List available QEMU images",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"filename": {
|
||||
"description": "Image filename",
|
||||
"type": ["string"]
|
||||
},
|
||||
},
|
||||
}
|
||||
],
|
||||
"additionalProperties": False,
|
||||
}
|
||||
Reference in new issue
Block a user