All Products
Search
Document Center

:GetLogStore

Last Updated:Jul 25, 2024

Queries the details of a Logstore.

Operation description

Usage notes

Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /logstores/{logstore}

Request parameters

ParameterTypeRequiredDescriptionExample
logstorestringYes

The name of the Logstore.

ali-test-logstore

Response parameters

ParameterTypeDescriptionExample
logstore

The information about the Logstore.

ali-test-logstore

Examples

Sample success responses

JSONformat

{
  "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
    }
  }
}

Error codes

For a list of error codes, visit the Service error codes.