檢索已遷移 bots
使用此 API 檢索 Enterprise 10 bots 複製到 Automation 360 數據庫的已遷移列表。
先決條件
您必須具有管理員角色或具有 “查看遷移 ”權限的自定義角色才能檢索已遷移 bots的。
程序
- 將驗證令牌添加到請求標頭。使用 HTTP 請求語法 (URL) :
- 使用 API 響應主體中的 ID 作爲 遷移 ID。
-
使用 POST 方法和端點 URL :
<yu_control_room _url>/v2/migration/{migreationId}/bots/list
請求主體:{ "sort": [], "filter": {}, "fields": [], "page": { "offset": 0, "total": 100, "totalFilter": 100, "length": 200 } }
請求參數:
參數 必填 類型 描述 sort 不可以 字串 排序方向 篩選器 不可以 字串 過濾器規則 欄位 不可以 字串 篩選欄位 第 頁 不可以 整數 分頁規則 偏移 是 整數 頁面起始索引 總計 不可以 整數 項目總數 總篩選器 不可以 整數 符合篩選器的項目總數 長度 是 整數 要退回的項目數 -
發送請求。發送請求。
響應主體:
{ "page": { "offset": 0, "total": 1004, "totalFilter": 1004 }, "list": [ { "id": 17, "type": "BOT", "sourceId": "186", "targetId": 15, "name": "DelayLoop - Copy (129).atmx", "status": "SUCCESS", "reason": "", "targetPath": "Automation Anywhere\\Bots\\My Tasks\\Migration Extra" }, { "id": 18, "type": "BOT", "sourceId": "438", "targetId": 17, "name": "DelayLoop - Copy (115).atmx", "status": "SUCCESS", "reason": "", "targetPath": "Automation Anywhere\\Bots\\My Tasks\\Migration Extra\\RM-APIAutomation" }, .......................... { "id": 216, "type": "BOT", "sourceId": "703", "targetId": 221, "name": "DelayLoop - Copy (132).atmx", "status": "SUCCESS", "reason": "", "targetPath": "Automation Anywhere\\Bots\\My Tasks" } ] }
響應參數:
參數 描述 清單 清單 bots id bot ID type 遷移類型 sourceId 源(數據庫) bot ID targetId 遷移 bot 的 ID name bot 名稱 status 遷移狀態 有效值:成功、跳過或失敗。
reason 遷移失敗的原因 TargetPath 遷移 bot 的文件位置
REST API 會以 HTTP 回應碼回應每個要求。有關響應代碼,請參閱 API 回應碼。