统一身份认证服务 IAM-创建永久访问密钥:响应示例

时间:2024-08-16 08:45:06

响应示例

状态码为 201 时:

创建成功。

{
    "credential": {
        "access": "P83EVBZJMXCYTMUII...",
        "create_time": "2020-01-08T06:25:19.014028Z",
        "user_id": "07609fb9358010e21f7bc003751...",
        "description": " IAM Description",
        "secret": "TTqAHPbhWorg9ozx8Dv9MUyzYnOKDppxzHt...",
        "status": "active"
    }
}

状态码为 400 时:

参数无效。(包括密钥数量已达到上限。)

{
    "error": {
        "message": "akSkNumExceed",
        "code": 400,
        "title": "Bad Request",
        "error_msg": null,
        "error_code": null
    }
}
support.huaweicloud.com/api-iam/iam_03_0001.html