# Batch Query ADB Info

Fetch ADB connection details for up to 200 Cloud Phones.
- **Preconditions**: the phones must belong to your team. They do **not** need to be claimed by you. Details are only fetched for phones that are powered on and whose SKU supports ADB.
- **Effect**: none. Read-only. Safe to retry with bounded backoff.
- **Partial results**: results align with the requested ids and **never fail as a whole**. When details are unavailable, `remark` says why — the phone does not exist, is not powered on, does not support ADB, or the service lookup failed. Read `remark` before treating an empty entry as an error.
- **Batch scope**: one request may include different device models; results are returned together.
- **Note**: turn ADB on with `/cloudphone/updateAdb` first.

Endpoint: POST /cloudphone/batchAdbInfo
Version: 2026-09-05
Security: Authorization

## Security:

  - `Authorization` (unknown)
    http bearer JWT

## Request fields (application/json):

  - `envIds` (array, required)
    List of environment IDs, maximum 200
    Example: ["1674380838117474","1675787900043353"]

## Response 200:

  - `200` (unknown)
    Success

## Response 200 fields (application/json):

  - `code` (integer)
    Response code, 0 indicates success
    Example: 0

  - `msg` (string | null)
    Response message
    Example: success

  - `data` (array)
    ADB info list, in the same order as the requested envIds

  - `data.id` (string)
    Environment ID

  - `data.supportAdb` (boolean)
    Whether ADB is supported

  - `data.enableAdb` (boolean)
    Enable ADB 0 = Disabled, 1 = Enabled

  - `data.envStatus` (integer)
    Environment status:
- 0: New
- 1: Creation failed
- 2: Powered off
- 3: Booting
- 4: Powered on
- 5: Resetting
- 6: Restarting
- 7: One-click new machine in progress

  - `data.adbIp` (string | null)
    ADB connection IP address

  - `data.adbPassword` (string | null)
    ADB connection password

  - `data.adbPort` (string | null)
    ADB connection port

  - `data.command` (string | null)
    ADB SSH tunnel connection command

  - `data.expireTime` (string | null)
    ADB connection expiration time

  - `data.remark` (string | null)
    Remark info. When ADB info cannot be retrieved, the reason is provided:
- Environment does not exist
- Environment is not powered on, unable to query ADB info
- This environment does not support ADB
- Failed to retrieve ADB info

