DescribeLogStoreInfo

Updated at:

Retrieves Simple Log Service information.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-cloudfirewall:DescribeLogStoreInfo

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

Ttl

integer

The storage duration of logs. Unit: days.

20

RequestId

string

The ID of the request.

C6C3B72B********E95FB0A161

Quota

integer

The available log storage capacity. Unit: bytes.

50000000

ProjectName

string

The name of the Simple Log Service project.

project-xxx-cn-hangzhou

LogStoreName

string

The name of the Simple Log Service Logstore.

xxx-logstore

Used

integer

The used storage capacity. Unit: bytes.

Note

The statistics of Simple Log Service have a delay of about two hours.

0

RegionId

string

The region ID for log delivery.

cn-shanghai

InfoList

array<object>

The information list.

object

The information list.

Ttl

integer

The storage duration of logs. Unit: days.

180

Quota

integer

The storage capacity threshold. Unit: bytes.

50000000

ProjectName

string

The name of the Simple Log Service project.

cloudfirewall-project-14151892848****-cn-hangzhou

LogStoreName

string

The name of the Logstore.

xxx-logstore

Used

integer

The volume of stored logs. Unit: bytes.

21852955752

MaxSplitShard

integer

The maximum number of shards supported for elastic scaling.

4

Shard

integer

The number of shards currently in use.

2

RegionId

string

The region ID.

cn-qingdao

Site

string

The site to which the Logstore belongs. Valid values: cn: the Chinese mainland. intl: outside the Chinese mainland.

cn

LogVersion

integer

The log version. Valid values: 1: one Logstore. 2: two Logstores.

2

TotalQuota

integer

The total log storage capacity purchased by the user.

50000000

LogModifyQuota

integer

The number of times the user can switch the log mode.

2

TaskId

string

The task ID.

132

Examples

Success response

JSON format

{
  "Ttl": 20,
  "RequestId": "C6C3B72B********E95FB0A161",
  "Quota": 50000000,
  "ProjectName": "project-xxx-cn-hangzhou",
  "LogStoreName": "xxx-logstore",
  "Used": 0,
  "RegionId": "cn-shanghai",
  "InfoList": [
    {
      "Ttl": 180,
      "Quota": 50000000,
      "ProjectName": "cloudfirewall-project-14151892848****-cn-hangzhou",
      "LogStoreName": "xxx-logstore",
      "Used": 21852955752,
      "MaxSplitShard": 4,
      "Shard": 2,
      "RegionId": "cn-qingdao",
      "Site": "cn"
    }
  ],
  "LogVersion": 2,
  "TotalQuota": 50000000,
  "LogModifyQuota": 2,
  "TaskId": "132"
}

Error codes

HTTP status code

Error code

Error message

Description

403 LogStoreNotExist The specified logstore does not exist. It may have been deleted manually. Please go to the SLS console to view detailed information. The specified LogStore does not exist. It may have been manually deleted. Please go to the SLS console to view detailed information.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.