Updated on 2026-09-10 GMT+08:00

Querying Log Configurations

Function

This API is used to query log configurations.

Calling Method

For details, see Calling APIs.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.

URI

GET /v1/cnad/config/lts

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

enterprise_project_id

No

String

Enterprise project ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.

Content-Type

Yes

String

Content-Type

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

enabled

Boolean

Log configuration switch

lts_id_info

lts_id_info object

Log configurations.

Table 4 lts_id_info

Parameter

Type

Description

eps_id

String

Enterprise project ID.

region

String

region

lts_group_id

String

Log group ID.

lts_attack_stream_id

String

Log stream ID.

Example Requests

None

Example Responses

Status code: 200

{
  "enabled" : true,
  "lts_id_info" : {
    "eps_id" : "0",
    "lts_attack_stream_id" : "5198b9c9-xxxx-xxxx-xxxx-176edfec83b1",
    "lts_group_id" : "3f664a8c-xxxx-xxxx-xxxx-f5e11dd8b7a1",
    "region" : "cn-north-4"
  }
}

Status Codes

Status Code

Description

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

Error Codes

See Error Codes.