VirtualMachineSettingsUpdateRequest Data Type

Properties
name data type constraints description
vmExportImportMode VmExportImportMode  
sshHost string max size: 255, min size: 0
sshPort number max: 65535, min: 1
sshUser string max size: 255, min size: 0
sshKeyPath string max size: 1024, min size: 0
preCommand CommandDetails  
postCommand CommandDetails  
preSnapCmdExecEnabled boolean required
postSnapCmdExecEnabled boolean required
preSnapStdErrorHandling StdErrorHandling  
postSnapStdErrorHandling StdErrorHandling  
preSnapCmdExecTimeout number max: 86400000, min: 1000
postSnapCmdExecTimeout number max: 86400000, min: 1000
preSnapIgnoredExitCodes string max size: 255, min size: 0
postSnapIgnoredExitCodes string max size: 255, min size: 0
vmBackupPolicy NameAndGuid  
snapshotMgmtPolicy NameAndGuid  
baseImageCreationConfig BaseImageCreationConfigDTO  
credential NameAndGuid  

Example

{
  "vmExportImportMode" : "INHERIT",
  "sshHost" : "...",
  "sshPort" : 12345,
  "sshUser" : "...",
  "sshKeyPath" : "...",
  "preCommand" : {
    "commandArgs" : [ "...", "..." ],
    "commandType" : "POWERSHELL",
    "executionStage" : "POST"
  },
  "postCommand" : {
    "commandArgs" : [ "...", "..." ],
    "commandType" : "SSH",
    "executionStage" : "PRE"
  },
  "preSnapCmdExecEnabled" : true,
  "postSnapCmdExecEnabled" : true,
  "preSnapStdErrorHandling" : "IGNORE_WITHOUT_WARNING",
  "postSnapStdErrorHandling" : "IGNORE_WITH_WARNING",
  "preSnapCmdExecTimeout" : 12345,
  "postSnapCmdExecTimeout" : 12345,
  "preSnapIgnoredExitCodes" : "...",
  "postSnapIgnoredExitCodes" : "...",
  "vmBackupPolicy" : {
    "guid" : "f8f73bf9-2445-4bce-a7dd-753be3b40a67",
    "name" : "Entity name"
  },
  "snapshotMgmtPolicy" : {
    "guid" : "f8f73bf9-2445-4bce-a7dd-753be3b40a67",
    "name" : "Entity name"
  },
  "baseImageCreationConfig" : {
    "windowsImageRequired" : "INHERIT",
    "linuxImageRequired" : "TRUE"
  },
  "credential" : {
    "guid" : "f8f73bf9-2445-4bce-a7dd-753be3b40a67",
    "name" : "Entity name"
  }
}