I'm looking at creating self-service for creating Namespaces. I can enable Namespace Service but I also need to set the vm classes available for the namespace, we only allow 4 vm classes, which is not an option with the Namespace Service.
I've looked at PowerCLI and also the vCenter API but, as far as I can tell, setting vm classes is not possible. Does anyone know a way to set vm classes programmatically? Thanks in advance.
Edit: I think maybe the vCenter API does allow this after all.
For managing/configuring vSphere Namespaces, you can use Namespaces API which is part of the vCenter Server REST API. To edit an existing vSphere NS, take a look at https://developer.vmware.com/apis/vsphere-automation/latest/vcenter/api/vcenter/namespaces/instances...
For managing/configuring vSphere Namespaces, you can use Namespaces API which is part of the vCenter Server REST API. To edit an existing vSphere NS, take a look at https://developer.vmware.com/apis/vsphere-automation/latest/vcenter/api/vcenter/namespaces/instances...
In the latest vSphere 8.0 release, configuring vm-classes is now part of the slef-service namespace functionality itself. This avoids the need to configure vm-classes separately.