mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 15:21:13 +02:00
Return a compute name it could be different of compute id
This commit is contained in:
6 files changed
+48
-5
No files matched your search
@@ -25,6 +25,10 @@ COMPUTE_CREATE_SCHEMA = {
|
||||
"description": "Server identifier",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "Server name",
|
||||
"type": "string"
|
||||
},
|
||||
"protocol": {
|
||||
"description": "Server protocol",
|
||||
"enum": ["http", "https"]
|
||||
@@ -59,6 +63,10 @@ COMPUTE_OBJECT_SCHEMA = {
|
||||
"description": "Server identifier",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "Server name",
|
||||
"type": "string"
|
||||
},
|
||||
"protocol": {
|
||||
"description": "Server protocol",
|
||||
"enum": ["http", "https"]
|
||||
@@ -85,5 +93,5 @@ COMPUTE_OBJECT_SCHEMA = {
|
||||
}
|
||||
},
|
||||
"additionalProperties": False,
|
||||
"required": ["compute_id", "protocol", "host", "port"]
|
||||
"required": ["compute_id", "protocol", "host", "port", "name"]
|
||||
}
|
||||
Reference in new issue
Block a user