List custom check items for situational awareness
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:ListCheckItems | get | *CustomCheckItem acs:yundun-sas:{#regionId}:{#accountId}:customcheckitem/{#CheckId} |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| CheckId | long | No | The ID of the check item. | 100000000001 |
| CheckShowName | string | No | The name of the custom check item. | testCheckItemName |
| CheckTypes | array | No | The source type of the situational awareness check item. | |
| string | No | The type of the check item (identifies whether the policy is a system check item or a user check item):
| SYSTEM | |
| Lang | string | No | The language type for requests and responses. The default value is zh. Values:
| zh |
| Statuses | array | No | The status of the check item. | |
| string | No | The status of the check item. Values:
| RELEASE | |
| PageSize | integer | No | Specifies the maximum number of data entries to display per page when performing a paginated query. The default number of data entries displayed per page is 20, and if the PageSize parameter is empty, it will default to returning 20 data entries. Note
It is recommended that the PageSize value is not left empty.
| 20 |
| CurrentPage | integer | No | Specifies the page number to display when performing a paginated query. The starting value is 1, and the default value is 1. | 1 |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "7BC55C8F-226E-5AF5-9A2C-2EC43864****",
"CheckItems": [
{
"CheckId": 100000000001,
"CheckShowName": "testCheckItemName",
"Vendor": "ALIYUN",
"InstanceType": "ECS",
"InstanceSubType": "DISK",
"RiskLevel": "HIGH",
"Status": "EDIT",
"CheckPolicies": [
{
"StandardId": 10000000001,
"StandardShowName": "testStandardShowName",
"RequirementId": 10000000001,
"RequirementShowName": "testRequirementShowName",
"SectionId": 10000000001,
"SectionShowName": "testSectionShowName",
"Type": "AISPM"
}
],
"Description": {
"Type": "text",
"Value": "custom description."
},
"Solution": {
"Type": "text",
"Value": "test solution."
},
"AssistInfo": {
"Type": "text",
"Value": "test assistInfo."
},
"CheckRule": {
"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"
}
]
}
},
"CheckType": "SYSTEM",
"Remark": "remark."
}
],
"PageInfo": {
"TotalCount": 100,
"Count": 20,
"CurrentPage": 1,
"PageSize": 20
}
}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 |
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 |
