All Products
Search
Document Center

Security Center:DescribeStrategyDetail

Last Updated:Feb 20, 2024

Queries the information about a baseline check policy.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:DescribeStrategyDetailRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SourceIpstringNo

The source IP address of the request.

192.168.XX.XX
LangstringNo

The language of the content within the request and response. Default value: zh. Valid values:

  • zh: Chinese
  • en: English
zh
IdstringYes

The ID of the baseline check policy.

123456

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

C5B28F65-9245-5DC1-B3CF-5F2756A756A8
Strategyobject

The information about the baseline check policy.

Typeinteger

The type of the baseline check policy. Valid values:

  • 1: standard policies
  • 2: custom policies
1
CycleDaysinteger

The check interval of the policy.

3
Namestring

The name of the baseline check policy.

TestStrategy
Idinteger

The ID of the baseline check policy.

123
CycleStartTimeinteger

The time period during which the check starts. Valid values:

  • 0: 00:00 to 06:00
  • 6: 06:00 to 12:00
  • 12: 12:00 to 18:00
  • 18: 18:00 to 24:00
0
RiskTypeWhiteListQueryResultListobject []

The whitelist of risk items.

TypeNamestring

The name of the check item.

hc_exploit
Aliasstring

The alias of the check item.

Unauthorized Access
Onboolean

Indicates whether the risk item is selected. Valid values:

  • true: yes
  • false: no
false
SubTypesobject []

An array that consists of sub-risk items.

TypeNamestring

The type of the sub-check item.

hc_exploit_redis
Aliasstring

The alias of the check item.

Redis unauthorized access high exploit vulnerability risk
Onboolean

Indicates whether the sub-risk item is selected. Valid values:

  • true: yes
  • false: no
false
CheckDetailsobject []

The details about the custom check item.

CheckIdlong

The ID of the check item.

206
CheckItemstring

The check item.

Ensure password expiration period is set.
CheckDescstring

The description of the check item.

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.
Rulesobject []

An array that consists of rules.

Optionalinteger

Indicates whether the rule is included in the policy. Valid values:

  • 1: yes
  • 0: no
1
RuleDescstring

The description of the rule.

Please customize the password expiration time detection standard as
DefaultValueinteger

The default value of the rule.

2
RuleIdstring

The ID of the rule.

login_unlock_deny_pam_faillock.must.cus
ParamListobject []

An array that consists of the parameters of the rule.

ParamDefaultValuestring

The default value of the rule parameter.

7
Valuestring

The configured value of the rule parameter.

7
ParamNamestring

The name of the rule parameter.

range_val
MaxValueinteger

The maximum value of the rule parameter.

999
ParamTypeinteger

The type of the rule parameter. Valid values:

  • 1: input
  • 2: select
1
ParamDescstring

The description of the rule parameter.

The setting value is 0 means no definition, 1 means success, 2 means failure, 3 means success and failure
MinValueinteger

The minimum value of the rule parameter.

1
EnumValuestring

If the value of paramType is 2, this parameter provides the options that can be selected for paramType.

0,1,2,3
SupportedOsstring

The operating system type of the server. Valid values:

  • windows
  • linux
windows
StartTimestring

The start time of the check. Specify the time in the HH:mm:ss format.

02:00:00
EndTimestring

The end time of the check. Specify the time in the HH:mm:ss format.

03:00:00
CustomTypestring

The type of the baseline check policy that you want to query. Valid values:

  • common: standard baseline check policy
  • custom: custom baseline check policy
common
TargetTypestring

The method that is used to apply the baseline check policy. Valid values:

  • groupId: asset groups
  • uuid: assets
groupId
RiskSubTypeNamestring

The subtype of the baselines.

Note You can call the DescribeRiskType operation to query the subtypes of baselines.
hc_nginx_linux,tomcat7,hc_mysql_ali,hc_docker

Examples

Sample success responses

JSONformat

{
  "RequestId": "C5B28F65-9245-5DC1-B3CF-5F2756A756A8",
  "Strategy": {
    "Type": 1,
    "CycleDays": 3,
    "Name": "TestStrategy",
    "Id": 123,
    "CycleStartTime": 0,
    "RiskTypeWhiteListQueryResultList": [
      {
        "TypeName": "hc_exploit",
        "Alias": "Unauthorized Access",
        "On": false,
        "SubTypes": [
          {
            "TypeName": "hc_exploit_redis",
            "Alias": "Redis unauthorized access high exploit vulnerability risk",
            "On": false,
            "CheckDetails": [
              {
                "CheckId": 206,
                "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",
                    "DefaultValue": 2,
                    "RuleId": "login_unlock_deny_pam_faillock.must.cus",
                    "ParamList": [
                      {
                        "ParamDefaultValue": "7",
                        "Value": "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": "windows"
          }
        ]
      }
    ],
    "StartTime": "02:00:00",
    "EndTime": "03:00:00",
    "CustomType": "common",
    "TargetType": "groupId",
    "RiskSubTypeName": "hc_nginx_linux,tomcat7,hc_mysql_ali,hc_docker"
  }
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-12-07The response structure of the API has changedsee changesets
Change itemChange content
Output ParametersThe response structure of the API has changed.