Skip to content

Batch Query ADB Info

Request

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.
Security
Authorization
Bodyapplication/jsonrequired
envIdsArray of strings, [ 1 .. 200 ] itemsrequired

List of environment IDs, maximum 200

Example:
[ "1674380838117474", "1675787900043353" ]
curl -i -X POST \
  https://api.morelogin.com/cloudphone/batchAdbInfo \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "envIds": [
      "1674380838117474",
      "1675787900043353"
    ]
  }'

Responses

Success

Bodyapplication/json
codeinteger

Response code, 0 indicates success

Example:0
msgstring or null

Response message

Example:"success"
dataArray of objects(ApiBatchAdbInfoResultDto)

ADB info list, in the same order as the requested envIds

Response
{ "code": 0, "msg": "success", "data": [ { … }, { … } ] }