Class GrpcStopVmRequest
Stops a virtual machine. This request returns a GrpcBaseReply.
Namespace: Neon.Kube.GrpcProto.Desktop
Assembly: Neon.Kube.GrpcProto.dll
Syntax
[DataContract]
public class GrpcStopVmRequest
Constructors
GrpcStopVmRequest()
Default constructor.
Declaration
public GrpcStopVmRequest()
GrpcStopVmRequest(string, bool)
Constructor.
Declaration
public GrpcStopVmRequest(string machineName, bool turnOff = false)
Parameters
Type | Name | Description |
---|---|---|
string | machineName | Specifies the machine name. |
bool | turnOff | Optionally just turns the VM off without performing a graceful shutdown first. noteWARNING! This could result in corruption or the the loss of unsaved data. |
Properties
MachineName
Identifies the desired virtual machine.
Declaration
[DataMember(Order = 1)]
public string? MachineName { get; set; }
Property Value
Type | Description |
---|---|
string |
TurnOff
Indicates that the virtual machine should be turned of as opposed to be shutdown gracefully.
Declaration
[DataMember(Order = 2)]
public bool TurnOff { get; set; }
Property Value
Type | Description |
---|---|
bool |