Modifies the custom configuration items of a check item.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:ChangeCheckCustomConfig | none | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The region where the Security Center instance is deployed. Valid values:
| cn-hangzhou |
CheckId | long | No | The ID of the check item. Note
You can call the ListCheckResult operation to query the IDs of check items.
| 76 |
CustomConfigs | array<object> | No | The custom configuration items of the check item. | |
object | No | The custom configuration item of the check item. | ||
Name | string | No | The name of the custom configuration item. The name of a custom configuration item is unique in a check item. | SessionTimeMax |
Value | string | No | The value of the custom configuration item. The value is a string. | 13 |
Operation | string | No | The operation that you want to perform on the custom configuration item. This parameter is required only if you want to delete the custom configuration item. To delete the custom configuration item, set the value to DELETE. | DELETE |
RepairConfigs | array<object> | No | The parameters required for fixing risk items. | |
object | No | |||
Name | string | No | The name of the parameter required for fixing a risk item, which is unique in a check item. | Port |
Value | string | No | The value of the parameter required for fixing a risk item. The value is a string. | 80 |
Operation | string | No | The operation that you want to perform on the custom configuration item. This parameter is required only if you want to delete the custom configuration item. To delete the custom configuration item, set the value to DELETE. | DELETE |
FlowId | string | No | The ID of the fixing process. | ascgrmscyjgs********* |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "DA8133CC-CCA0-5CF2-BF64-FE7D52C44***",
"IllegalCustomConfigs": [
{
"Name": "SessionTimeMax"
}
],
"IllegalRepairConfigs": [
{
"Name": "SessionTimeMax"
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoPermission | no permission | - |
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-07-25 | The Error code has changed | View Change Details |
2024-04-29 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |