This API can be used by the administrator to verify the token of a user or used by a user to verify their token. The administrator can only verify the token of a user created using the account. If the verified token is valid, 200 is displayed.
HEAD /v3/auth/tokens
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
|
X-Subject-Token |
Yes |
String |
Token to be verified. |
None
curl -i -k -H "X-Auth-Token:$token" -H "X-Subject-Token:$token" -X HEAD https://sample.domain.com/v3/auth/tokens
None
Status Code |
Description |
---|---|
200 |
The request is successful. |
401 |
Authentication failed. |
404 |
The requested resource cannot be found. |
500 |
The system is abnormal. |