Implement additional functions

1. VM state
2. VM node
3. Lock flush
This commit is contained in:
2019-08-07 14:24:16 -04:00
parent b7546e3711
commit ea2426fa73
3 changed files with 93 additions and 3 deletions

View File

@ -325,7 +325,7 @@ Valid `state` values are: `start`, `shutdown`, `stop`, `restart`
* Mandatory values: N/A
* Optional values: N/A
Return the current host node and previous node, if applicable, for `<vm>`.
Return the current host node, and last host node if applicable, for `<vm>`.
###### `POST`
* Mandatory values: `action`
@ -343,6 +343,21 @@ If `permanent` is specified, the PVC system will not track the previous node and
If `force` is specified, and the VM has been previously migrated, force through a new migration to the selected target and do not update the previous node value.
#### `/api/v1/vm/<vm>/locks`
* Methods: `GET`, `POST`
###### `GET`
* Mandatory values: N/A
* Optional values: N/A
Not yet implemented and not planned. Return the list of RBD locks for the VM.
###### `POST`
* Mandatory values: N/A
* Optional values: N/A
Clear all RBD locks for volumes attached to `<vm>`.
### Network endpoints
These endpoints manage PVC client virtual network state and operation.