Help Center/ Anti-DDoS/ API Reference/ API/ DDoS Protection Management/ Updating All User Log Settings
Updated on 2025-10-09 GMT+08:00

Updating All User Log Settings

Function

Updating all user log settings.

Calling Method

For details, see Calling APIs.

URI

PUT /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.

Table 4 Request body parameters

Parameter

Mandatory

Type

Description

enabled

No

Boolean

Whether to enable logging.

lts_id_info

No

lts_id_info object

Log information.

Table 5 lts_id_info

Parameter

Mandatory

Type

Description

lts_group_id

No

String

Log group ID.

lts_attack_stream_id

No

String

Log stream ID.

Response Parameters

Status code: 200

OK

None

Example Requests

None

Example Responses

Status code: 200

OK

{
  "error_code" : "0",
  "error_msg" : "Success."
}

Status Codes

Status Code

Description

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

Error Codes

See Error Codes.