vCenter

 View Only
  • 1.  VCSA - Using VAMI API to start / stop ssh, bash, etc.

    Posted Mar 10, 2021 07:03 PM

    Hi, Been trying to figure out how to use the VAMI API commands to start / stop VCSA services such as SSH, Bash, etc., via PowerCLI. Is there anyone that knows how to do this?

    Thank you!



  • 2.  RE: VCSA - Using VAMI API to start / stop ssh, bash, etc.

    Posted May 26, 2021 10:56 AM

    Use Appliance APIs to enable and disable services.

    i.e,

    1. List Services : GET - https://{vCenter}/api/appliance/services
    2. Start Service : POST - https://{vCenter}/api/appliance/services/{service}?action=start
    3. Stop Service: POST - https://{vCenter}/api/appliance/services/{service}?action=stop

    service = "sshd"