呼叫 DescribeHybridMonitorSLSGroup 介面查詢 Logstore 組列表。
介面說明
本文將提供一個示例,查詢當前帳號下的所有 Logstore 組。返回結果顯示,當前帳號下有兩個 Logstore 組,分別是Logstore_test和Logstore_aliyun。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
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 |
| 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 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。