mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-17 23:08:18 +00:00
Return a compute name it could be different of compute id
This commit is contained in:
@ -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