All Products
Search
Document Center

Simple Log Service:ListStoreViews

Last Updated:Nov 28, 2024

Queries datasets in a project.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /storeviews HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
projectstringYes

The name of the project.

example-project
sizeintegerNo

The number of datasets to return. Default value: 100.

100
offsetintegerNo

The offset of the datasets to return. Default value: 0.

0
namestringNo

The dataset name that is used for fuzzy match.

my_storeview
storeTypestringNo

The type of the datasets to return. By default, datasets are not filtered by type.

Valid values:

  • metricstore

  • logstore

logstore

Response parameters

ParameterTypeDescriptionExample
object

The datasets.

countinteger

The number of returned datasets.

100
totalinteger

The total number of datasets in the project.

100
storeviewsarray

The dataset names.

string

The dataset name.

my_storeview

Examples

Sample success responses

JSONformat

{
  "count": 100,
  "total": 100,
  "storeviews": [
    "my_storeview"
  ]
}

Error codes

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