Create Vidm User Token

Create Vidm User Token
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
URI
POST
https://vrni.example.com/api/ni/auth/token/vidm
COPY
Request Body

User access token provided by VMware Identity Manager.

VidmToken of type(s) application/json
Required
{
    "vidm_token": "string"
}
string
vidm_token
Optional

User access token provided by VMware Identity Manager.

Authentication
This operation uses the following authentication methods.
Responses
200

Success

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

token

integer As int64 As int64
expiry
Optional

expiry epoch time in secs.


400

Bad Request

Returns ApiError of type(s) application/json
{
    "code": 0,
    "message": "string",
    "details": [
        {
            "code": 0,
            "message": "string",
            "target": [
                "string"
            ]
        }
    ]
}
integer As int32 As int32
code
Optional

code

string
message
Optional

message

details
Optional

details


401

Unauthorized

Operation doesn't return any data structure

404

Not Found

Returns ApiError of type(s) application/json
{
    "code": 0,
    "message": "string",
    "details": [
        {
            "code": 0,
            "message": "string",
            "target": [
                "string"
            ]
        }
    ]
}
integer As int32 As int32
code
Optional

code

string
message
Optional

message

details
Optional

details


412

Precondition Failed

Returns ApiError of type(s) application/json
{
    "code": 0,
    "message": "string",
    "details": [
        {
            "code": 0,
            "message": "string",
            "target": [
                "string"
            ]
        }
    ]
}
integer As int32 As int32
code
Optional

code

string
message
Optional

message

details
Optional

details


500

Internal Error

Operation doesn't return any data structure