Queries baseline check policy details.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeStrategy |
get |
*BaselineStrategy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the request. |
1.2.X.X |
| Lang |
string |
No |
The language of the request and response content. Default value: zh. Valid values:
|
zh |
| StrategyIds |
string |
No |
The ID of the baseline check policy. Separate multiple IDs with commas (,). |
8164248 |
| CustomType |
string |
No |
The type of the baseline check policy. Valid values:
|
custom |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
75C127E6-76CD-59A7-B6E4-1CBBDC98F2EB |
| Strategies |
array<object> |
The details of the baseline check policies. |
|
|
array<object> |
The details of the baseline check policy. |
||
| Type |
integer |
The source type of the baseline check policy. Valid values:
|
2 |
| ExecStatus |
integer |
The status of the baseline check policy. Valid values:
|
1 |
| PassRate |
integer |
The proportion of risky baselines in the check result. |
0 |
| CycleStartTime |
integer |
The time when the baseline check starts. Valid values:
|
0 |
| CustomType |
string |
The type of the baseline check policy. Valid values:
|
custom |
| EcsCount |
integer |
The number of assets to which the baseline check policy is applied. |
50 |
| ProcessRate |
integer |
The number of assets on which the baseline check is complete. |
20 |
| CycleDays |
integer |
The cycle of the baseline check. Valid values:
|
1 |
| RiskCount |
integer |
The number of baseline check items in the baseline check policy. |
23 |
| Name |
string |
The name of the baseline check policy. |
text2 |
| Id |
integer |
The ID of the baseline check policy. |
8164248 |
| ConfigTargets |
array<object> |
The details of the assets to which the baseline check policy is applied. |
|
|
object |
The asset to which the baseline check policy is applied. |
||
| Flag |
string |
Whether the baseline check policy is applied to the asset group. Valid values:
|
add |
| Target |
string |
The asset group ID or UUID of the asset to which the baseline check policy is applied. |
10099713 |
| TargetType |
string |
The type of target to which the baseline check policy is applied. Valid values:
|
groupId |
| StartTime |
string |
The start time of the baseline check policy. |
00:00:00 |
| EndTime |
string |
The end time of the baseline check policy. |
03:00:00 |
| Percent |
string |
The baseline check progress. Returned only when ExecStatus is 2. |
50% |
| UserModifyTime |
integer |
The time when the baseline check policy was last modified. |
2025-01-07 10:46:43 |
| ExecutionType |
string |
The trigger method for baseline scanning. Valid values:
|
Manual |
Examples
Success response
JSON format
{
"RequestId": "75C127E6-76CD-59A7-B6E4-1CBBDC98F2EB",
"Strategies": [
{
"Type": 2,
"ExecStatus": 1,
"PassRate": 0,
"CycleStartTime": 0,
"CustomType": "custom",
"EcsCount": 50,
"ProcessRate": 20,
"CycleDays": 1,
"RiskCount": 23,
"Name": "text2",
"Id": 8164248,
"ConfigTargets": [
{
"Flag": "add",
"Target": "10099713",
"TargetType": "groupId"
}
],
"StartTime": "00:00:00",
"EndTime": "03:00:00",
"Percent": "50%",
"UserModifyTime": 0,
"ExecutionType": "Manual"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ConsoleError | The error message is %s %s. | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.