Activates and enables web tamper proofing for a specific server.
Before you call this operation, make sure that your account has sufficient quota on the servers that web tamper proofing protects. If a server is protected by web tamper proofing, the number of servers that are allowed is deducted by one after the operation is successful.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyWebLockStart |
The operation that you want to perform. Set the value to ModifyWebLockStart. |
Mode | String | No | whitelist |
The protection mode. Valid values:
|
LocalBackupDir | String | No | /usr/local/backup |
The local path where backup files of the protected directory are stored. The directory format of a Linux operating system is different from that of a Windows operating system. Enter the directory in the required format based on your operating system. Directory formats of Windows and Linux operating systems:
|
ExclusiveFile | String | No | /home/admin/tomcat/localhost.log |
The file for which you want to disable web tamper proofing. Note If Mode is set to blacklist, you must set this parameter.
|
Dir | String | No | /home/admin/tomcat |
The directory for which you want to enable web tamper proofing. Separate multiple directories with commas (,). |
InclusiveFileType | String | No | html |
The type of file for which you want to enable web tamper proofing. Separate multiple types with semicolons (;). Valid values:
Note If Mode is set to whitelist, you must set this parameter.
|
Uuid | String | No | 80d2f7d6-31a9-4d7f-8ff4-7ecc42f89ca**** |
The UUID of the server for which you want to enable web tamper proofing. |
ExclusiveFileType | String | No | jpg |
The type of file for which you want to disable web tamper proofing. Separate multiple types with semicolons (;). Valid values:
Note If Mode is set to blacklist, you must set this parameter.
|
ExclusiveDir | String | No | /home/admin/java |
The directory for which you want to disable web tamper proofing. Note If Mode is set to blacklist, you must set this parameter.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | D9354C1A-D709-4873-9AAE-41513327B247 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyWebLockStart
&Mode=whitelist
&LocalBackupDir=/usr/local/backup
&Dir=/home/admin/tomcat
&Uuid=80d2f7d6-31a9-4d7f-8ff4-7ecc42f89ca****
&InclusiveFileType=*.html
&<Common request parameters>
Sample success responses
XML
format
<ModifyWebLockStartResponse>
<requestId>D9354C1A-D709-4873-9AAE-41513327B247</requestId>
</ModifyWebLockStartResponse>
JSON
format
{
"requestId": "D9354C1A-D709-4873-9AAE-41513327B247"
}
Error codes
For a list of error codes, visit the API Error Center.