Queries the image baseline policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeImageBaselineStrategy |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StrategyId |
integer |
No |
The ID of the baseline check policy. |
8037 |
| Lang |
string |
No |
The language of the request and response. Valid values:
|
zh |
| Source |
string |
No |
The data source. If this parameter is left empty, the image baseline policy is queried by default. Valid values:
|
agentless |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
9F85AC10-A1FE-54D7-935A-F28D5256**** |
| Strategy |
object |
The baseline check policy information. |
|
| Type |
string |
The type of the baseline check policy. Valid values:
|
default |
| StrategyName |
string |
The Policy Name. |
default |
| StrategyId |
integer |
The ID of the baseline check policy. |
8257 |
| SelectedItemCount |
integer |
The number of selected baseline check items. |
10 |
| TotalItemCount |
integer |
The total number of baseline check items. |
100 |
| BaselineItemList |
array<object> |
The list of baseline items. |
|
|
object |
The list of baseline items. |
||
| NameKey |
string |
The name key of the parent baseline item. |
identification |
| ItemKey |
string |
The key of the baseline item. |
duplicate_pwd_hash |
| ClassKey |
string |
The classification key of the parent baseline item. |
identification |
| BaselineItem |
string |
The agentless baseline check policy. |
hc_win2008_cis_rules |
| ImageVulClean |
integer |
The retention period of baseline risks. Unit: days. |
90 |
Examples
Success response
JSON format
{
"RequestId": "9F85AC10-A1FE-54D7-935A-F28D5256****",
"Strategy": {
"Type": "default",
"StrategyName": "default",
"StrategyId": 8257,
"SelectedItemCount": 10,
"TotalItemCount": 100,
"BaselineItemList": [
{
"NameKey": "identification",
"ItemKey": "duplicate_pwd_hash",
"ClassKey": "identification"
}
],
"BaselineItem": "hc_win2008_cis_rules",
"ImageVulClean": 90
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.