全部產品
Search
文件中心

Cloud Monitor:DescribeHybridMonitorSLSGroup

更新時間:Jun 13, 2026

呼叫 DescribeHybridMonitorSLSGroup 介面查詢 Logstore 組列表。

介面說明

本文將提供一個示例,查詢當前帳號下的所有 Logstore 組。返回結果顯示,當前帳號下有兩個 Logstore 組,分別是Logstore_testLogstore_aliyun

調試

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

調試

授權資訊

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

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

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

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

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

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

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

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

操作

存取層級

資源類型

條件關鍵字

關聯操作

cms:DescribeHybridMonitorSLSGroup

get

*All Resource

*

請求參數

名稱

類型

必填

描述

樣本值

Keyword

string

搜尋關鍵字。

Logstore

PageSize

string

分頁時每頁顯示的資料行數。

起始值:1。預設值:10。

10

PageNumber

string

頁碼。

起始值:1。預設值:1。

1

SLSGroupName

string

Logstore 組名稱。

Logstore_test

關於公共請求參數的詳情,請參見公共參數

返回參數

名稱

類型

描述

樣本值

object

無。

Code

string

狀態碼。

說明

200 表示成功。

200

Message

string

錯誤資訊。

NotFound.SLSGroup

RequestId

string

請求 ID。

66683237-7126-50F8-BBF8-D67ACC919A17

Success

string

操作是否成功。取值:

  • true:成功。

  • false:失敗。

true

List

array<object>

Logstore 組列表。

array<object>

無。

SLSGroupName

string

Logstore 組名稱。

Logstore_test

SLSGroupDescription

string

Logstore 組描述。

Logstore group of Alibaba Cloud products.

SLSGroupConfig

array<object>

Logstore 組的設定資訊。

object

無。

SLSRegion

string

地區。

cn-hangzhou

SLSProject

string

記錄項目。

aliyun-project

SLSLogstore

string

日誌庫。

Logstore-aliyun-all

SLSUserId

string

成員 ID。

說明

當您通過管理帳號調用 API 時,顯示該參數。

120886317861****

CreateTime

string

建立 Logstore 組的時間戳記。

單位:毫秒。

1652845630000

UpdateTime

string

修改 Logstore 組的時間戳記。

單位:毫秒。

1652845630000

PageSize

integer

分頁時每頁顯示的資料行數。

10

PageNumber

integer

頁面。

1

Total

integer

總記錄條數。

2

樣本

正常返回樣本

JSON格式

{
  "Code": "200",
  "Message": "NotFound.SLSGroup",
  "RequestId": "66683237-7126-50F8-BBF8-D67ACC919A17",
  "Success": "true",
  "List": [
    {
      "SLSGroupName": "Logstore_test",
      "SLSGroupDescription": "Logstore group of Alibaba Cloud products.",
      "SLSGroupConfig": [
        {
          "SLSRegion": "cn-hangzhou",
          "SLSProject": "aliyun-project",
          "SLSLogstore": "Logstore-aliyun-all",
          "SLSUserId": "120886317861****"
        }
      ],
      "CreateTime": "1652845630000",
      "UpdateTime": "1652845630000"
    }
  ],
  "PageSize": 10,
  "PageNumber": 1,
  "Total": 2
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 %s %s
412 %s %s
500 %s %s
500 InternalError %s
403 %s %s
404 %s %s
409 %s %s

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

變更歷史

更多資訊,參考變更詳情