User creates a custom 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:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis 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:UpdateCheckItem | create | *CustomCheckItem acs:yundun-sas:{#regionId}:{#accountId}:customcheckitem/{#customcheckitemId} |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| SectionIds | array | No | Array of section IDs associated with the check item. | |
| long | No | Section ID associated with the check item. Note
You can call the ListCheckPolicies API to get this parameter.
| 1000000000001 | |
| Vendor | string | No | Cloud asset vendor. Note
You can call the ListCloudAssetSchemas API to get the available vendors.
| ALIYUN |
| InstanceType | string | No | Asset type of the cloud product. Note
You can call the ListCloudAssetSchemas API to get this parameter.
| ECS |
| InstanceSubType | string | No | Sub-asset type of the cloud product. Note
You can call the ListCloudAssetSchemas API to get this parameter.
| DISK |
| CheckShowName | string | No | Name of the custom check item. | testCheckItemName |
| RiskLevel | string | No | Risk level of the check item. Values:
| high |
| Status | string | No | Status of the check item. Values:
Note
| RELEASE |
| Remark | string | No | Remark information | remark. |
| Description | object | No | Description of the check item. | |
| Type | string | No | Type of the check item description. Values:
| text |
| Value | string | No | Description of the check item. | custom description. |
| AssistInfo | object | No | Help information for the check item. | |
| Type | string | No | Type of the help information for the check item risk. Values:
| text |
| Value | string | No | Content of the help information for the check item risk. | custom assistInfo. |
| Solution | object | No | Solution information for the check item. | |
| Type | string | No | Type of the solution information for the check item. Values:
| text |
| Value | string | No | Content of the solution for the check item risk. | custom solution. |
| CheckRule | string | No | Definition rule for the custom check item. | {"AssociatedData":{"ToDataList":[{"DataName":"ACS_ECS_Instance","PropertyPath":"InstanceId","FromPropertyPath":"InstanceId"}]},"MatchProperty":{"Operator":"AND","MatchProperties":[{"DataName":"ACS_ECS_Disk","PropertyPath":"InstanceId","MatchOperator":"EQ","MatchPropertyValue":"testId"},{"DataName":"ACS_ECS_Instance","PropertyPath":"InstanceId","MatchOperator":"EQ","MatchPropertyValue":"testInstanceId"}]}} |
| CheckId | long | Yes | ID of the custom check item to be updated. Note
You can call the ListCheckItems API to get this parameter.
| 10000000001 |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "CE500770-42D3-442E-9DDD-156E0F9F****",
"Data": {
"CheckId": 10000000001
}
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | ParamIllegal.%s | The parameter %s is invalid, please fill it in again. | Invalid parameter, please fill in again |
| 400 | CspmParamOverSize | The parameter is too long. | The parameter is too long, please fill in again. |
| 400 | NoPurchase | The user did not purchase this product. | User has not purchased this product |
| 400 | CspmCheckCustomItemSectionsError | The chapter associated with the custom check item does not exist. | The chapter associated with the custom check item does not exist. |
| 400 | CspmUpdateCheckCustomItemStatusError | Update custom check item status exception. | Update custom check item status exception, edit status is allowed to change. |
| 400 | CspmVerifyItemRuleError.%s | Audit check item check rule error: %s. | The format of the check item rule does not pass. For details, see the return error code. |
| 400 | CspmUpdateCheckCustomItemError | Failed to update custom check. | Failed to update custom check, please try again |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2025-11-13 | Add Operation | View Change Details |
