Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Juniper Apstra 5.0.1 / 5.0.0 User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Authenticate User (AZTP REST API)

Release: Juniper Apstra 5.0
{}
Change Release
date_range 04-Nov-24
Let's get you authenticated so you can make API calls to the Apstra ZTP server from the Apstra ZTP GUI (new in Apstra version 5.0.0).
  1. From the left navigation menu of the Apstra ZTP GUI, click API, click to expand POST /api/ztp/aaa/login (in the ztp section), then click Try it out.
    The parameters become editable.
  2. Replace the username and password strings with your own, then click Execute.
    A token is added to the Response body of the Server response section.
  3. Copy the token (without quotation marks).
  4. Scroll to the top of the page and click Authorize (top-right, shown in the first step).
    The Authorize dialog appears.
  5. Paste the token and click Authorize.
    The dialog shows that you've been authorized.
  6. Click the X in the dialog (top-right) or click Close to close the dialog.

    The lock on the Authorize button changes to a closed lock, indicating that you're authenticated.

You're ready to make API calls. See the docs section for the AZTP OpenAPI documentation and the ztp section for available API calls.
footer-navigation