检索已迁移的用户
使用此 API 检索已复制到 Automation 360 数据库的 Enterprise 10 数据库用户。
先决条件
您必须具有管理员角色或具有查看迁移权限的自定义角色才能检索已迁移的用户。
过程
- 将认证令牌添加到请求标头。
- 使用来自 API 响应的 ID 作为迁移 ID。
-
使用 POST 方法和端点 URL:
<your_control_room_url>/v2/migration/{migrationId}/users/list
请求正文:{ "sort": [], "filter": {}, "fields": [], "page": { "offset": 0, "total": 100, "totalFilter": 100, "length": 200 } }
请求参数:Parameter 必填 类型 描述 排序 否 字符串 排序方向 筛选器 否 字符串 筛选规则 字段数量 否 字符串 筛选字段 第 页 是 整数 分页规则 偏移 是 整数 页面起始索引 总计 否 整数 项目总数 totalFilter 否 整数 与筛选器匹配的条目总数 长度 是 整数 要返回的项目数量 -
发送请求
响应正文:
{ "page": { "offset": 0, "total": 5, "totalFilter": 5 }, "list": [ { "id": 10, "type": "USER", "sourceId": "1", "targetId": 11, "name": "admin_1", "status": "SUCCESS", "reason": "The user admin has been renamed to admin_1 as the user with same name already exists", "targetPath": "" }, ...................... { "id": 14, "type": "USER", "sourceId": "5", "targetId": 15, "name": "admin10503", "status": "SUCCESS", "reason": "", "targetPath": "" } ] }
响应参数:
Parameter 描述 list 用户列表 id 用户 ID 仅用于 UI 目的。
type 迁移类型 sourceId 源(数据库)用户 ID targetId 已迁移的用户 ID name 用户名 status 迁移状态 有效值:成功、跳过或失败。
reason 迁移失败的原因。 targetPath 迁移的 bot 文件位置 仅适用于 bot 迁移。
REST API 用 HTTP 响应代码响应每个请求。 有关响应代码,请参阅 API 响应代码。