We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/crc-org/vfkit/blob/main/doc/usage.md#restful-service
Get VM state Used to obtain the state of the virtual machine that is being run by vfkit. GET /vm/state Response: { "state": string, "canStart": bool, "canPause": bool, "canResume": bool, "canStop": bool, "canHardStop": bool
Get VM state Used to obtain the state of the virtual machine that is being run by vfkit.
GET /vm/state Response: { "state": string, "canStart": bool, "canPause": bool, "canResume": bool, "canStop": bool, "canHardStop": bool
GET /vm/state
It doesn't show the possible values of "string", but it doesn't match the POST:
{ "canHardStop": true, "canPause": true, "canResume": false, "canStart": false, "canStop": true, "state": "VirtualMachineStateRunning" }
It should probably be documented? I think the values come straight from vz.
The text was updated successfully, but these errors were encountered:
They are indeed coming from https://github.com/Code-Hex/vz/blob/c3198942b1b797ac424b673e06769f45bef0d275/virtualmachinestate_string.go#L22C1-L23C93
I agree it would make more sense to strip the VirtualMachineState, I don't think there are many users of this API right now (I'll have to check) so we can probably just do it. And yes, documenting the possible values would be useful, a list is available there: https://github.com/Code-Hex/vz/blob/c3198942b1b797ac424b673e06769f45bef0d275/virtualization.go#L25-L67
VirtualMachineState
Sorry, something went wrong.
I used both types of values (both "enum" and string), but it did raise some eyebrows during code review...
e.g. "running", "VirtualMachineStateRunning"
Documenting them might be easiest
cfergeau
No branches or pull requests
https://github.com/crc-org/vfkit/blob/main/doc/usage.md#restful-service
It doesn't show the possible values of "string", but it doesn't match the POST:
It should probably be documented? I think the values come straight from vz.
The text was updated successfully, but these errors were encountered: