Get JWT tokens
Get the JWT token that is to be used with the Docker client.
Base path: https://<Cluster Master Host>:<Cluster Master API Port>/image-manager/api/v1/auth/token
The <Cluster Master Host> and <Cluster Master API Port> parameters are defined in Master endpoints.
- API version
- 3.2.1
- API URI components
-
- Scheme
HTTPS
- Host name
Cluster Master Host
- Port number
Cluster Master API Port
- Base path
/image-manager/api/v1/auth/token
- Command
GET
- Command output format
application/json
The sample curl command resembles the following code:
curl -k -H GET --header -s -u admin:admin https://<Cluster Master Host>:<Cluster Master API Port>/image-manager/api/v1/auth/token
The response resembles the following code:
root@master:~# curl -k -H GET --header -s -u admin:admin https://mycluster.icp:8443/image-manager/api/v1/auth/token
{"expires_in":1800,"issued_at":"2017-11-30T05:24:21Z","token":\
"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjZMUDY6SFFJUjozVkg0OlZIUUk6TTRNMjpMSEFWOldGS0M6Mk9aQTpSTjRMOlQ3UUs6RzVLUTpKNkg1In0.eyJpc3MiOiJyZWdpc3RyeS10b2tlbi1pc3N1ZXIiLCJzdWIiOiIiLCJhdWQiOiIiLCJleHAiOjE1MTIwMjEyNjEsIm5iZiI6MTUxMjAxOTQ2MSwiaWF0IjoxNTEyMDE5NDYxLCJqdGkiOiJsYzVkRzVPVTI0anhjemVLIiwiYWNjZXNzIjpudWxsfQ.F2D6VjwhQRlRvU-da2zHDzDbck8avh1lxc8B4hAVrIhEY8orcqwYhocjxnFk3kXdNm3yihMwi17lYySEnet3_p7jWOJ0XGTF6_m7DeUsNd-YqtGGv7FTycTG_10Xnm7zuknBhpsbMx_Eq4gKRBM1ndwdkhhOLG135r97BbTcT_GlHcnmyKfFLXfmhVgiAhBeTn1_phmSO-Olys0bhbKl2M_jIiCGLwleKQpa3dFsJ3JsYGSQcB7dEVZuSAmzc3OmlYXmvl8oCnjyM-RIkQk8-uGkI_7cjhXOY8rORGMgp0r6f8LXky5K_XH1mIG7BARKr1E-9SKyyIGwRWMUIs3fwA"}
Responses
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | OK | No content |