Modifies the configuration items of the configuration assessment feature.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The region ID of the bastion host to query. Note
For more information about the mapping between region IDs and region names, see Regions and zones.
| cn-hangzhou |
CycleDays | array | No | The days in a week on which a check is performed. | |
integer | No | The day in a week on which a check is performed. Valid values: 1 to 7. | 3 | |
StartTime | integer | No | The start time of the check. The value specifies a point in time in a day. | 0 |
EndTime | integer | No | The end time of the check. The value specifies a point in time in a day. The time period that is specified by the start time and end time must be one of the following time periods:
| 6 |
StandardIds | array | No | An array that consists of the information about the check item. | |
long | No | The ID of the check item. Valid values:
| 2 | |
ConfigRequirementIds | object | No | The requirement IDs that you want to specify for the check policy. Note
You can call the ListCheckResult operation to obtain the requirement ID. If the ConfigStandardIds parameter is configured, this parameter does not take effect.
| |
AddIds | array | No | The requirement IDs that you want to add to the policy. | |
long | No | The requirement ID that you want to add to the policy. | 6 | |
RemoveIds | array | No | The requirement IDs that you want to remove from the policy. | |
long | No | The requirement ID that you want to remove from the policy. | 5 | |
ConfigStandardIds | object | No | The standard IDs that you want to specify for the check policy. Note
You can call the ListCheckResult operation to obtain the standard ID.
| |
AddIds | array | No | The standard IDs that you want to add to the policy. | |
long | No | The standard ID that you want to add to the policy. | 2 | |
RemoveIds | array | No | The standard IDs that you want to remove from the policy. | |
long | No | The standard ID that you want to remove from the policy. | 5 | |
EnableAutoCheck | boolean | No | Specifies whether to enable the automatic periodical check feature. Valid values:
| true |
EnableAddCheck | boolean | No | Specifies whether to check the new check items in the selected requirement item. Valid values:
| false |
AddedCheck | array<object> | No | The list of check items that you want to add to the policy. Note
If the ConfigStandardIds or ConfigRequirementIds parameter is configured, this parameter does not take effect.
| |
object | No | |||
CheckId | long | No | The ID of the check item. Note
You can call the ListCheckResult operation to obtain the ID of the check item.
| 5 |
SectionId | long | No | The section ID of the check item. | 69 |
RemovedCheck | array<object> | No | The list of the check items that you want to remove from the policy. Note
If the ConfigStandardIds or ConfigRequirementIds parameter is configured, this parameter does not take effect.
| |
object | No | |||
CheckId | long | No | The ID of the check item. Note
You can call the ListCheckResult operation to obtain the ID of the check item.
| 19 |
SectionId | long | No | The section ID of the check item. | 69 |
Vendors | array | No | The cloud service providers. | |
string | No | The cloud service provider. Valid values:
| ALIYUN | |
Configure | string | No | The configuration of the check item. Valid value:
| all |
SystemConfig | boolean | No | Specifies whether to use the configuration automatically generated by the system. Valid values:
| true |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "6EBB8614-746D-555D-AB69-C801AEC7DCE0"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoPurchase | The user did not purchase this product. | User has not purchased this product |
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-09-25 | The Error code has changed | View Change Details |
2024-08-07 | The request parameters of the API has changed | View Change Details |
2023-10-26 | The request parameters of the API has changed | View Change Details |
2023-07-28 | The request parameters of the API has changed | View Change Details |
2023-07-17 | The request parameters of the API has changed | View Change Details |
2023-06-20 | The request parameters of the API has changed | View Change Details |
2023-01-11 | API Description Update. The request parameters of the API has changed | View Change Details |