VMware Workstation API 1.2.1 Data Structures
{
"name": "string",
"type": "string"
}
The host network name
The host network type
{
"code": "integer",
"message": "string"
}
code
message
The MAC to IP setting
{
"vmnet": "string",
"mac": "string",
"ip": "string"
}
vmnet
mac
ip
The list of MAC to IP settings
{
"num": "integer",
"mactoips": [
{
"vmnet": "string",
"mac": "string",
"ip": "string"
}
]
}
{
"IP": "string"
}
IP
{
"index": "integer",
"type": "string",
"vmnet": "string",
"macAddress": "string"
}
The network type of network adapter
The vmnet name
Mac address
{
"type": "string",
"vmnet": "string"
}
The network type of network adapter
The vmnet name, it should only be used while type is custom
The list of network adapters
{
"num": "integer",
"nics": [
{
"index": "integer",
"type": "string",
"vmnet": "string",
"macAddress": "string"
}
]
}
Index of Network Adapters
Number of NIC devices
The virtual network
{
"name": "string",
"type": "string",
"dhcp": "string",
"subnet": "string",
"mask": "string"
}
Name of virtual network
type
dhcp
subnet
mask
The list of virtual networks
{
"num": "integer",
"vmnets": [
{
"name": "string",
"type": "string",
"dhcp": "string",
"subnet": "string",
"mask": "string"
}
]
}
Number of items
port of communication
The port forwarding
{
"port": "integer",
"protocol": "string",
"desc": "string",
"guest": {
"ip": "string",
"port": "integer"
}
}
protocol
desc
guest
{
"guestIp": "string",
"guestPort": "integer",
"desc": "string"
}
The list of port forwarding
{
"num": "integer",
"port_forwardings": [
{
"port": "integer",
"protocol": "string",
"desc": "string",
"guest": {
"ip": "string",
"port": "integer"
}
}
]
}
{
"folder_id": "string",
"host_path": "string",
"flags": "integer"
}
ID of folder which be mounted to the host
Path of the host shared folder
The flags property specifies how the folder will be accessed by the VM. There is only one flag supported which is "4" and means read/write access.
{
"host_path": "string",
"flags": "integer"
}
Path of the host shared folder
The flags property specifies how the folder will be accessed by the VM. There is only one flag supported which is "4" and means read/write access.
The shared folders mounted to this VM
[
{
"folder_id": "string",
"host_path": "string",
"flags": "integer"
}
]
The CPU information of VM
{
"processors": "integer"
}
{
"name": "string",
"parentId": "string"
}
New VM name
Existing VM ID to clone.
{
"id": "string",
"path": "string"
}
ID of the VM
Path of the VM
Memory size in mega bytes
{
"processors": "integer",
"memory": "integer"
}
{
"power_state": "string"
}
power_state
Number of processor cores