Virtualization API
- Get a hypervisor host resource identified by {host-id}
Virtualization API (1.2.0)
https://us-west.api.greenlake.hpe.com/
https://eu-west.api.greenlake.hpe.com/
https://eu-central.api.greenlake.hpe.com/
https://ap-northeast.api.greenlake.hpe.com/
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/
The filter query parameter is used to filter the set of resources returned in the response. The returned set of resources must match the criteria in the filter query parameter.
A comparison compares a property name to a literal. The following comparisons are supported:
- “eq” : Is a property equal to value. Valid for number, boolean and string properties.
- “ne” : Is a property not equal to value. Valid for number, boolean and string properties.
- “gt” : Is a property greater than a value. Valid for number or string timestamp properties.
- “lt” : Is a property less than a value. Valid for number or string timestamp properties
- “in” : Is a value in a property (that is an array of strings)
Examples:
- GET /virtualization/v1beta1/hypervisor-hosts?filter="hostType eq ESXI"
- GET /virtualization/v1beta1/hypervisor-hosts?filter="hostType eq ESXI and status eq ERROR"
Filters are supported on the following attributes:
- hostType
- state
- status
- hypervisorManagerInfo/name
- hypervisorManagerInfo/displayName
- hypervisorManagerInfo/id
- version
- createdAt
- hciClusterUuid
- hciServerUuid
- name
- services
- displayName
- cpuInfo/processorSpeedHz
- cpuInfo/processorSockets
- cpuInfo/processorCores
- cpuInfo/logicalProcessors
- cpuInfo/hyperthreadingActive
- cpuSockets/vendor
- cpuSockets/cpuBusSpeedHz
- cpuSockets/cpuCoreSpeedHz
- appInfo/vmware/moref
A comma separated list of properties to sort by, followed by a direction indicator ("asc" or "desc"). If no direction indicator is specified, the default order is ascending.
The select query parameter is used to limit the properties returned with a resource or collection-level GET. Multiple properties can be listed to be returned. The server must only return the set of properties requested by the client. The property “select” is the name of the select query parameter; its value is the list of properties to return separated by commas.
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/hypervisor-hosts
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/hypervisor-hosts
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/hypervisor-hosts
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/hypervisor-hosts
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/hypervisor-hosts
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/hypervisor-hosts \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Success
UUID string uniquely identifying the hypervisor host.
A user-friendly name that identifies the hypervisor host. This will always be same as name since adding or updating hypervisor hosts is not supported when managed from a manager, such as the vCenter.
Name of the host as reported by the hypervisor manager.
An IP address or hostname or FQDN to address the hypervisor host.
All the network names associated with this host.
Parent of this host. It could be a cluster or folder in case of a VMware ESXi Host. For a Hyper-V host it will be cluster or host group.
The 'self' reference for this resource.
Brief reason for the current state of the hypervisor host
The current status of the hypervisor host. Status is derived and abstracted to a 'standard status' based on the status reported by the hypervisor manager.
{ "count": 0, "items": [ { … } ], "offset": 0, "total": 0 }
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/hypervisor-hosts/{host-id}
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/hypervisor-hosts/{host-id}
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/hypervisor-hosts/{host-id}
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/hypervisor-hosts/{host-id}
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/hypervisor-hosts/{host-id}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/hypervisor-hosts/9b4c14a6-3cd5-4907-97c4-cf44c5b641e4 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Success
UUID string uniquely identifying the hypervisor host.
A user-friendly name that identifies the hypervisor host. This will always be same as name since adding or updating hypervisor hosts is not supported when managed from a manager, such as the vCenter.
Name of the host as reported by the hypervisor manager.
An IP address or hostname or FQDN to address the hypervisor host.
All the network names associated with this host.
Parent of this host. It could be a cluster or folder in case of a VMware ESXi Host. For a Hyper-V host it will be cluster or host group.
The 'self' reference for this resource.
The current status of the hypervisor host. Status is derived and abstracted to a 'standard status' based on the status reported by the hypervisor manager.
{ "appInfo": { "vmware": { … } }, "cpuInfo": { "hyperthreadingActive": true, "logicalProcessors": 2, "processorCores": 2, "processorSockets": 2, "processorSpeedHz": 2299999000 }, "cpuSockets": [ { … } ], "createdAt": "2019-08-24T14:15:22Z", "customerId": "string", "displayName": "myESXi", "generation": 0, "hciClusterUuid": "string", "hciServerUuid": "string", "hostNetworkSystem": { "portGroups": [ … ] }, "hostPerfMetricInfo": { "cpuCapacityInHz": 0, "cpuUsageInMhz": 0, "memorySizeInBytes": 0, "memoryUsageInMb": 0, "totalStorageInBytes": 0, "usedStorageInBytes": 0 }, "hostType": "ESXI", "hypervisorManagerInfo": { "displayName": "myvcenter1", "id": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4", "name": "vcenter123.hpe.com", "resourceUri": "string", "type": "string" }, "id": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4", "name": "myESXi", "networkAddress": "192.168.0.1", "networksInfo": [ "network-2053", "network-1005" ], "parentInfo": { "displayName": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "xyz_cluster", "resourceUri": "string", "type": "CLUSTER" }, "resourceUri": "/virtualization/v1beta1/hypervisor-hosts/{host-id}", "services": [ "hci-manager", "backup-and-recovery" ], "state": "OK", "stateReason": "string", "status": "OK", "storageAdaptersInfo": [ { … } ], "type": "string", "uid": "string", "updatedAt": "2019-08-24T14:15:22Z", "version": "6.7.0 build-9030300, R2, 7.2" }