Introduction
The API requires a token sent on each request via the Authorization header to authenticate. This token can be obtained by making a POST request to the URI /auth/request-token where you'll include your VSKEY credentials using the Authorization Header.
The EIS Virtual Cloud RESTful API is currently in BETA. If you are a current customer and would like to join through this period, please refer to the following KB Article.
Authentication tokens are valid for 24 hours (86,400 sec). After this period, a new token must be requested.
Examples
This section shows how to request an authentication token using HTTPie and RESTful API - Authentication.
HTTPie
http POST https://vss-ws.eis.utoronto.ca:8001/auth/request-token -a <username> http: password for <username>@vss-ws.eis.utoronto.ca:8001:
CURL
curl -X POST https://vss-ws.eis.utoronto.ca:8001/auth/request-token -u <username>Enter host password for user '<username>':
Unauthorized
Getting a 401 Unauthorized error as shown below, could be due to the following reasons:
Username and password combination is not valid
Re-initializing your VSKEY credentials is strongly advised. To do so, please follow this KB Article.
User is not permitted to access the API.
Contacting the VSS Team to request access is advised by email or our contact form.