Authenticating the Swagger UI - BlueCat Integrity - 25.1.0

Address Manager RESTful v2 API Guide

ft:locale
en-US
Product name
BlueCat Integrity
Version
25.1.0
  1. Under the Monitoring Resources tab, navigate to the POST api/v2/sessions endpoint ("Create a new session").
  2. Select the row to expand the Swagger interface and select the Try it out button.
  3. In the Request body section, enter your username and password (user must have API privileges) in the JSON request body:
    {
        "username": <API username>,
        "password": <API password>
    }
  4. Select Execute.
  5. The apiToken value of the JSON response body contains your Basic authentication apiToken password which will be used to authenticate the Swagger UI session. Copy this value for the next step.
    {
      "id": 87,
      "type": "UserSession",
      "apiToken": "JhN8VqEgYFxz/MWfdtz/yblND11X/LWsfalE/Z+V",
      "apiTokenExpirationDateTime": "2024-11-25T01:01:35Z",
      "basicAuthenticationCredentials": "YWRtaW46SmhOOFZxRWdZRnh6L01XZmR0ei95YmxORDExWC9MV3NmYWxFL1orVg==",
      "state": "LOGGED_IN",
      "remoteAddress": "172.40.100.1",
      "readOnly": false,
      "loginDateTime": "2024-11-25T00:41:35Z",
      "logoutDateTime": null,
      "response": null,
      "user": {
        "id": 3,
        "type": "User",
        "name": "admin",
        "_links": {
          "self": {
            "href": "/api/v2/users/3"
          }
        }
      },
      "authenticator": {
        "id": 2,
        "type": "AddressManagerAuthenticator",
        "name": "proteusAuthenticator",
        "_links": {
          "self": {
            "href": "/api/v2/authenticators/2"
          }
        }
      },
      "_links": {
        "self": {
          "href": "/api/v2/sessions/87"
        },
        "collection": {
          "href": "/api/v2/sessions"
        }
      }
    }
  6. Return to the top of the Swagger UI.
  7. Select the Authorize button at the top right of the search bar.
  8. Under basicAuthentication:
    • In the Username field, enter your API username.
    • In the Password field, enter the apiToken value retrieved from the api/v2/sessions endpoint.
  9. Select Authorize.

The Swagger UI session is now authenticated.