最近更新时间:2023.12.25 20:24:13
首次发布时间:2022.11.25 11:53:32
调用GetAssignedPermissionUsers接口获取已分配权限的用户列表。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 |
| 请求名称。 |
Version | String | 是 |
| 请求版本。 |
ServiceName : apmplus_openapi Region : cn-beijing Content-Type : application/json
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
error_msg | string | - | 错误信息,成功为空。 |
error_no | int32 |
| 错误码,成功为0。 |
data | array of data | - | 已分配权限的用户列表。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
user_id | array of int32 |
| 用户ID。 |
user_name | string |
| 用户名。 |
apps | array of App | - | 可读写应用列表。 |
services | array of Service | - | 可读写服务列表。 |
create_time | int64 |
| 创建时间。 |
string |
| 子账号邮箱。 | |
phone | string |
| 用户手机号 |
role_type | int8 |
| 用户角色。
|
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
key | string |
| 应用key。 |
label | string |
| 应用名。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
key | string |
| 子账号key。 |
label | string |
| 子账号名。 |
GET https://open.volcengineapi.com/?Action=GetAssignedPermissionUsers&Version=2022-10-12
{ "data": [ { "user_id": [12345], "create_time": 1642562396, "phone": "151******", "role_type": 1, "services": [ { "key": "sub_user_key", "label": "sub_user_name" } ], "user_name": "user_name", "display_name": "", "apps": [ { "label": "12", "key": "测试应用" } ], "email": "test_user@test.com" } ], "error_no": 0, "error_msg": "" }
{ "ResponseMetadata": { "RequestId": "2018****22D30", "Action": "GetAssignedPermissionUsers", "Version": "2022-10-12", "Service": "***", "Region": "cn-north-1", "Error": { "Code": "200000", "Message": "参数异常" } } }