VirtualMachineFilePath

VirtualMachineFilePath
VirtualMachineFilePath

Identifies a virtual machine by its VMX file path.

This structure may be used only with operations rendered under /sms.

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "vcUuid": "string",
    "dsUrl": "string",
    "vmxPath": "string"
}
string
vcUuid
Optional

The vCenter UUID - this is informational only, and may not always be set.

string
dsUrl
Required

Datastore URL, which is globally unique (name is not).

string
vmxPath
Required

Full path name from the URL onwards.

When the vmxPath is returned after failover, the VMX file should be fixed up to contain correct target filenames for all replicated disks. For non-replicated disks, the target filenames can contain any arbitrary path. For better security, it is recommended to set these disks pointed to a random string (e.g. UUID).