This API is used to update a data masking rule.
PUT /v1/{project_id}/waf/policy/{policy_id}/privacy/{privacy_rule_id}
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. |
policy_id |
Yes |
String |
Specifies the policy ID. |
privacy_rule_id |
Yes |
String |
Specifies the ID of a data masking rule. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
path |
Yes |
String |
Specifies the URL to which the data masking rule applies (exact match by default). |
category |
Yes |
String |
Specifies the masked field. The options are params and header. |
index |
Yes |
String |
Specifies the masked subfield. |
Parameter |
Type |
Description |
|---|---|---|
id |
String |
Specifies the ID of a data masking rule. |
policy_id |
String |
Specifies the policy ID. |
path |
String |
Specifies the URL to which the data masking rule applies (exact match by default). |
category |
String |
Specifies the masked field. The options are params and header. |
index |
String |
Specifies the masked subfield. |
timestamp |
Long |
Specifies the time when a data masking rule is added. |
{
"path": "/login",
"category": "params",
"index": "password"
}
{
"id": "e1c0e55865544d1f8c95cf71df108c6b",
"policy_id": "yuc0e55865544d1f8c95cf71df108c6b",
"path": "/login",
"category": "params",
"index": "password",
"timestamp": 123434534543
}
For details about error status codes, see Status Codes.