Modifies a configuration item in the common configuration for anomaly alerts.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateConfig

The operation that you want to perform.

Set the value to CreateConfig.

Lang String No zh

The language of the content within the request and response. Valid values:

  • zh: Chinese
  • en: English
Code String No access_failed_cnt

The code of the configuration item that you want to modify. Valid values:

  • access_failed_cnt: the maximum number of access attempts allowed when Data Security Center (DSC) fails to access an unauthorized resource.
  • access_permission_exprie_max_days: the maximum idle period allowed for an access permission before an alert is triggered.
  • log_datasize_avg_days: the maximum percentage of the average amount of logs of a specific type generated in the previous 10 days than which the amount of logs generated on the current day can be less.
Description String No Maximum number of access attempts allowed when DSC fails to access an unauthorized resource: 10

The description of the common configuration item.

Value String No 30

The value of the configuration item. The specific meaning of this parameter varies with the value of the Code parameter.

  • If you set the Code parameter to access_failed_cnt, the Value parameter specifies the maximum number of access attempts allowed when DSC fails to access an unauthorized resource.
  • If you set the Code parameter to access_permission_exprie_max_days, the Value parameter specifies the maximum idle period allowed for an access permission before an alert is triggered.
  • If you set the Code parameter to log_datasize_avg_days, the Value parameter specifies the maximum percentage of the average amount of logs of a specific type generated in the previous 10 days than which the amount of logs generated on the current day can be less.

Response parameters

Parameter Type Example Description
RequestId String 208B016D-4CB9-4A85-96A5-0B8ED1EBF271

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CreateConfig
&Code=access_failed_cnt
&Description=Maximum number of access attempts allowed when DSC fails to access an unauthorized resource: 10
&Value=10
&<Common request parameters>

Sample success responses

XML format

<CreateConfigResponse>
      <RequestId>208B016D-4CB9-4A85-96A5-0B8ED1EBF271</RequestId>
</CreateConfigResponse>

JSON format

{
	"RequestId":"208B016D-4CB9-4A85-96A5-0B8ED1EBF271"
}

Error codes

For a list of error codes, visit the API Error Center.