Logging in and logging out using theAOS-CXREST 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:/// api / v10.04 /

    is the IP address or hostname of your switch.

Procedure
  1. Log in to the switch using theLoginresource:
    1. Expand theLoginsection.

      The POST method for the login resource is displayed.

    2. Expand the resource by clicking POST or the resource name,/登录.
    3. 点击Try it out.
    4. Enter your user name in theUser namefield.
    5. Enter your password in thePasswordfield.
    6. 点击执行.

    如果操作is successful, the REST API returns response code 200.

  2. When you finish your session, log out by expanding theLogoutresource and clicking执行.