You can call this operation to modify a configuration item in the general 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.

Code String No access_failed_cnt

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

  • access_failed_cnt: the maximum number of access attempts when SDDP fails to access an unauthorized resource.
  • access_permission_exprie_max_days: the maximum idle period for an access permission before an alert is triggered, in days.
  • log_datasize_avg_days: the lower limit of the output of a type of logs on the current day.
Description String No The maximum number of access attempts when SDDP fails to access an unauthorized resource. Currently, the maximum number is 10.

The description of the configuration item.

Lang String No zh

The language of the request and response. Valid values:

  • zh: Chinese
  • en: English
Value String No 30

The value of the configuration item.

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
&<Common request parameters>

Sample success responses

XML format

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

JSON format

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

Error codes

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