Skip to content

Danh sách môi trường chạy đám mây

Request

Liệt kê các profile trình duyệt kèm trạng thái runtime trên cloud cho thành viên đang gọi.

  • Tác động: không có. Chỉ đọc. An toàn khi thử lại với thời gian chờ tăng dần có giới hạn.
  • Giá trị trạng thái: cloudBrowserStatus chỉ có thể là STARTING, RUNNING hoặc CLOSED. RUNNING không có nghĩa là trình duyệt dùng được: một runtime đang dừng, đang lưu trữ, hoặc dừng thất bại cũng được báo là RUNNING. cloudBrowserArchiveStatus (PENDING, ARCHIVING, COMPLETED, FAILED) giúp phân biệt hai trường hợp này và bằng null khi không có hoạt động nào.
  • Tính nhất quán: việc tra cứu runtime là tất-cả-hoặc-không-gì. Nếu không tra cứu được cho cả trang, lệnh gọi sẽ thất bại thay vì trả về dữ liệu một phần.
Bodyapplication/jsonrequired
uniqueIdsArray of integers, (int32), <= 100 items

Environment sequence numbers. Up to 100 items.

Example:
[ 1001, 1002 ]
envIdstring(EnvironmentId)^[1-9]\d*$

Environment ID. The request also accepts the field alias id.

Example:"1800000000000001"
envNamestring

Environment name.

Example:"marketing-01"
keywordstring

Keyword filter. Matches environment name, group name, tag name, and remark.

Example:"marketing"
groupIdstring^\d+$

Group ID. 0 means ungrouped.

Example:"0"
pageNointeger, (int64), >= 1required

Current page number, starting from 1. Default is 1.

Default:1
Example:1
pageSizeinteger, (int64), [ 1 .. 100 ]required

Number of items per page. Default is 10, maximum 100.

Default:10
Example:10
curl -i -X POST \
  http://127.0.0.1:40000/api/cloudbrowser/page \
  -H 'Content-Type: application/json' \
  -d '{
    "pageNo": 1,
    "pageSize": 10,
    "keyword": "marketing"
  }'

Responses

Success

Bodyapplication/json
codeintegerrequired

Return result code. 0 means success; other codes indicate exceptions.

Example:0
msgstring or nullrequired

Error message. Usually null on success.

Example:null
requestIdstring

Operation request ID. This field may be present when the request passes through the API gateway.

Example:"1d4f3ea968664593860b94b35d4ebf5e"
dataobject(CloudBrowserPageData)required
Response
{ "code": 0, "msg": null, "requestId": "1d4f3ea968664593860b94b35d4ebf5e", "data": { "total": "42", "current": "1", "pages": "5", "dataList": [ … ] } }