Retrieve Auth Token

Retrieve Auth Token

Retrieve AuthToken for local csp users. When accessing other endpoints the Bearer authentication scheme and the received token must be provided in the Authorization request header field as follows: Authorization: Bearer {token}

Request
URI
POST
https://vra-interop-222-139.lvn.broadcom.net/iaas/api/login
COPY
Query Parameters
string
apiVersion
Optional

The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about


Request Body

CspLoginSpecification instance

CspLoginSpecification of type(s) application/json
Required
{
    "refreshToken": "5e7c2c-9a9e-4b0-9339-a7f94"
}
string
refreshToken
Required

Refresh token obtained from the UI

Authentication
This operation uses the following authentication methods.
Responses
200

Successful operation

Returns AuthResponse of type(s) application/json
"AuthResponse Object"
string
tokenType
Required

Type of the token.

string
token
Required

Base64 encoded auth token.


400

Invalid Request - bad data

Returns ServiceErrorResponse of type(s) application/json
"ServiceErrorResponse Object"
string
message
Optional

message

string
messageId
Optional

messageId

array of string
stackTrace
Optional

stackTrace

integer As int32 As int32
statusCode
Optional

statusCode

integer As int32 As int32
errorCode
Optional

errorCode

array of string
details
Optional

details

string
serverErrorId
Optional

serverErrorId

string
documentKind
Optional

documentKind

integer As int32 As int32
internalErrorCode
Optional

internalErrorCode


403

Forbidden

Returns ServiceErrorResponse of type(s) application/json
"ServiceErrorResponse Object"
string
message
Optional

message

string
messageId
Optional

messageId

array of string
stackTrace
Optional

stackTrace

integer As int32 As int32
statusCode
Optional

statusCode

integer As int32 As int32
errorCode
Optional

errorCode

array of string
details
Optional

details

string
serverErrorId
Optional

serverErrorId

string
documentKind
Optional

documentKind

integer As int32 As int32
internalErrorCode
Optional

internalErrorCode


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"refreshToken:"string"}' https://{api_host}/iaas/api/login