Hi, Been trying to figure out how to use the VAMI REST API commands from PowerCLI to enable / disable VCSA access such as SSH, Bash, etc., via PowerCLI. Is there anyone that knows how to do this?
Thank you!
Please refer to this doc - https://developer.vmware.com/docs/vsphere-automation/latest/appliance/api/appliance/access/ssh/put/
# Module 'VMware.Sdk.vSphere.Appliance.Access' $AccessSshSetRequestBody = Initialize-AccessSshSetRequestBody -Enabled $false Invoke-SetAccessSsh -AccessSshSetRequestBody $AccessSshSetRequestBody