VirtualMachine

VirtualMachine
VirtualMachine

Information about a virtual machine

JSON Example
{
    "id": "string",
    "name": "string",
    "power_state": "string",
    "connection_state": "string",
    "template": false,
    "managed_by_info": {
        "extension_key": "string",
        "type": "string"
    },
    "vr_privilege_granted": false,
    "disks": [
        {
            "vm_id": "VirtualMachine:vm-80:e594ad24-5f75-41e3-a276-88a2116dbed0",
            "device_key": 0,
            "is_vm_home": false,
            "encrypted": false,
            "capacity": 0,
            "source_disk_format": "string",
            "source_path": {
                "datastore_id": "Datastore:datastore-16:ff4a23e7-2fed-4be0-be39-479ae372badd",
                "datastore_name": "local-datastore",
                "path": "/path/to/folder",
                "filename": "vmDisk1.vmdk"
            },
            "source_storage_policy_name": "string",
            "source_storage_policy_id": "dsbrowser.defaultStoragePolicy",
            "label": "string",
            "controller_key": 0,
            "controller_label": "string",
            "supported_for_replication": false
        }
    ]
}
string
id
Optional

The unique identifier of the VM.

string
name
Optional

The name of the VM.

string
power_state
Optional

The VM power state.

Possible values are : POWERED_OFF, POWERED_ON, SUSPENDED,
string
connection_state
Optional

The state of the VM connection.

Possible values are : CONNECTED, DISCONNECTED, ORPHANED, INACCESSIBLE, INVALID,
boolean
template
Optional

template

managed_by_info
Optional

managed_by_info

boolean
vr_privilege_granted
Optional

Indicate whether the current user has the VirtualMachine.Hbr.ConfigureReplication privilege.

array of VmDisk
disks
Optional

Information about the VM disks.