gbeke
Enthusiast
Enthusiast

Workload Management, Namespace, VM classes (Tanzu)

Jump to solution

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. 

gbeke_0-1654238208745.png

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. 

 

1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager

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

View solution in original post

2 Replies
lamw
Community Manager
Community Manager

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

vThinkBeyondVM
VMware Employee
VMware Employee

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.


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

0 Kudos