文档

GetLogStore - 查看Logstore信息

更新时间:

查看Logstore的详细信息。

接口说明

Host 由 Project 名称和日志服务 Endpoint 构成,您需要在 Host 中指定 Project。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求语法

GET /logstores/{logstore}

请求参数

名称类型必填描述示例值
logstorestring

Logstore 名称。

ali-test-logstore

返回参数

名称类型描述示例值
logstore

Logstore 结构体。

ali-test-logstore

示例

正常返回示例

JSON格式

{
  "logstoreName": "my-logstore",
  "ttl": 1,
  "shardCount": 2,
  "enable_tracking": false,
  "autoSplit": true,
  "maxSplitShard": 6,
  "appendMeta": false,
  "telemetryType": "Metrics",
  "createTime": 1453949705,
  "lastModifyTime": 1524155379,
  "encrypt_conf": {
    "enable": true,
    "encrypt_type": "default",
    "user_cmk_info": {
      "cmk_key_id": "f5136b95-2420-ab31-xxxxxxxxx",
      "arn": "acs:ram::13234:role/logsource",
      "region_id": "cn-hangzhou"
    }
  },
  "hot_ttl": 60,
  "infrequentAccessTTL": 30,
  "mode": "standard",
  "productType": "aliyun",
  "resourceQuota": {
    "storage": {
      "preserved": -1,
      "used": 0
    }
  }
}

错误码

访问错误中心查看更多错误码。

错误码

HttpStatusCodeErrorCodeErrorMessage错误码描述
404ProjectNotExistProject does not exist.Project 不存在。
404LogStoreNotExistLogstore does not exist.Logstore 不存在。
500InternalServerErrorSpecified Server Error Message.内部服务调用错误。

更多信息,请参见通用错误码