# ファイルダウンロード結果

クラウドフォンからのファイルダウンロードの状態をポーリングします。
- **前提条件**
：クラウドフォンが起動済みで、他のメンバーに占有されていないこと。ダウンロード要求が返した
`downId`
 を渡します。
- **値**
：
**アップロードとは異なる体系です**
 —
`10`
 実行中、
`20`
 成功、
`30`
 失敗、
`40`
 キャンセル。
`downUrl`
 はダウンロードが成功して初めて設定されます。
- **補足**
：「ファイルが存在しない」はこのエンドポイントではなく、先に親ディレクトリを走査するダウンロード要求側で報告されます。

Endpoint: POST /api/cloudphone/download/result
Version: 2026-09-05

## Request fields (application/json):

  - `id` (string, required)
    Cloud phone ID

  - `downId` (string, required)
    File download ID

## Response 200:

  - `200` (unknown)
    Success. `data` is an object with the fields `status`, `downId` and `downUrl`.

## Response 200 fields (application/json):

  - `code` (integer, required)
    Response code, 0 indicates success,>0 indicates failure

  - `msg` (string | null, required)

  - `data` (object, required)

  - `data.status` (integer, required)
    Download file status;10:Running, 20:Successful, 30:Failed, 40:Cancelled

  - `data.downUrl` (string)
    File download URL; use it only when status is 20

  - `data.downId` (string, required)
    File download task ID

  - `requestId` (string, required)

