Help Center/ Data Security Center/ API Reference/ API Description/ Static Data Masking/ Updating the Encryption and Masking Configuration
Updated on 2026-01-13 GMT+08:00

Updating the Encryption and Masking Configuration

Function

This API is used to modify the encryption and masking configuration of a specified configuration ID.

Calling Method

For details, see Calling APIs.

URI

PUT /v1/{project_id}/sdg/server/mask/algorithms/encryption-configurations/{configuration_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Unique project ID.

configuration_id

Yes

String

Configuration ID.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

configuration_id

No

String

Unique ID of the encryption and masking configuration.

configuration_name

No

String

Name of the encryption and masking configuration.

enable_rotate

No

Boolean

Whether to enable key rotation

rotate_period

No

Integer

Key rotation period (days)

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

msg

String

Returned message content, which is used to describe the operation result.

status

String

Returned status code. For example, 200 indicates success, and 400 indicates an error.

Status code: 201

Resource creation.

Example Requests

PUT /v1/{project_id}/sdg/server/mask/algorithms/encryption-configurations/{configuration_id}

{
  "configuration_id" : "60a8a22xxxxxxxxxxxxxx026a2205",
  "configuration_name" : "kms-abc",
  "enable_rotate" : true,
  "rotate_period" : 45
}

Example Responses

None

Status Codes

Status Code

Description

200

Updated.

201

Resource creation.

401

Unauthorized.

403

Access denied.

404

Resource not found.

Error Codes

See Error Codes.