擷取移轉的認證
使用此 API 擷取 Enterprise 10 複製到 Automation 360 資料庫的資料庫認證。
先決條件
您必須具有管理員角色或具有 View Migration 權限的自定義角色才能檢索遷移的憑據。
程序
- 將驗證令牌添加到請求標頭。使用 HTTP 請求語法 (URL) :
- 使用 API 響應主體中的 ID 作爲 遷移 ID。
-
使用 POST 方法和端點 URL :
<yu_control_room _url>/v2/migration/{migreationId}/credentials/list
請求主體:{ "sort": [], "filter": {}, "fields": [], "page": { "offset": 0, "total": 100, "totalFilter": 100, "length": 200 } }
請求參數:參數 必填 類型 描述 sort 不可以 字串 排序方向 篩選器 不可以 字串 過濾器規則 欄位 不可以 字串 篩選欄位 第 頁 不可以 整數 分頁規則 偏移 是 整數 頁面起始索引 總計 不可以 整數 執行總次數 總篩選器 不可以 整數 符合篩選器的項目總數 長度 是 整數 要退回的項目數 -
發送請求。
響應主體:
{ "page": { "offset": 0, "total": 2, "totalFilter": 2 }, "list": [ { "id": 15, "type": "CREDENTIAL", "sourceId": "4", "targetId": 2, "name": "admin10501 - Email Settings", "status": "SUCCESS", "reason": "", "targetPath": "" }, { "id": 16, "type": "CREDENTIAL", "sourceId": "5", "targetId": 2, "name": "admin10502 - Email Settings", "status": "SUCCESS", "reason": "", "targetPath": "" } ] }
響應參數:參數 描述 清單 認證清單 id 認證 ID type 遷移類型 sourceId 來源(資料庫)認證 ID targetId 遷移的身份憑證 ID name 認證名稱 status 遷移狀態 有效值:成功、 已跳過或失敗。
reason 遷移失敗的原因 TargetPath 遷移 bot 的文件位置 就是這樣 僅適用於 bot 移轉。
REST API 會以 HTTP 回應碼回應每個要求。有關響應代碼,請參閱 API 回應碼。