How to resize vmware-volume when creating host via api?


we use vmware compute_ressource within Foreman 17.1

I managed to create a host via api. And i was able to change values of cpus and memory by look how hammer-cli works. But i i cannot figure out what payload to the POST is needed to change the size of the first volume.

Did i miss something in the docs or is there just a lack of documentation when it comes to compute_ressource belonging parameter?

Alright, i was able to figure it out by myself.
The payload i need is:

{ "compute_attributes": { "volumes_attributes": { "0": { "size_gb": 10 } } } }

@luitzifa Sorry for the delay in not picking up this support request, I just got in. Glad you were able to figure it out.