All Products
Search
Document Center

Security Center:ChangeCheckConfig

Last Updated:Feb 20, 2024

Modifies the configuration items of the configuration assessment feature.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:ChangeCheckConfigWrite
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

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
CycleDaysarrayNo

The days in a week on which a check is performed.

integerNo

The day in a week on which a check is performed. Valid values: 1 to 7.

3
StartTimeintegerNo

The start time of the check. The value specifies a point in time in a day.

0
EndTimeintegerNo

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:

  • 00:00 to 06:00: If you set the StartTime parameter to 0, you must set the EndTime parameter to 6.
  • 06:00 to 12:00: If you set the StartTime parameter to 6, you must set the EndTime parameter to 12.
  • 12:00 to 18:00: If you set the StartTime parameter to 12, you must set the EndTime parameter to 18.
  • 18:00 to 24:00: If you set the StartTime parameter to 18, you must set the EndTime parameter to 24.
6
StandardIdsarrayNo

An array that consists of the information about the check item.

longNo

The ID of the check item. Valid values:

  • 2: configuration assessment management
  • 4: compliance
  • 5: identity and permission management
2
ConfigRequirementIdsobjectNo

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.
AddIdsarrayNo

The requirement IDs that you want to add to the policy.

longNo

The requirement ID that you want to add to the policy.

6
RemoveIdsarrayNo

The requirement IDs that you want to remove from the policy.

longNo

The requirement ID that you want to remove from the policy.

5
ConfigStandardIdsobjectNo

The standard IDs that you want to specify for the check policy.

Note You can call the ListCheckResult operation to obtain the standard ID.
AddIdsarrayNo

The standard IDs that you want to add to the policy.

longNo

The standard ID that you want to add to the policy.

2
RemoveIdsarrayNo

The standard IDs that you want to remove from the policy.

longNo

The standard ID that you want to remove from the policy.

5
EnableAutoCheckbooleanNo

Specifies whether to enable the automatic periodical check feature. Valid values:

  • true
  • false
true
EnableAddCheckbooleanNo

Specifies whether to check the new check items in the selected requirement item. Valid values:

  • true
  • false
false
AddedCheckobject []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.
CheckIdlongNo

The ID of the check item.

Note You can call the ListCheckResult operation to obtain the ID of the check item.
5
SectionIdlongNo

The section ID of the check item.

69
RemovedCheckobject []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.
CheckIdlongNo

The ID of the check item.

Note You can call the ListCheckResult operation to obtain the ID of the check item.
19
SectionIdlongNo

The section ID of the check item.

69
VendorsarrayNo

The service provider (SP) of the cloud asset.

stringNo

The service provider (SP) of the cloud asset. Valid values:

  • ALIYUN
  • TENCENT
  • AWS
ALIYUN
ConfigurestringNo

The configuration of the check item. Valid values:

  • all
all

Response parameters

ParameterTypeDescriptionExample
object

The object returned.

RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

6EBB8614-746D-555D-AB69-C801AEC7DCE0

Examples

Sample success responses

JSONformat

{
  "RequestId": "6EBB8614-746D-555D-AB69-C801AEC7DCE0"
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-10-26The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: Vendors
    Added Input Parameters: Configure
2023-07-28The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: ConfigRequirementIds
    Added Input Parameters: ConfigStandardIds
2023-07-17The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: EnableAutoCheck
    Added Input Parameters: EnableAddCheck
    Added Input Parameters: AddedCheck
    Added Input Parameters: RemovedCheck
2023-06-20The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: CycleDays
2023-01-11API Description Update. The request parameters of the API has changedsee changesets
Change itemChange content
API DescriptionAPI Description Update.
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: RegionId
    delete Input Parameters: CycleDays