Virtualization API
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/datastores?filter="datastoreType eq VMFS"
- GET /virtualization/v1beta1/datastores?filter="datastoreType eq VMFS and status eq ERROR"
Filters are supported on the following attributes:
- status
- state
- appType
- hypervisorManagerInfo/name
- hypervisorManagerInfo/displayName
- hypervisorManagerInfo/id
- hostsInfo/id
- hostsInfo/name
- hostsInfo/displayName
- clusterInfo/id
- clusterInfo/name
- clusterInfo/displayName
- protectionJobInfo/protectionPolicyInfo/id
- protectionJobInfo/protectionPolicyInfo/name
- vmProtectionGroupsInfo/id
- vmProtectionGroupsInfo/name
- 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
- datastoreType
- createdAt
- name
- services
- allowedOperations
- capacityInBytes
- capacityFree
- displayName
- replicationInfo/name
- replicationInfo/id
- hciClusterUuid
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/datastores
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/datastores
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/datastores
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/datastores
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/datastores
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/datastores \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Success
UUID string uniquely identifying the datastore
List of allowed operation on the datastore.
Uncommitted storage of the datastore in bytes.
List of datacenters to which the datastore is presented to.
Classification of datastore types for which protection will be disabled
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 datastore as reported by the hypervisor manager.
The 'self' reference for this resource.
VMware provided uuid of the datastore.
Number of virtual machines associated with the datastore.
List of virtual machine protection groups.
{ "count": 0, "items": [ { … } ], "offset": 0, "total": 0 }
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/datastores
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/datastores
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/datastores
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/datastores
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/datastores
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/datastores \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"datastoreType": "VMFS",
"name": "string",
"sizeInBytes": 0,
"storageSystemId": "82fa5c8f-b188-4241-b1a7-66c08561dbc1",
"targetHypervisorClusterId": "4019c72a-faa8-43fa-89cb-2dcaf55f0d8a"
}'{}
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/datastores/{datastore-id}
https://eu-west.api.greenlake.hpe.com/virtualization/v1beta1/datastores/{datastore-id}
https://eu-central.api.greenlake.hpe.com/virtualization/v1beta1/datastores/{datastore-id}
https://ap-northeast.api.greenlake.hpe.com/virtualization/v1beta1/datastores/{datastore-id}
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/virtualization/v1beta1/datastores/{datastore-id}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://us-west.api.greenlake.hpe.com/virtualization/v1beta1/datastores/9b4c14a6-3cd5-4907-97c4-cf44c5b641e4 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Success
UUID string uniquely identifying the datastore
List of allowed operation on the datastore.
List of datacenters to which the datastore is presented to.
Classification of datastore types for which protection will be disabled
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 datastore as reported by the hypervisor manager.
The 'self' reference for this resource.
VMware provided uuid of the datastore.
List of virtual machine protection groups.
{ "allowedOperations": [ "DATASTORE_CREATE", "DATASTORE_DELETE" ], "appType": "VMWARE", "capacityFree": 76534, "capacityInBytes": 2407653459860, "capacityUncommitted": 653422, "clusterInfo": { "displayName": "myesxcluster1", "id": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4", "name": "myesxcluster1", "resourceUri": "string", "type": "string" }, "createdAt": "2019-08-24T14:15:22Z", "customerId": "string", "datacentersInfo": [ { … } ], "datastoreClassification": "PROTECTION_STORE_GATEWAY", "datastoreType": "VMFS", "displayName": "Nimble-DS1", "folderInfo": { "displayName": "myVmFolder", "id": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4", "name": "myVmFolder", "resourceUri": "string", "type": "string" }, "generation": 0, "hciClusterUuid": "754f63f7-1016-40ec-9b8f-610f978b9aec", "hostsInfo": [ { … } ], "hypervisorManagerInfo": { "displayName": "myvcenter1", "id": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4", "name": "vcenter123.hpe.com", "resourceUri": "string", "type": "string" }, "id": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4", "moref": "datastore-1234", "name": "Nimble-DS2", "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", "provisioningPolicyInfo": { "id": "6a38acc7-e470-4ed7-b141-ca9509672dac", "name": "ProvisioningPolicy1", "resourceUri": "string", "type": "string" }, "recoveryPointsExist": true, "replicationInfo": { "id": "string", "name": "string", "partnerDetails": [ … ], "resourceUri": "/storage-fleet/v1/storage-systems/{uuid}/volume-sets", "type": "storage-fleet/volume-set" }, "resourceUri": "/virtualization/v1beta1/datastores/{datastore-id}", "services": [ "hci-manager", "backup-and-recovery" ], "state": "OK", "stateReason": "string", "status": "OK", "type": "string", "uid": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4", "updatedAt": "2019-08-24T14:15:22Z", "vmCount": 120, "vmProtectionGroupsInfo": [ { … } ], "volumesInfo": [ { … } ] }