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

Querying All Log Settings

Function

Query all log settings.

Calling Method

For details, see Calling APIs.

URI

GET /v1/{project_id}/antiddos/lts-config

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

enterprise_project_id

Yes

String

Enterprise project ID.

Request Parameters

Table 3 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 request header.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

enabled

Boolean

Whether to enable logging.

lts_id_info

lts_id_info object

Log information.

Table 5 lts_id_info

Parameter

Type

Description

lts_group_id

String

Log group ID.

lts_attack_stream_id

String

Log stream ID.

Example Requests

None

Example Responses

Status code: 200

Request succeeded.

{
  "enabled" : true,
  "lts_id_info" : {
    "lts_group_id" : "3f664a8c-53bd-4f77-922d-xxxxxxxxxxxx",
    "lts_attack_stream_id" : "ea9ffec3-6fe4-4884-9dd0-xxxxxxxxxxxx"
  }
}

Status Codes

Status Code

Description

200

Request succeeded.

401

Unauthorized

403

Forbidden

404

Not Found

Error Codes

See Error Codes.