查询子账户(GetSubuser)
更新时间:2025-04-09 16:44:19
基本信息
Action:/qai/aicp/subuser
Method: GET
Content-Type:application/json
请求参数
参数 | 类型 | 描述 | 是否必须 |
---|---|---|---|
offset |
integer |
表示数据偏移量,默认值为 |
no |
limit |
integer |
表示返回数据长度,默认值为 |
no |
响应参数
此接口包含的公共响应参数,可参见前文内容,其他参数介绍如下:
参数 | 类型 | 描述 |
---|---|---|
data.user_id |
string |
子账户 ID。 |
data.root_user_id |
string |
子账户对应的主账户 ID。 |
data.email |
string |
账户邮箱。 |
data.notify_email |
string |
接收平台通知的邮箱。 |
data.phone |
string |
子账户的手机号。 |
data.user_name |
string |
子账户名称。 |
请求示例
curl -X 'GET' \
'https://ai.coreshub.cn/qai/aicp/subuser?offset=0&limit=0' \
-H 'accept: application/json'
响应示例
{
"ret_code": 0,
"message": "success",
"meta": {
"X_REQUEST_ID": "a869f69d",
"X_REQUEST_USER": "usr-5HY8cxxx"
},
"data": [
{
"user_id": "usr-bmxqYItH",
"root_user_id": null,
"email": "xxxxx@yunify.com#user01",
"notify_email": "xxxxx@yunify.com",
"phone": null,
"user_name": "user01"
}
],
"counts": 1
}