All Products
Search
Document Center

Security Center:ModifyStrategy

Last Updated:Sep 18, 2026

Modifies a baseline check policy.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-sas:ModifyStrategy

update

*BaselineStrategy

acs:yundun-sas:{#regionId}:{#accountId}:baselinestrategy/{#BaselineStrategyId}

None None

Request parameters

Parameter

Type

Required

Description

Example

SourceIp

string

No

The source IP address of the request.

192.168.X.X

CycleDays

string

Yes

The cycle of the baseline check. Valid values:

  • 1: Every 1 day.

  • 3: Every 3 days.

  • 7: Every 7 days.

  • 30: Every 30 days.

1

Name

string

Yes

The name of the baseline check policy.

testStrategy

CycleStartTime

string

No

The start time of the baseline check. Valid values:

  • 0: The baseline check starts between 00:00 and 06:00.

  • 6: The baseline check starts between 06:00 and 12:00.

  • 12: The baseline check starts between 12:00 and 18:00.

  • 18: The baseline check starts between 18:00 and 24:00.

Note

This parameter is deprecated.

The value indicates the start hour of the daily check period, in hours.

18

RiskSubTypeName

string

Yes

The subtype of the check item. You can call the DescribeRiskType operation to obtain the subtype.

hc_exploit_redis

Id

string

No

The ID of the baseline check policy.

245

RiskCustomParams

string

No

The custom configuration of baseline check items. The value is in JSON format and contains the following parameters:

  • typeName: The baseline name.

  • checkDetails: The check details. The value is in JSON format.

    • checkId: The ID of the check item.

    • rules: The policy configuration. The value is in JSON format.

      • ruleId: The ID of the policy configuration.

      • paramList: The collection of policy parameter settings. The value is in JSON format.

        • paramName: The parameter name.

        • value: The parameter settings value.

[{"typeName":"hc_centos_6_custom","checkDetails":[{"checkId":4,"rules":[{"ruleId":"pass_min_days_login_defs.must.cus","paramList":[{"paramName":"range_val","value":"7"}]}]}]}]

CustomType

string

Yes

The policy type. Valid values:

  • custom: custom policy.

  • common: standard policy.

common

TargetType

string

Yes

The scan method of the policy. Valid values:

  • groupId: group-based scan.

  • uuid: asset-based scan.

groupId

StartTime

string

Yes

The start time of the policy execution. Format: hh:mm:ss.

00:01:00

EndTime

string

Yes

The end time of the policy execution. Format: hh:mm:ss.

05:00:00

Response elements

Element

Type

Description

Example

object

The response for modifying a baseline check policy.

HttpStatusCode

integer

The HTTP status code.

200

RequestId

string

The request ID. Alibaba Cloud generates a unique ID for each request. You can use the ID to troubleshoot issues.

8EFA2BD9-00CD-5D69-B6B0-4EE83EAF072E

Success

boolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.

  • false: The request failed.

true

Result

object

The response result.

StrategyId

integer

The policy ID.

8164239

Examples

Success response

JSON format

{
  "HttpStatusCode": 200,
  "RequestId": "8EFA2BD9-00CD-5D69-B6B0-4EE83EAF072E",
  "Success": true,
  "Result": {
    "StrategyId": 8164239
  }
}

Error codes

HTTP status code

Error code

Error message

Description

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.