Fix two small bugs and regen docs
This commit is contained in:
parent
49dfc6564f
commit
c9fb9600a4
|
@ -784,7 +784,7 @@ class API_VM_Root(Resource):
|
||||||
@RequestParser([
|
@RequestParser([
|
||||||
{ 'name': 'limit' },
|
{ 'name': 'limit' },
|
||||||
{ 'name': 'node' },
|
{ 'name': 'node' },
|
||||||
{ 'name': 'selector', 'choices': ('mem', 'vcpu', 'load', 'vms'), 'helptext': "A valid selector must be specified" },
|
{ 'name': 'selector', 'choices': ('mem', 'vcpus', 'load', 'vms'), 'helptext': "A valid selector must be specified" },
|
||||||
{ 'name': 'autostart' },
|
{ 'name': 'autostart' },
|
||||||
{ 'name': 'xml', 'required': True, 'helptext': "A Libvirt XML document must be specified" },
|
{ 'name': 'xml', 'required': True, 'helptext': "A Libvirt XML document must be specified" },
|
||||||
])
|
])
|
||||||
|
@ -819,7 +819,7 @@ class API_VM_Root(Resource):
|
||||||
default: mem
|
default: mem
|
||||||
enum:
|
enum:
|
||||||
- mem
|
- mem
|
||||||
- vcpu
|
- vcpus
|
||||||
- load
|
- load
|
||||||
- vms
|
- vms
|
||||||
- in: query
|
- in: query
|
||||||
|
@ -1309,6 +1309,12 @@ class API_VM_Console(Resource):
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- vm
|
- vm
|
||||||
|
parameters:
|
||||||
|
- in: query
|
||||||
|
name: lines
|
||||||
|
type: integer
|
||||||
|
required: false
|
||||||
|
description: The number of lines to retrieve
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: OK
|
description: OK
|
||||||
|
@ -1322,12 +1328,6 @@ class API_VM_Console(Resource):
|
||||||
data:
|
data:
|
||||||
type: string
|
type: string
|
||||||
description: The recent console log text
|
description: The recent console log text
|
||||||
parameters:
|
|
||||||
- in: query
|
|
||||||
name: lines
|
|
||||||
type: integer
|
|
||||||
required: false
|
|
||||||
description: The number of lines to retrieve
|
|
||||||
404:
|
404:
|
||||||
description: Not found
|
description: Not found
|
||||||
schema:
|
schema:
|
||||||
|
|
|
@ -58,6 +58,19 @@
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
"VMLog": {
|
||||||
|
"properties": {
|
||||||
|
"data": {
|
||||||
|
"description": "The recent console log text",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "The name of the VM",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"VMMetadata": {
|
"VMMetadata": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
"name": {
|
||||||
|
@ -925,20 +938,6 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/api/v1/doc": {
|
|
||||||
"get": {
|
|
||||||
"description": "",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "OK"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"summary": "Provide the Swagger API documentation",
|
|
||||||
"tags": [
|
|
||||||
"root"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/v1/initialize": {
|
"/api/v1/initialize": {
|
||||||
"post": {
|
"post": {
|
||||||
"description": "Note: Normally used only once during cluster bootstrap; checks for the existence of the \"/primary_node\" key before proceeding and returns 400 if found",
|
"description": "Note: Normally used only once during cluster bootstrap; checks for the existence of the \"/primary_node\" key before proceeding and returns 400 if found",
|
||||||
|
@ -1946,6 +1945,12 @@
|
||||||
"name": "action",
|
"name": "action",
|
||||||
"required": true,
|
"required": true,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Whether to block waiting for the full flush/ready state",
|
||||||
|
"in": "query",
|
||||||
|
"name": "wait",
|
||||||
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
|
@ -4337,7 +4342,7 @@
|
||||||
"description": "The selector used to determine candidate nodes during migration",
|
"description": "The selector used to determine candidate nodes during migration",
|
||||||
"enum": [
|
"enum": [
|
||||||
"mem",
|
"mem",
|
||||||
"vcpu",
|
"vcpus",
|
||||||
"load",
|
"load",
|
||||||
"vms"
|
"vms"
|
||||||
],
|
],
|
||||||
|
@ -4534,6 +4539,38 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/api/v1/vm/{vm}/console": {
|
||||||
|
"get": {
|
||||||
|
"description": "",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"description": "The number of lines to retrieve",
|
||||||
|
"in": "query",
|
||||||
|
"name": "lines",
|
||||||
|
"required": false,
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "OK",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/VMLog"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"description": "Not found",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/Message"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"summary": "Return the recent console log of {vm}",
|
||||||
|
"tags": [
|
||||||
|
"vm"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"/api/v1/vm/{vm}/locks": {
|
"/api/v1/vm/{vm}/locks": {
|
||||||
"post": {
|
"post": {
|
||||||
"description": "",
|
"description": "",
|
||||||
|
|
Loading…
Reference in New Issue