Queries information about specified risk items and the check items of a specified server.
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SourceIp | string | No | The source IP address of the request. | 1.2.XX.XX |
Lang | string | No | The language of the content within the request and response. Default value: zh. Valid values:
| zh |
Uuid | string | Yes | The UUID of the server on which the baseline check is performed. NoteTo query specified risk items and the check items of a specified server, you must provide the ID of the server on which the baseline check is performed. You can call the DescribeWarningMachines operation to query the IDs of servers. | d42f938c-d962-48a0-90f9-05**** |
RiskId | long | Yes | The ID of the baseline risk item. NoteTo query specified baseline risk items and the check items of a specified server, you must provide the IDs of the baseline risk items. You can call the DescribeCheckWarningSummary operation to query the IDs. | 10354 |
PageSize | integer | No | The number of entries to return on each page. Default value: 20. | 20 |
CurrentPage | integer | No | The number of the page to return. Default value: 1. | 1 |
CheckId | long | No | The ID of the check item. | 2546 |
CheckType | string | No | The type of the check item. Valid values:
| hc.check.type.attack_defense |
RiskStatus | integer | No | The status of the check item. Valid values:
| 1 |
Response parameters
Example
Normal return example
JSON
Format
{
"CurrentPage": 1,
"PageSize": 20,
"RequestId": "0DFCADBA-7065-42DA-AF17-6868B9C2A8CF",
"TotalCount": 100,
"Count": 10,
"CheckWarnings": [
{
"Status": 1,
"CheckWarningId": 212251441,
"Type": "hc.check.type.identity_auth",
"Uuid": "d42f938c-d962-48a0-90f9-****",
"Item": "passwordExpire",
"CheckId": 2546,
"Level": "high",
"Reason": "ignore",
"FixStatus": 0,
"ExecErrorMessage": "ScriptKilledOfCpuHigh"
}
]
}
Error codes
Http code | Error code | Error message | Description |
---|---|---|---|
400 | UnknownError | UnknownError | - |
400 | ConsoleError | The error message is %s %s. | - |
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 API error center.