Queries the baseline check types and subtypes in Security Center.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeRiskType |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the request. |
192.168.X.X |
| Lang |
string |
No |
The language of the request and response. Default value: zh. Valid values:
|
zh |
| Source |
string |
No |
The data source. Valid values:
|
agentless |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
F22037B5-FCE4-5178-A9E7-71798E1F9270 |
| RiskTypes |
array<object> |
The baseline types. |
|
|
array<object> |
The information about the baseline type. |
||
| TypeName |
string |
The name of the baseline type. |
hc_exploit |
| Alias |
string |
The alias of the baseline type. |
Redis unauthorized access high exploit vulnerability risk |
| SubTypes |
array<object> |
The baseline subtypes. |
|
|
array<object> |
|||
| TypeName |
string |
The name of the baseline subtype. |
hc_exploit_redis |
| Alias |
string |
The alias of the baseline subtype. |
Redis unauthorized access high exploit vulnerability risk |
| CheckDetails |
array<object> |
The check details of the baseline subtype. |
|
|
array<object> |
|||
| CheckId |
integer |
The ID of the baseline. |
1299 |
| CheckItem |
string |
The baseline. |
Ensure password expiration period is set. |
| CheckDesc |
string |
The description of the baseline. |
Set password expiration time, force regular modification of password, reduce password leakage and guess risk.Use non-password login (e.g. key pair) please ignore this item. |
| Rules |
array<object> |
The rules of the baseline check item. |
|
|
array<object> |
|||
| Optional |
integer |
Specifies whether the baseline can be edited. Valid values:
|
1 |
| RuleDesc |
string |
The rule description. |
Please customize the password expiration time detection standard as |
| RuleId |
string |
The rule ID. |
audit.audit_policy.auditpolicychange.cus |
| ParamList |
array<object> |
The parameters of the rule. |
|
|
object |
|||
| ParamDefaultValue |
string |
The default value of the parameter. |
7 |
| ParamName |
string |
The name of the parameter. |
range_val |
| MaxValue |
integer |
The maximum value of the parameter. |
999 |
| ParamType |
integer |
The configuration type of the parameter. Valid values:
|
1 |
| ParamDesc |
string |
The description of the parameter. |
The setting value is 0 means no definition, 1 means success, 2 means failure, 3 means success and failure |
| MinValue |
integer |
The minimum value of the parameter. |
1 |
| EnumValue |
string |
The selectable values when ParamType is 2. This parameter is empty when ParamType is 1. |
0,1,2,3 |
| SupportedOs |
string |
The operating system type of the server. Valid values:
|
linux |
| AuthFlag |
boolean |
Specifies whether the current user version has access to this baseline subtype. Valid values:
|
true |
| AuthFlag |
boolean |
Specifies whether the current user version has access to this baseline type. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "F22037B5-FCE4-5178-A9E7-71798E1F9270",
"RiskTypes": [
{
"TypeName": "hc_exploit",
"Alias": "Redis unauthorized access high exploit vulnerability risk",
"SubTypes": [
{
"TypeName": "hc_exploit_redis",
"Alias": "Redis unauthorized access high exploit vulnerability risk",
"CheckDetails": [
{
"CheckId": 1299,
"CheckItem": "Ensure password expiration period is set.",
"CheckDesc": "Set password expiration time, force regular modification of password, reduce password leakage and guess risk.Use non-password login (e.g. key pair) please ignore this item.",
"Rules": [
{
"Optional": 1,
"RuleDesc": "Please customize the password expiration time detection standard as",
"RuleId": "audit.audit_policy.auditpolicychange.cus",
"ParamList": [
{
"ParamDefaultValue": "7",
"ParamName": "range_val",
"MaxValue": 999,
"ParamType": 1,
"ParamDesc": "The setting value is 0 means no definition, 1 means success, 2 means failure, 3 means success and failure",
"MinValue": 1,
"EnumValue": "0,1,2,3"
}
]
}
]
}
],
"SupportedOs": "linux",
"AuthFlag": true
}
],
"AuthFlag": true
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | -101 | %s %s | |
| 500 | -100 | The service is unavailable, please try again later. | Service exception, please try again later. |
| 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.