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}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Unique project ID. |
|
configuration_id |
Yes |
String |
Configuration ID. |
Request 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
|
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot