QmAgentCommand.Builder
Fluent builder.
public class QmAgentCommand.Builder :
LinuxCommandBase.BuilderBase<QmAgentCommand, QmAgentCommand.Builder>
1. Constructors
1.1. Builder()
Creates a new builder pointed at /usr/sbin/qm.
public Builder()
2. Methods
2.1. BuildInternal(CliWrap.Command)
protected override QmAgentCommand BuildInternal(CliWrap.Command cliCommand)
| Name | Type | Description |
|---|---|---|
cliCommand |
CliWrap.Command |
Returns: QmAgentCommand
2.2. WithSubcommand(string)
Guest-agent subcommand: get-host-name, get-osinfo, network-get-interfaces, ping, etc. Positional after the vmid.
public QmAgentCommand.Builder WithSubcommand(string subcommand)
| Name | Type | Description |
|---|---|---|
subcommand |
string |
Returns: QmAgentCommand.Builder
2.3. WithVmId(int)
VM id (e.g. 100). Positional after agent.
public QmAgentCommand.Builder WithVmId(int vmId)
| Name | Type | Description |
|---|---|---|
vmId |
int |
Returns: QmAgentCommand.Builder