summaryrefslogtreecommitdiffstats
path: root/kilo/kilo/swagger/multivim.host.swagger.json
diff options
context:
space:
mode:
Diffstat (limited to 'kilo/kilo/swagger/multivim.host.swagger.json')
-rw-r--r--kilo/kilo/swagger/multivim.host.swagger.json70
1 files changed, 60 insertions, 10 deletions
diff --git a/kilo/kilo/swagger/multivim.host.swagger.json b/kilo/kilo/swagger/multivim.host.swagger.json
index 828aed4d..e04b5267 100644
--- a/kilo/kilo/swagger/multivim.host.swagger.json
+++ b/kilo/kilo/swagger/multivim.host.swagger.json
@@ -39,15 +39,6 @@
"description": "tenant UUID",
"required": true,
"type": "string"
- },
- {
- "in": "body",
- "name": "body",
- "description": "get a list of vim hosts request param",
- "required": false,
- "schema": {
- "$ref": "#/definitions/ListVimHosts"
- }
}
],
"responses": {
@@ -107,7 +98,7 @@
"200": {
"description": "successful operation",
"schema": {
- "$ref": "#/definitions/VimHostInfo"
+ "$ref": "#/definitions/VimHostDetail"
}
},
"404": {
@@ -178,6 +169,65 @@
"description": "tenant UUID"
}
}
+ },
+ "VimHostDetail": {
+ "type": "object",
+ "required": [
+ "vimId",
+ "tenantId",
+ "host"
+ ],
+ "properties": {
+ "host": {
+ "type": "array",
+ "description": "list of host information",
+ "items": {
+ "$ref": "#/definitions/VimHostResource"
+ }
+ },
+ "vimId": {
+ "type": "string"
+ },
+ "vimName": {
+ "type": "string"
+ },
+ "tenantId": {
+ "type": "string",
+ "description": "tenant UUID"
+ }
+ }
+ },
+ "VimHostResource": {
+ "type": "object",
+ "required": [
+ "name",
+ "cpu",
+ "memory_mb",
+ "disk_gb",
+ "project"
+ ],
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "host name"
+ },
+ "cpu": {
+ "type": "integer",
+ "description": "The cpu info on the host"
+ },
+ "memory_mb": {
+ "type": "integer",
+ "description": "The memory info on the host (in MB)"
+ },
+ "disk_gb": {
+ "type": "integer",
+ "description": "The disk info on the host (in GB)"
+ },
+ "project": {
+ "type": "string",
+ "description": "The project id (or special name like total, used_now, used_max)."
+ }
+ }
}
}
}