全部產品
Search
文件中心

Simple Log Service:get_logstore

更新時間:Jun 30, 2024

調用CLI命令擷取指定Logstore資訊。

請求文法

aliyunlog log get_logstore --project_name=<value> --logstore_name=<value> [--access-id=<value>] [--access-key=<value>] [--sts-token=<value>] [--region-endpoint=<value>] [--client-name=<value>] [--jmes-filter=<value>] [--format-output=<value>] [--decode-output=<value>]

請求參數

該命令的必選和特有參數描述如下。

參數名稱

數實值型別

是否必選

樣本值

描述

--project_name

String

aliyun-test-project

Project名稱。

--logstore_name

String

moni-nginx

Logstore名稱。

關於該命令的全域參數,請參見全域參數

樣本

  • 請求樣本

    查詢預設帳號下的名稱為moni-nginx的Logstore資訊。

    aliyunlog log get_logstore --project_name="aliyun-test-project" --logstore_name="moni-nginx"
  • 返回樣本

    {
      "appendMeta": true,
      "archiveSeconds": 0,
      "autoSplit": true,
      "createTime": 1619493098,
      "enable_tracking": false,
      "lastModifyTime": 1620814389,
      "logstoreName": "moni-nginx",
      "maxSplitShard": 64,
      "resourceQuota": {
        "storage": {
          "preserved": -1,
          "used": 0
        }
      },
      "shardCount": 2,
      "telemetryType": "",
      "ttl": 30
    }

錯誤碼

如果返回報錯資訊,請參見具體介面的錯誤碼處理。更多資訊,請參見GetLogstore錯誤碼處理

API參考

GetLogStore