全部產品
Search
文件中心

AI Coding Assistant Lingma:查詢組織角色列表

更新時間:Jul 01, 2025

通過 OpenAPI 查詢組織角色列表(本介面無需分頁,組織角色個數是有限的)。

適用版本

企業專屬版

服務存取點

擷取服務存取點,替換 API 請求文法中的 {domain}

授權資訊

產品

資源

要求的權限

組織管理

組織角色

唯讀

請求文法

GET https://{domain}/oapi/v1/platform/organizations/{organizationId}/roles

請求說明

查詢組織角色列表

curl -X 'GET' \
  'https://test-domain-***.rdc.aliyuncs.com/oapi/v1/platform/organizations/99d1****71d4/roles' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

要求標頭(Headers)

x-yunxiao-token string (必選)

個人存取權杖。您可參考個人存取權杖擷取。

樣本:pt-0fh3****0fbG_35af****0484。

請求參數

organizationId string (必選)

組織 ID。您可前往組織管理背景基本資料頁面擷取組織ID(organizationId)

返回參數

返回樣本

[
    {
        "id": "99d1****6124",
        "name": "樣本名",
        "organizationId": "99d1****6124",
        "permissions": ["base******"]
    }
]

id string

角色 ID。

name string

角色名稱。

organizationIdstring

組織 ID。

permissions array[string]

角色許可權列表。

錯誤碼

訪問錯誤碼中心查看 API 相關錯誤碼。