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
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. 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:
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, 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.