Virtualization API
Virtualization API (1.2.0)
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/
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/
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/virtual-machines?filter="appType eq VMWARE"
- GET /virtualization/v1beta1/virtual-machines?filter="appType eq VMWARE and status eq ERROR"
Filters are supported on the following attributes:
- status
- state
- appType
- hypervisorManagerInfo/name
- hypervisorManagerInfo/displayName
- hypervisorManagerInfo/id
- hostInfo/id
- hostInfo/name
- hostInfo/displayName
- clusterInfo/id
- clusterInfo/name
- clusterInfo/displayName
- protectionJobInfo/protectionPolicyInfo/id
- protectionJobInfo/protectionPolicyInfo/name
- vmProtectionGroupsInfo/id
- vmProtectionGroupsInfo/name
- appInfo/vmware/type
- appInfo/vmware/moref
- appInfo/vmware/datastoresInfo/id
- appInfo/vmware/datastoresInfo/name
- appInfo/vmware/datastoresInfo/displayName
- volumesInfo/id
- volumesInfo/storageSystemInfo/id
- volumesInfo/storageSystemInfo/serialNumber
- volumesInfo/storageSystemInfo/name
- volumesInfo/storageSystemInfo/vendorName
- volumesInfo/storageFolderInfo/id
- volumesInfo/storageFolderInfo/name
- volumesInfo/storagePoolInfo/id
- volumesInfo/storagePoolInfo/name
- powerState
- createdAt
- name
- services
- allowedOperations
- hciClusterUuid
- id
- type
- capacityInBytes
- computeInfo/numCpuCores
- computeInfo/memorySizeInMib
- vmPerfMetricInfo/cpuAllocatedInMhz
- vmPerfMetricInfo/cpuUsedInMhz
- vmPerfMetricInfo/storageAllocatedInKb
- vmPerfMetricInfo/storageUsedInBytes
- vmPerfMetricInfo/memoryAllocatedInMb
- vmPerfMetricInfo/memoryUsedInMb
- vmPerfMetricInfo/totalReadIops
- vmPerfMetricInfo/totalWriteIops
- vmPerfMetricInfo/averageReadLatency
- vmPerfMetricInfo/averageWriteLatency
- displayName
- protectionStatus
- recoveryPointsExist
- vclsVm
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.
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Success
UUID string uniquely identifying the virtual machine
List of allowed operation on the virtual machine.
A user-friendly name that identifies the virtual machine.
The immediate parent folder on which this resource is hosted in the inventory of hypervisor-manager.
UUID string uniquely identifying the HCI cluster.
Name of the virtual machine as configured in the hypervisor manager.
This provides the information power state of the virtual machine.
The 'self' reference for this resource.
The current state of the virtual machine
Brief reason for the current state of the virtual machine
A list of objects encapsulating information about the storage disks provisioned to a virtual machine
Classification of different system/control VM types
VM configuration path of the virtual machine.
Protection groups related to the virtual machine.
{ "count": 0, "items": [ { … } ], "offset": 0, "total": 0 }
Defines the virtual machine configurations
Specifies the storage configurations for a virtual machine
Specifies the hypervisor image information using which the virtual machine is deployed
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"storageConfig": {
"defaultDatastoreId": "string"
},
"vmConfig": {
"acceptEula": true,
"name": "string"
}
}'
{}
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/{vm-id}
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X DELETE \
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/9b4c14a6-3cd5-4907-97c4-cf44c5b641e4 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{}
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/{vm-id}
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/9b4c14a6-3cd5-4907-97c4-cf44c5b641e4 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Success
UUID string uniquely identifying the virtual machine
List of allowed operation on the virtual machine.
The immediate parent folder on which this resource is hosted in the inventory of hypervisor-manager.
UUID string uniquely identifying the HCI cluster.
Name of the virtual machine as configured in the hypervisor manager.
This provides the information power state of the virtual machine.
The 'self' reference for this resource.
A list of objects encapsulating information about the storage disks provisioned to a virtual machine
Classification of different system/control VM types
VM configuration path of the virtual machine.
Protection groups related to the virtual machine.
{ "allowedOperations": [ "VIRTUAL_MACHINE_POWER_ON", "VIRTUAL_MACHINE_POWER_OFF" ], "appInfo": { "vmware": { … } }, "appType": "VMWARE", "capacityInBytes": 2407653459860, "clusterInfo": { "displayName": "myesxcluster1", "id": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4", "name": "myesxcluster1", "resourceUri": "string", "type": "string" }, "computeInfo": { "memorySizeInMib": "4096", "numCpuCores": 8, "numCpuThreads": 16 }, "createdAt": "2019-08-24T14:15:22Z", "customerId": "string", "displayName": "My-Test-VM", "folderInfo": { "displayName": "myVmFolder", "id": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4", "name": "myVmFolder", "resourceUri": "string", "type": "string" }, "generation": 0, "guestInfo": { "buildVersion": "6.7.0 build-9030300, NT 6.3, 3.8.13-44.1.1.el6uek.x86_64", "name": "Microsoft Windows Server 2008 R2 (64-bit)", "releaseVersion": "6.7.0 build-9030300, R2, 7.2", "type": "WINDOWS" }, "hciClusterUuid": "754f63f7-1016-40ec-9b8f-610f978b9aec", "hostInfo": { "displayName": "myESXi", "id": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4", "name": "myESXi", "resourceUri": "string", "type": "string" }, "hypervisorManagerInfo": { "displayName": "myvcenter1", "id": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4", "name": "vcenter123.hpe.com", "resourceUri": "string", "type": "string" }, "id": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4", "name": "vm-1-windows", "networkAdapters": [ { … } ], "networkAddress": "string", "powerState": "POWERED_ON", "protectionJobInfo": { "id": "c9cdeb6b-24cb-43c1-828a-e8b1b050f3f4", "name": "string", "protectionPolicyInfo": { … }, "resourceUri": "string", "type": "string" }, "protectionPolicyAppliedAtInfo": { "id": "6a38acc7-e470-4ed7-b141-ca9509672dac", "name": "ProtectionPolicy1", "resourceUri": "string", "type": "DATASTORE" }, "protectionStatus": "PROTECTED", "recoveryPointsExist": true, "resourceUri": "/virtualization/v1beta1/virtual-machines/{vm-id}", "services": [ "hci-manager", "backup-and-recovery" ], "state": "OK", "stateReason": "string", "status": "OK", "type": "string", "uid": "07cc67f4-45d6-494b-adac-09b5cbc7e2b5", "updatedAt": "2019-08-24T14:15:22Z", "vclsVm": false, "virtualDisks": [ { … } ], "vmClassification": "DATA_ORCHESTRATOR", "vmConfigPath": "NEW_VCSA6.7/NEW_VCSA6.7.vmx", "vmPerfMetricInfo": { "averageReadLatency": 0, "averageWriteLatency": 0, "cpuAllocatedInMhz": 0, "cpuUsedInMhz": 0, "memoryAllocatedInMb": 0, "memoryUsedInMb": 0, "storageAllocatedInKb": 0, "storageUsedInBytes": 0, "totalReadIops": 0, "totalWriteIops": 0 }, "vmProtectionGroupsInfo": [ { … } ], "volumesInfo": [ { … } ] }
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/{vm-id}/power-off
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/power-off
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/power-off
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/power-off
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/power-off
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/9b4c14a6-3cd5-4907-97c4-cf44c5b641e4/power-off \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{}
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/{vm-id}/power-on
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/power-on
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/power-on
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/power-on
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/power-on
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/9b4c14a6-3cd5-4907-97c4-cf44c5b641e4/power-on \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{}
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/{vm-id}/refresh
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/refresh
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/refresh
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/refresh
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/refresh
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/9b4c14a6-3cd5-4907-97c4-cf44c5b641e4/refresh \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/{vm-id}/reset
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/reset
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/reset
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/reset
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/reset
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/9b4c14a6-3cd5-4907-97c4-cf44c5b641e4/reset \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{}
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/{vm-id}/restart-guest-os
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/restart-guest-os
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/restart-guest-os
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/restart-guest-os
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/restart-guest-os
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/9b4c14a6-3cd5-4907-97c4-cf44c5b641e4/restart-guest-os \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{}
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/{vm-id}/shutdown-guest-os
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/shutdown-guest-os
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/shutdown-guest-os
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/shutdown-guest-os
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/shutdown-guest-os
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/9b4c14a6-3cd5-4907-97c4-cf44c5b641e4/shutdown-guest-os \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{}
Reconfigure network adapter(s) for a virtual machine. ADD/EDIT/DELETE list of network adapters.
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/{vm-id}/update-hardware
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/update-hardware
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/update-hardware
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/update-hardware
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/{vm-id}/update-hardware
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/9b4c14a6-3cd5-4907-97c4-cf44c5b641e4/update-hardware \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{}'
{}
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/migrate
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/migrate
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/migrate
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/migrate
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/virtual-machines/migrate
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/virtual-machines/migrate \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"hypervisorManagerId": "string",
"targetDatastoreId": "string",
"targetHypervisorClusterId": "string"
}'
{}