Domain name for API request: cwp.tencentcloudapi.com.
This API is used to create or modify anti-ransomware policies.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: CreateRansomDefenseStrategy. |
Version | Yes | String | Common Params. The value used for this API: 2018-02-28. |
Region | No | String | Common Params. This parameter is not required. |
Name | Yes | String | Policy name |
Hour | Yes | String | Scheduled snapshot execution time (0-23): 01:00; 23:00. |
Id | No | Integer | Policy ID: Modify the policy when filling in the ID. Otherwise, add a new policy. |
Description | No | String | Policy Remarks |
Status | No | Integer | Whether to enable: 0 Off, 1 On. |
IsAll | No | Integer | Apply to all machines or not. 0: No; 1: Yes |
IncludeDir | No | String | Include directories, separated by semicolons (;). |
ExcludeDir | No | String | Exclude directories, separated by semicolons (;). |
BackupType | No | Integer | Backup pattern: 0 weekly, 1 daily. |
Weekday | No | String | Scheduled task execution days in a week (1-7): 1; 2; 7. |
SaveDay | No | Integer | Retention Period: 0 Permanent. |
Machines.N | No | Array of RansomDefenseStrategyMachineInfo | Bound Host List |
Parameter Name | Type | Description |
---|---|---|
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: cwp.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateRansomDefenseStrategy
<Common request parameters>
{
"Status": 1,
"ExcludeDir": "xx",
"Description": "xx",
"Hour": "xx",
"BackupType": 1,
"IncludeDir": "xx",
"Weekday": "xx",
"IsAll": 1,
"Id": 1,
"SaveDay": 1,
"Name": "xx"
}
{
"Response": {
"RequestId": "xx"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InternalError | Internal error |
ResourceNotFound | The resource does not exist. |
本页内容是否解决了您的问题?