Before using the BlueCat Health Monitoring REST API, you must login
through the Gateway rest_login endpoint to obtain a session token.
- Send the username and password of the associated Gateway user in JSON format to
http://<Gateway_url>/rest_login
Sample JSON: { "username" : "exampleUser", "password" : "examplePassword" }
- A session token will be returned for authentication.
Sample token: { "access_token": "BAMAuthToken: yth/6R46Llgp68e5FrZP6PBPXlW+IqVUZxZ3jWGw" }
- Include the access token as an API key authorization header for all requests to
the BlueCat Health Monitoring REST API.
Sample header: Key: auth Value: Basic BAMAuthToken: yth/6R46Llgp68e5FrZP6PBPXlW+IqVUZxZ3jWGw