Updated on 2026-11-05 GMT+08:00

Modifying CTS Configurations

Function

This API is used to modify CTS 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.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.

URI

PUT /v3/{project_id}/configuration

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details, see Obtaining an Account ID and Project ID.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

is_sync_global_trace

Yes

Boolean

Whether to synchronize global service logs from the central region.

is_support_read_only

Yes

Boolean

Whether to report read-only audit logs of all cloud services.

support_read_only_services

No

Array of strings

Cloud services for which read-only audit logs are enabled. This parameter takes effect only when is_support_read_only is set to false.

Response Parameters

Status code: 204

Modified.

None

Example Requests

{
  "is_support_read_only" : false,
  "is_sync_global_trace" : true,
  "support_read_only_services" : [ "IAM", "ECS", "CTS" ]
}

Example Responses

None

Status Codes

Status Code

Description

204

Modified.

Error Codes

See Error Codes.