返回结果
请求发送以后,您会收到响应,包含状态码、响应消息头和消息体。
响应消息体
响应消息体通常以结构化格式返回,与响应消息头中Content-type对应,传递除响应消息头之外的内容。
对于管理员创建IAM用户接口,返回如下消息体。为篇幅起见,这里只展示部分内容。
{ 
    "user": { 
        "id": "c131886aec...", 
        "name": "IAMUser", 
        "description": "IAM User Description", 
        "areacode": "", 
        "phone": "", 
        "email": "***@***.com", 
        "status": null, 
        "enabled": true, 
        "pwd_status": false, 
        "access_mode": "default", 
        "is_domain_owner": false, 
        "xuser_id": "", 
        "xuser_type": "", 
        "password_expires_at": null, 
        "create_time": "2024-05-21T09:03:41.000000", 
        "domain_id": "d78cbac1..........", 
        "xdomain_id": "30086000........", 
        "xdomain_type": "", 
        "default_project_id": null 
    } 
}
  当接口调用出错时,会返回错误码及错误信息说明,错误响应的Body体格式如下所示。
{ 
    "error_msg": "Request body is invalid.", 
    "error_code": "IAM.0011" 
}
  其中,error_code表示错误码,error_msg表示错误描述信息。
  
    