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://{api_host}/iaas/api/login
COPY
Query Parameters
string
apiVersion
Optional

The version of the API in yyyy-MM-dd format (UTC). For versioning information please 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

Responses
200

successful operation

Returns AuthResponse of type(s) application/json
{
    "tokenType": "Bearer",
    "token": "string"
}
string
tokenType
Required

Type of the token.

string
token
Required

Base64 encoded auth token.


400

Invalid Request - bad data

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure