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

Create VIdm User Token

Description

vRealize Network Insight supports token based authentication. Tokens are non-modifiable identifiers returned by the system when the user has been successfully authenticated using valid access token provided by configured VMware Identity Manager appliance. 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.

Request

Request

URL

URL


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

Request Body

Request Body

VidmToken of type(s) application/json Required

User access token provided by VMware Identity Manager.

{
	"vidm_token": "string"
}
string
vidm_token Optional

User access token provided by VMware Identity Manager.

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


404

Not Found


412

Precondition Failed


500

Internal Error

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"vidm_token":"string"}' https://vrni.example.com/api/ni/auth/token/vidm


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

Was this page helpful?