[{"label":"Latest (6.4.0)","version":"latest"}]
vrealize-network-insight-api

Create

Description

vRealize Network Insight supports token based authentication. Tokens are non-modifiable identifiers returned by the system when the user has successfully authenticated using valid credentials. Token expires after expiry time returned in the response. All API requests must provide the auth token in Authorization header in following format:
Authorization : NetworkInsight {token}
If a token is invalid or expired, 401-Unauthorized error gets returned in the response of the API request.
There is limit of 100 valid tokens per user and further requests will return 401-Unauthorized. So, users are advised to delete the tokens after use
Expired tokens are cleaned periodically by the system.

Request

Request

URL

URL


post
https://vrni.example.com/api/ni/auth/token
Copy

Request Body

Request Body

UserCredential of type(s) application/json Required

User Credentials

{
    "password": "password",
    "username": "admin@vrni.com"
}
domain Optional

string
password Optional

string
username Optional
Response

Response

Response Body

Response Body

200 OK

Returns Token of type(s) application/json
{
    "expiry": 1605201960327,
    "token": "Mgs2YX0ZSY+gHW6RYypeeA=="
}
integer as int64
expiry Optional

expiry epoch time in secs.


string
token Optional
Errors

Errors

400

Bad Request


401

Unauthorized


500

Internal Error

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"password":"password","username":"admin@vrni.com"}' https://vrni.example.com/api/ni/auth/token


[{"label":"Latest (6.4.0)","version":"latest"}]
vrealize-network-insight-api
Feedback

Was this page helpful?