Implement additional functions
1. VM state 2. VM node 3. Lock flush
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user