All Products
Search
Document Center

Security Center:CreateSoarStrategyTask

Last Updated:Jun 15, 2026

Creates a task under My Policies in Task Center.

Operation description

Only the Enterprise and Ultimate editions of Security Center support this API operation. Other editions do not support this operation.

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

create

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

StrategyId

integer

Yes

The policy ID.

Note

Call the DescribeSoarSubscribedStrategy operation to obtain this parameter.

13840

StrategyTaskName

string

Yes

The name of the policy task.

task1

StrategyName

string

Yes

The policy name. Fixed value: Automated Batch Vulnerability Fix Policy.

Automated Batch Vulnerability Fixing Policy for Multiple Servers

StrategyTaskParams

string

Yes

The parameter information of the policy. A string in JSONArray format with the following items:

Vulnerability configuration item. Valid values:

  • name: vluList

  • associationProperty: sasAllVul

  • value: basic information about the vulnerability

Snapshot configuration item. Valid values:

  • name: snapshotConfig

  • associationProperty: snapshotConfig

  • value: storage time information

Notification configuration. Valid values:

  • name: notifyConfig

  • associationProperty: notifyConfig

  • value: email or DingTalk configuration information.

[ { "name": "vulList", "associationProperty": "sasAllVul", "value": [ { "regionId": "cn-hangzhou", "instanceId": "i-bp10i******68lo5e", "instanceName": "instance****", "vulId": 3974347681, "vulName": "centos:7:cesa-2024:1249", "vulAliasName": "CESA-2024:1249", "vulTag": "oval", "vulUuid": "3c5eb76a-******-85ef-67562cdc2344", "vulType": "cve", "vulModifyTs": 1721324258000 } ] }, { "name": "snapshotConfig", "associationProperty": "snapshotConfig", "value": { "ttl": 1 } }, { "name": "notifyConfig", "associationProperty": "notifyConfig", "value": { "ding": [ { "value": 2195, "label": "test" } ] } } ]

StrategyTaskPlanExeTime

integer

No

The planned execution timestamp of the policy task. Unit: milliseconds.

1586739841000

Response elements

Element

Type

Description

Example

object

The response parameters.

StrategyTaskId

integer

The policy task ID.

10688

RequestId

string

The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues.

43313389-DED8-5BB7-8CB9-F22CDEB744DE

Examples

Success response

JSON format

{
  "StrategyTaskId": 10688,
  "RequestId": "43313389-DED8-5BB7-8CB9-F22CDEB744DE"
}

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.