Skip to content

Commit 33a8ff5

Browse files
committed
Update Blog “getting-started-with-hpe-greenlake-api-for-virtualization”
1 parent 0513242 commit 33a8ff5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

content/blog/getting-started-with-hpe-greenlake-api-for-virtualization.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ To control cost, I used the API `POST {baseUrl}/virtualization/v1beta1/csp-machi
312312

313313
### Wow… that was so cool. What about provisioning a VMware datastore on-premises?
314314

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.
316316

317317
![](/img/create-datastore-on-dhci.png)
318318

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

323323
![obtain the provisioning policy for deploying datastores using HPE PCBE](/img/get-virtualization-api-to-obtain-vm-provisioning-policy.png "get the provisioning policy for deploying datastores in a dHCI using HPE PCBE")
324324

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).
326326

327327
![](/img/obtain-the-cluster-id-for-deployment-at-dhci-using-pcbe.png "Obtain the cluster id which is required to deploy a datastore in a dHCI using PCBE")
328328

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

331331
![](/img/obtain-the-storage-system-id-using-the-legacy-api.png "legacy API to display the storage system Id")
332332

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.
334334

335-
![](/img/create-a-datastore-using-virtualization-api-post-datastores-with-all-required-body.png "Deploy POST to create the datastore in the DHCI using PCBE")
335+
![](/img/post-virtualization-api-with-taskid-succesful.png "Deploy POST to create the datastore in the DHCI using PCBE")
336336

337337
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.
338338

174 KB
Loading

0 commit comments

Comments
 (0)