全部產品
Search
文件中心

STAROps:ListThreads

更新時間:Sep 21, 2026

列出會話。

介面說明

列出會話。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

starops:ListThreads

get

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/thread/*

無 無

請求文法

GET /digitalEmployee/{name}/threads HTTP/1.1

路徑參數

名稱

類型

必填

描述

樣本值

name

string

是

數位員工名稱。

test

請求參數

名稱

類型

必填

描述

樣本值

status

string

否

會話狀態。

active

threadId

string

否

會話 ID。

thread-123123

maxResults

integer

否

最大回傳結果數,最大值 200。

20

nextToken

string

否

分頁 Token。

xxxxxx

filter

array<object>

否

查詢的過濾條件,若不輸入則查詢該執行個體下所有的主題。

object

否

查詢的過濾條件,若不輸入則查詢該執行個體下所有的主題。

key

string

是

過濾 key,目前支援 title、workspace、project。

title

value

string

是

設定的值。

test

includeMission

boolean

否

是否包含 mission 建立的 thread。

返回參數

名稱

類型

描述

樣本值

object

Schema of Response

requestId

string

Id of the request

CD8BA7D6-995D-578D-9941-xxxx

threadId

string

會話 ID。

thread-123123

total

integer

總數。

1

maxResults

integer

最大回傳結果數,最大值 200。

20

threads

array<object>

會話。

array<object>

會話。

threadId

string

會話 ID。

thread-123123

digitalEmployeeName

string

數位員工名稱。

test

title

string

會話標題。

test

status

string

會話狀態。

active

version

integer

版本號。

123123

variables

object

會話屬性。

workspace

string

工作空間。

workspace

project

string

SLS project。

project

createTime

string

建立時間,採用 RFC 3339 格式,包含時區偏移。

2025-12-19T15:19:55.040403272+08:00

updateTime

string

更新時間,採用 RFC 3339 格式,包含時區偏移。

2025-12-19T15:19:55.040403272+08:00

attributes

object

屬性。

string

具體屬性。

test

nextToken

string

分頁 Token。

xxxxxxxxxx

樣本

正常返回樣本

JSON格式

{
  "requestId": "CD8BA7D6-995D-578D-9941-xxxx\n",
  "threadId": "thread-123123\n",
  "total": 1,
  "maxResults": 20,
  "threads": [
    {
      "threadId": "thread-123123\n",
      "digitalEmployeeName": "test",
      "title": "test",
      "status": "active",
      "version": 123123,
      "variables": {
        "workspace": "workspace",
        "project": "project"
      },
      "createTime": "2025-12-19T15:19:55.040403272+08:00\n",
      "updateTime": "2025-12-19T15:19:55.040403272+08:00\n",
      "attributes": {
        "key": "test"
      }
    }
  ],
  "nextToken": "xxxxxxxxxx"
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情。