Queries the details of a Logstore.

Description

The value of the Host parameter consists of a project name and a Log Service endpoint. You must specify a project in the Host parameter when you call this API operation.

Request headers

The GetLogStore operation does not have operation-specific request headers and uses only common request headers. For more information, see Common request headers.

Request syntax

GET /logstores/{logstore} HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
logstore String Path Yes ali-test-logstore

The name of the Logstore.

project String Host Yes ali-test-project

The name of the project.

Response parameters

Parameter Type Example Description
logstore

The Logstore struct.

Examples

Sample requests

GET /logstores/ali-test-logstore HTTP/1.1
Host:ali-test-project.cn-hangzhou.log.aliyuncs.com
Content-Type:application/json

Sample success responses

JSON format

HTTP/1.1 200 OK

Error codes

For a list of error codes, visit the API Error Center.

Error codes

HttpStatusCode

ErrorCode

ErrorMessage

Description

404

ProjectNotExist

Project does not exist.

The error message returned because the specified project does not exist.

404

LogStoreNotExist

Logstore does not exist.

The error message returned because the specified Logstore does not exist.

500

InternalServerError

Specified Server Error Message.

The error message returned because an internal server error has occurred.

For more information, see Common error codes.