Modifies an anti-ransomware policy.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyBackupPolicy |
The operation that you want to perform. Set the value to ModifyBackupPolicy. |
Id | Long | Yes | 11 |
The ID of the anti-ransomware policy that you want to modify. |
Name | String | Yes | policy_name_A |
The name of the anti-ransomware policy that you want to modify. |
Policy | Json | Yes | null |
The configurations of the anti-ransomware policy that you want to modify. The value is a JSON string that contains the following fields:
|
UuidList.N | RepeatList | Yes | ["3bb30859-b3b5-4f28-868f-b0892c98****", "3bb30859-b3b5-4f28-868f-b0892c98****"] |
The UUIDs of servers to which the anti-ransomware policy is applied. |
PolicyVersion | String | No | 2.0.0 |
The version of the anti-ransomware policy. You can call the DescribeBackupPolicies operation to query the versions of anti-ransomware policies.
|
PolicyRegionId | String | No | cn-hangzhou |
The region ID of the server to which the anti-ransomware policy is applied. You can call the DescribeSupportRegion operation to query the regions in which the anti-ransomware feature is supported. |
All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.
For more information about sample requests, see the "Examples" section of this topic.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | D0D6E6E4-CB8C-4897-B852-46AEFDA04B21 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyBackupPolicy
&<Common request parameters>
Sample success responses
XML
format
<ModifyBackupPolicy>
<RequestId>D0D6E6E4-CB8C-4897-B852-46AEFDA04B21</RequestId>
</ModifyBackupPolicy>
JSON
format
{
"RequestId": "D0D6E6E4-CB8C-4897-B852-46AEFDA04B21"
}
Error codes
For a list of error codes, visit the API Error Center.