Modifies an anti-ransomware policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ModifyBackupPolicy |
update |
*BackupPolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
The ID of the anti-ransomware policy to modify. |
11 |
| Name |
string |
Yes |
The name of the anti-ransomware policy to modify. |
policy_name_A |
| Policy |
object |
Yes |
The content of the policy to modify. The value is a JSON format character string that contains the following fields:
|
{"Source":["home","admin"]} |
| PolicyVersion |
string |
No |
The version of the policy. You can invoke the DescribeBackupPolicies operation to query the version.
|
2.0.0 |
| PolicyRegionId |
string |
No |
The region of the server for which you want to modify the policy. You can invoke the DescribeSupportRegion operation to query the regions supported by the anti-ransomware feature. |
cn-hangzhou |
| UuidList |
array |
No |
The list of UUIDs of the servers protected by the policy. |
["3bb30859-b3b5-4f28-868f-b0892c98****", "3bb30859-b3b5-4f28-868f-b0892c98****"] |
|
string |
No |
The list of UUIDs of the servers to protect. Separate multiple UUIDs with commas (,). Note
You can call the DescribeCloudCenterInstances operation to obtain the UUIDs of servers. This parameter is invalid when SelectType is set to ALL_MACHINE. |
3bb30859-b3b5-4f28-868f-b0892c98**** |
|
| ServerType |
string |
No |
The server type. Valid values:
|
ALIYUN |
| SelectType |
string |
No |
The method used to select assets. Valid values:
Note
To cover all assets of the specified type, set this parameter to ALL_MACHINE. In this case, UuidList is invalid. Only one policy that covers all assets can exist for each server type. |
ALL_MACHINE |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| 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. |
D0D6E6E4-CB8C-4897-B852-46AEFDA04B21 |
Examples
Success response
JSON format
{
"RequestId": "D0D6E6E4-CB8C-4897-B852-46AEFDA04B21"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | AgentNotOnline | The agent not online. | The error message returned because the Security Center agent is offline. Make sure that the Security Center agent is online and try again. |
| 400 | ServerTypeAllAssetPolicyExist | The policy for all asset of this server type already exists. | A policy that covers all assets already exists under the current type,do not configure it again. |
| 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.