Logging in and logging out using the ArubaOS-CX REST API Reference

Prerequisites
  • Access to the switch REST API must be enabled.

  • You must have used a supported browser to access the switch at:

    https://<IP-ADDR>/api/

    <IP-ADDR> is the IP address or hostname of your switch.

Procedure
  1. Log in to the switch using the Login resource:
    1. Expand the Login resource by clicking the resource name, /login, or by clicking Expand Operations.
    2. Enter your user name in the value of the username parameter.
    3. Enter your password in the value of the password parameter.
    4. Click Submit.

    If the operation is successful, the REST API returns response code 200.

  2. When you finish your session, log out by expanding the Logout resource and clicking Submit.