You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/blog/getting-started-with-hpe-greenlake-api-for-virtualization.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -312,7 +312,7 @@ To control cost, I used the API `POST {baseUrl}/virtualization/v1beta1/csp-machi
312
312
313
313
### Wow… that was so cool. What about provisioning a VMware datastore on-premises?
314
314
315
-
Here is another example of using the HPE GreenLake API for virtualization to provision a datastore out of an HPE disaggregated Hyperconverged Infrastructure (dHCI) system for on-premises deployment. The HPE dHCI instance had already been onboarded into the HPE GreenLake for Private Cloud Business Edition service (PCBE). The [API](https://developer.greenlake.hpe.com/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/operation/CreateDS/) that is used for the datastore provisioning is `POST {baseUrl} /virtualization/v1beta1/datastores`, which also required a definition of this JSON structure with values in the `body (Payload)`. The information about this request JSON body is presented in the figure below.
315
+
Here is another example of using the HPE GreenLake API for virtualization to provision a datastore out of an HPE disaggregated Hyperconverged Infrastructure (dHCI) system for on-premises deployment. The HPE dHCI instance had already been onboarded into the HPE GreenLake for Private Cloud Business Edition service (PCBE). The [API](https://developer.greenlake.hpe.com/docs/greenlake/services/virtualization/public/openapi/virtualization-public-v1beta1/operation/CreateDS/) that is used for the datastore provisioning is `POST {baseUrl} /virtualization/v1beta1/datastores`, which also required a definition of this JSON structure with values in the `body (Payload)`. The information about this request JSON body is presented in the figure below.
316
316
317
317

318
318
@@ -322,17 +322,17 @@ This virtualization API incorporated the virtual machine provisioning policy tha
322
322
323
323

324
324
325
-
I used another API from the virtualization API such as `GET {baseUrl}/virtualization/v1beta1/hypervisors-clusters` to obtain the `HyperClusterId` (shown below).
325
+
I used another API from the virtualization API such as `GET {baseUrl}/virtualization/v1beta1/hypervisors-clusters` to obtain the `targetHypervisorClusterId` (shown below).
326
326
327
327

328
328
329
329
Furthermore, I used the legacy API such as `GET /api/v1/storage-systems/device-type2` to obtain the `Storage System Id` (shown below).
330
330
331
331

332
332
333
-
Finally, I entered all the above values into the JSON body below as part of the virtualization API to create a datastore in the designated VMware cluster using the attached storage system.
333
+
Finally, I entered all the above values into the JSON body below as part of the virtualization API to create a datastore in the designated VMware cluster using the attached storage system. The Integer value key `sizeInBytes` was equivalent to 10 TB. Other String values were obtained from the previous HPE GreenLake API responses as I demonstrated above.
334
334
335
-

335
+

336
336
337
337
From the response of the API `GET aync-operations` for the task Id shown below, I confirmed that creation of the datastore was completed. Note that the creation of the datastore also applied the HPE GreenLake Backup Recovery data protection-policy to the newly created datastore.
0 commit comments