Updated on 2026-01-06 GMT+08:00

Settings Logs

Function

Set logs.

Calling Method

For details, see Calling APIs.

URI

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

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

enable

Yes

Boolean

Log configuration switch

lts_id_info

No

lts_id_info object

Log configurations.

Table 4 lts_id_info

Parameter

Mandatory

Type

Description

eps_id

Yes

String

Enterprise project ID.

region

Yes

String

region

lts_group_id

Yes

String

Log group ID.

lts_attack_stream_id

Yes

String

Log stream ID.

Response Parameters

Status code: 200

OK

None

Example Requests

Use the LTS log stream whose ID is 189f7711-bc57-46ff-a69d-17168d95c970 to record DDoS attack logs.

PUT https://{endpoint}/v1/cnad/config/lts

{
  "enable" : true,
  "lts_id_info" : {
    "eps_id" : 0,
    "region" : "cn-test-1",
    "lts_group_id" : "9189f77-bc57-46ff-a69d-17168d95c970",
    "lts_attack_stream_id" : "189f7711-bc57-46ff-a69d-17168d95c970"
  }
}

Example Responses

None

Status Codes

Status Code

Description

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

Error Codes

See Error Codes.