Creates a task under My Policies in the 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
Test
RAM authorization
|
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. Set the value to: Automated Batch Vulnerability Fix Policy. |
漏洞自动化批量修复策略 |
| StrategyTaskParams |
string |
Yes |
The parameter information of the policy. The value is a string in JSONArray format. The following items are included: Vulnerability configuration item. Valid values:
Snapshot configuration item. Valid values:
Notification configuration. Valid values:
|
[ { "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. Alibaba Cloud generates a unique ID for each 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 | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.