All Products
Search
Document Center

Security Center:FixCheckWarnings

Last Updated:Oct 23, 2026

Fixes baseline check risk items.

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:FixCheckWarnings

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

SourceIp

string

No

The source IP address.

165.225.XX.XX

Lang

string

No

The language of the request and response. Valid values:

  • zh: Chinese.

  • en: English.

zh

RiskId

integer

No

The ID of the risk item.

Note

To query the check item information for a specified risk item and server, you must provide the risk item ID. You can call the DescribeCheckWarningSummary operation to obtain the ID.

10354

CheckParams

string

Yes

The parameters of the baseline check items to be fixed. Parameter description:

  • checkId: The ID of the check item.

  • rules: The fix rules. This parameter is an array.
    • value: Specifies whether the fix method is selected. Valid values: 0 (not selected) and 1 (selected).

    • ruleId: The ID of the fix method.

    • paramList: The list of fix methods. This parameter is an array.
      • paramName: The name of the fix method.
      • value: The specific value of the fix method.




[{"checkId":8,"rules":[{"ruleId":"rule.ssh_Idle.interval","value":1,"paramList":[{"paramName":"range_val","value":"600"},{"paramName":"range_val","value":"600"}]},{"ruleId":"rule.ssh_Idle.count","value":1,"paramList":[{"paramName":"range_val","value":"3"}]}]}]

Uuids

string

No

The UUIDs of the asset instances to be fixed. You can call the DescribeWarningMachines operation to obtain the UUIDs.

75a417dda5f25edb5bed8f208a9a****,c7e10fd794262a1510d5648f9e5d****

SnapshotName

string

No

The name of the snapshot created when the baseline fix operation is performed.

sas_fix_2024-12-04

RetentionDays

integer

No

The retention period of the snapshot created when the baseline fix operation is performed. Valid values: 1 to 365. Unit: days.

1

Response elements

Element

Type

Description

Example

object

BatchId

integer

The ID of the batch fix task for risk items.

52370

RequestId

string

The unique identifier generated by Alibaba Cloud for the request.

76C1D7FD-DB1E-45EA-B804-3FBD9A1DD9C0

Examples

Success response

JSON format

{
  "BatchId": 52370,
  "RequestId": "76C1D7FD-DB1E-45EA-B804-3FBD9A1DD9C0"
}

Error codes

HTTP status code

Error code

Error message

Description

400 ConsoleError The error message is %s %s.
400 HCClientOffline Client is offline. Client is offline.
400 InvalidBind Asset not bind.
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.