List Machines V5
This API supports Pagination and Filters.
For full information on using Filters, refer to 'Horizon Server REST Pagination and Filter Guide' of 'VMware Horizon Server API' in code.vmware.com At least one of the listed privileges is required -
Privileges | Description |
---|---|
MACHINE_VIEW | Returns results only for those machines, for which the caller has permission to this privilege, on the associated access group of machine's desktop pool. |
GLOBAL_CONFIG_VIEW | Returns results only for those unmanaged (physical) machines, that are part of desktop pool, for which the caller needs permission to this privilege. |
page, if passed should be > 0.
1
size, if passed should be > 0.
10
filter expression built using fields with 'supported filters' as described in output model schema of this API.
[object Object]
Field that would be used to sort the results.
<property-name>
Determines the ordering of results.
ASC
OK
[
{
"access_group_id": "6fd4638a-381f-4518-aed6-042aa3d9f14c",
"agent_build_number": "22673015",
"agent_id": "agent/4ffe3d72-a490-4dd1-9a61-7a221c54c94f",
"agent_ipv4_address": "192.168.1.1",
"agent_ipv6_address": "2001:db8:3333:4444:5555:6666:7777:8888",
"agent_upgrade_error_message": "true",
"agent_upgrade_result": "OK",
"agent_upgrade_state": "WAIT",
"agent_version": "7.12",
"aliases": [
{
"ad_user_id": "S-1-5-21-2898529287-1016622242-505487308-1553",
"alias_name": "Alias1"
}
],
"attempted_theft_by_connection_server": [
"connection-server2.example.com"
],
"configured_by_connection_server": [
"connection-server1.example.com"
],
"desktop_pool_id": "855ea6c5-720a-41e1-96f4-958c90e6e424",
"dns_name": "machine1.example.com",
"held_machine": true,
"id": "0103796c-102b-4ed3-953f-3dfe3d23e0fe",
"managed_machine_data": {
"base_vm_id": "vm-23",
"base_vm_snapshot_id": "snapshot-2",
"clone_error_message": "Timeout expired trying to clone a virtual machine.",
"clone_error_time": 1575285661395,
"create_time": 1575285661395,
"datastore_ids": [
"datastore1",
"datastore2"
],
"host_name": "WD332H5",
"image_management_stream_id": "6f85b3a5-e7d0-4ad6-a1e3-37168dd1ed51",
"image_management_tag_id": "c9896e51-48a2-4d82-ae9e-a0246981b47d",
"in_hold_customization": false,
"in_maintenance_mode": false,
"last_maintenance_time": 1587081283000,
"logoff_policy": "FORCE_LOGOFF",
"memory_mb": 1024,
"missing_in_vcenter": false,
"network_labels": [
{
"network_label_name": "example-network",
"nic_name": "network1"
}
],
"operation": "REFRESH",
"operation_state": "AVAILABLE",
"path": "/path/host",
"pending_base_vm_id": "vm-8",
"pending_base_vm_snapshot_id": "snapshot-7",
"pending_image_management_stream_id": "ec88b3a5-e7d0-4ad6-a1e3-37168dd1fa25",
"pending_image_management_tag_id": "c9896e51-48a2-4d82-ae9e-a0246981b47d",
"persistent_disk_ids": [
"c1d5aec7-2126-3c55-aefa-11949003c9c2"
],
"storage_accelerator_state": "CURRENT",
"virtual_center_id": "0103796c-102b-4ed3-953f-3dfe3d23e0fe",
"virtual_disks": [
{
"capacity_mb": 102400,
"datastore_path": "datastore1",
"path": "/path/host"
}
],
"virtual_machine_power_state": "POWERED_ON",
"vm_moid": "vm-123"
},
"message_security_enhanced_mode_supported": true,
"message_security_mode": "MIXED",
"name": "machine1",
"operating_system": "WINDOWS_SERVER_2016",
"operating_system_architecture": "BIT_64",
"pairing_state": "IN_PAIRING",
"remote_experience_agent_build_number": "32573985",
"remote_experience_agent_version": "7.12",
"session_id": "6fd4638a-381f-4518-aed6-042aa3d9f14c",
"state": "PROVISIONING",
"type": "MANAGED_MACHINE",
"user_ids": [
"S-1-1-1-3965912346-1012345398-3123456564-123",
"S-1-2-3-3123456786-1012345398-3123456784-124"
]
}
]
Bad Request
User is not authenticated
Access to the resource is forbidden