You can call this operation to query details of the latest baseline check. The details include the time when the check is run, the number of detected risks, and the check items.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeStrategyExecDetail |
The operation that you want to perform. Set the value to DescribeStrategyExecDetail. |
StrategyId | Integer | Yes | 1 |
The ID of the baseline check policy. Note To query the results of a baseline check that uses only one policy, you must specify
the ID of the policy. You can call the DescribeStratety operation to query the policy
ID.
|
SourceIp | String | No | 1.2.3.4 |
The source IP address of the request. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
EndTime | String | 2019-01-08 20:11:20 |
The end time of the baseline check. |
FailCount | Integer | 94 |
The number of check items based on which risk were detected. |
FailedEcsList | Array |
The list of servers on which at-risk items were detected. |
|
IP | String | 1.2.3.4 |
The IP address of the instance on which the baseline check was run. |
InstanceName | String | Test-20180703 |
The name of the instance. |
IntranetIp | String | 1.2.3.5 |
The internal IP address of the asset. |
Reason | String | Detect timeout |
The reason why the baseline check failed. |
InProcessCount | Integer | 0 |
The number of baseline check tasks that are running. |
Percent | String | 100% |
The progress of the baseline check. |
RequestId | String | 09322632-4668-4AD9-BD0D-32757DEFBBA6 |
The ID of the request. |
Source | String | Manual |
The type of the baseline check.
|
StartTime | String | 2019-01-08 19:41:12 |
The start time of the baseline check. |
SuccessCount | Integer | 81 |
The number of check items that passed the baseline check. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DescribeStrategyExecDetail
&StrategyId=1
&<Common request parameters>
Sample success responses
XML
format
<DescribeStrategyExecDetail>
<RequestId>6489FA6A-D241-4380-9D8C-A8804484CA40</RequestId>
<EndTime>2019-04-10 00:58:30</EndTime>
<Percent>100%</Percent>
<FailCount>1</FailCount>
<StartTime>2019-04-10 00:19:01</StartTime>
<SuccessCount>1</SuccessCount>
<Source>Schedule</Source>
<FailedEcsList>
<InstanceName>health-check002</InstanceName>
<IP>1.2.3.4</IP>
<IntranetIp>1.2.3.5</IntranetIp>
<Reason>Agent offline</Reason>
</FailedEcsList>
<InProcessCount>0</InProcessCount>
</DescribeStrategyExecDetail>
JSON
format
{
"Source":"Schedule",
"InProcessCount":0,
"SuccessCount":1,
"RequestId":"6489FA6A-D241-4380-9D8C-A8804484CA40",
"Percent":"100%",
"FailedEcsList":[
{
"IntranetIp":"1.2.3.5",
"IP":"1.2.3.4",
"InstanceName":"health-check002",
"Reason":"Agent offline"
}
],
"EndTime":"2019-04-10 00:58:30",
"StartTime":"2019-04-10 00:19:01",
"FailCount":1
}
Error codes
For a list of error codes, visit the API Error Center.