This API can be used by the administrator to list all permanent access key of an IAM user or used by an IAM user to list all of their permanent access keys.
The API can be called using both the global endpoint and region-specific endpoints.
GET /v3.0/OS-CREDENTIAL/credentials
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
user_id |
No |
String |
User ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
Fill application/json;charset=utf8 in this field. |
X-Auth-Token |
Yes |
String |
A token with Security Administrator permissions is required if the administrator is requesting to query all permanent access keys of an IAM user. The user token (no special permission requirements) of an IAM user is required if the user is requesting to query their permanent access keys. |
Parameter |
Type |
Description |
---|---|---|
Array of objects |
Authentication result. |
GET https://sample.domain.com/v3.0/OS-CREDENTIAL/credentials
GET https://sample.domain.com/v3.0/OS-CREDENTIAL/credentials?user_id=07609fb9358010e21f7bc0037....
Status code: 200
The request is successful.
{ "credentials": [ { "access": "LOSZM4YRVLKOY9E8X...", "create_time": "2020-01-08T06:26:08.123059Z", "user_id": "07609fb9358010e21f7bc0037...", "description": "", "status": "active" }, { "access": "P83EVBZJMXCYTMU...", "create_time": "2020-01-08T06:25:19.014028Z", "user_id": "07609fb9358010e21f7bc003751...", "description": "", "status": "active" } ] }
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. |
500 |
Internal server error. |
None