统一身份认证服务 IAM-密钥定期自动化轮换:步骤2:查询AK/SK的创建时间(或查询指定AK/SK的创建时间)
步骤2:查询AK/SK的创建时间(或查询指定AK/SK的创建时间)
- 查询所有AK/SK的创建时间。
URI:GET /v3.0/OS-CREDENTIAL/credentials
API文档详情请参见:查询所有永久访问密钥
API Explorer 在线调试请参见: 查询所有永久访问密钥
- 请求示例
GET https://iam.myhuaweicloud.com/v3.0/OS-CREDENTIAL/credentials
2) 管理员查询IAM用户所有AK/SK的创建时间。(待查询的用户ID为:076…)
GET https://iam.myhuaweicloud.com/v3.0/OS-CREDENTIAL/credentials?user_id=076...
- 响应示例
{ "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" } ] }
- 请求示例
- 查询指定AK/SK的创建时间。
URI:GET /v3.0/OS-CREDENTIAL/credentials/{access_key}
API文档详情请参见:查询指定永久访问密钥
API Explorer在线调试请参见:查询指定永久访问密钥
- 请求示例
GET https://iam.myhuaweicloud.com/v3.0/OS-CREDENTIAL/credentials/{access_key}
- 响应示例
{ "credential": { "last_use_time": "2020-01-08T06:26:08.123059Z", "access": "LOSZM4YRVLKOY9E8...", "create_time": "2020-01-08T06:26:08.123059Z", "user_id": "07609fb9358010e21f7bc00375....", "description": "", "status": "active" } }
- 请求示例