This API is used to check the validity of a specified token. If the token is valid, detailed information about the token will be returned.
GET /v3/auth/tokens
Parameter | Mandatory | Type | Description |
|---|---|---|---|
nocatalog | No | String | If this parameter is set, no catalog information will be displayed in the response. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
X-Auth-Token | Yes | String |
|
X-Subject-Token | Yes | String | Token to be verified. |
curl -i -k -H "X-Auth-Token:$token" -H "X-Subject-Token:$token" -X GET https://sample.domain.com/v3/auth/tokens
Parameter | Mandatory | Type | Description |
|---|---|---|---|
X-Subject-Token | Yes | String | Verified token. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
Yes | Object | Token information list. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
methods | Yes | Array | Method of obtaining the token, for example, password. |
expires_at | Yes | String | Expiration date of the token. |
issued_at | Yes | String | Time when the token was issued. |
Yes | Object | Example:
| |
No | Object | The system determines whether to return this field based on the scope contained in the request for obtaining the token. Example:
| |
No | Object | The system determines whether to return this field based on the scope contained in the request for obtaining the token. Example:
| |
No | Json Array | Endpoint information. Example:
| |
Yes | Array | Permissions information of the token. Example:
|
Parameter | Type | Description |
|---|---|---|
Array of objects | Endpoint information. | |
id | String | Service ID. |
name | String | Service name. |
type | String | Type of the service to which the API belongs. |
Parameter | Type | Description |
|---|---|---|
id | String | Endpoint ID. |
interface | String | Visibility of the API. public indicates that the API is available for public access. |
region | String | Region to which the endpoint belongs. |
region_id | String | Region ID. |
url | String | Endpoint URL. |
token.domain
Parameter | Type | Description |
|---|---|---|
name | String | Domain name. |
id | String | Domain ID. |
Parameter | Type | Description |
|---|---|---|
Object | Domain information of the project. | |
id | String | Project ID. |
name | String | Project name. |
token.project.domain
Parameter | Type | Description |
|---|---|---|
id | String | Domain ID. |
name | String | Domain name. |
Parameter | Type | Description |
|---|---|---|
name | String | Permission name. |
id | String | Permission ID. The default value is 0, which does not correspond to any permission. |
Parameter | Type | Description |
|---|---|---|
name | String | IAM username. |
id | String | User ID. |
password_expires_at | String | Password expiration time. If this parameter is not specified, the password will never expire. NOTE: The value is a UTC time in the YYYY-MM-DDTHH:mm:ss.ssssssZ format, for example, 2023-06-28T08:56:33.710000Z. For details about the date and timestamp formats, see ISO-8601. |
Object | Information about the account used to create the IAM user. |
Parameter | Type | Description |
|---|---|---|
name | String | Name of the account used to create the IAM user. |
id | String | ID of the account used to create the IAM user. |
{"token" : {"methods" : ["password"],"expires_at" : "2015-11-09T01:42:57.527363Z","issued_at" : "2015-11-09T00:42:57.527404Z","user" : {"domain" : {"id" : "default","name" : "Default"},"id" : "ee4dfb6e5540447cb3741905149XXX...","password_expires_at":"2016-11-06T15:32:17.000000","name" : "admin"},"domain" : {"name" : "Default","id" : "default"},"roles" : [{"name" : "role1","id" : "roleid1"}, {"name" : "role2","id" : "roleid2"}]}}
Status Code | Description |
|---|---|
200 | The request is successful. |
400 | The server failed to process the request. |
401 | Authentication failed. |
403 | Access denied. |
404 | The requested resource cannot be found. |
503 | Service unavailable. |