vCenter 7.x, 8.x, 9.x
To rotate the SupervisorControlPlaneVM passwords, you need to get the cluster ID and initiate a rotate_password API call as outlined below.
After ~60 seconds the password will be rotated.
* How Do You Retrieve APIs Using vSphere API Explorer
https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vcenter-and-host-management/working-with-the-developer-center-host-management/using-the-api-explorer-host-management/retrieve-apis-using-api-explorer-host-management.html
* Vcenter NamespaceManagement Clusters get | vSphere Automation API
https://developer.broadcom.com/xapis/vsphere-automation-api/latest/api/vcenter/namespace-management/clusters/cluster/get/
* Vcenter NamespaceManagement Clusters rotatePassword | vSphere Automation API
https://developer.broadcom.com/xapis/vsphere-automation-api/latest/api/vcenter/namespace-management/clusters/cluster__action=rotate_password/post/