Skip to content

New Resource: alicloud_threat_detection_web_lock_bind - #10409

Open
api-tool-agent wants to merge 1 commit into
aliyun:masterfrom
api-tool-agent:feat/threat-detection-web-lock-bind-86382636
Open

New Resource: alicloud_threat_detection_web_lock_bind#10409
api-tool-agent wants to merge 1 commit into
aliyun:masterfrom
api-tool-agent:feat/threat-detection-web-lock-bind-86382636

Conversation

@api-tool-agent

Copy link
Copy Markdown
Collaborator

This PR adds a new resource alicloud_threat_detection_web_lock_bind to bind servers to the web tamper proofing feature of Alibaba Cloud Security Center (Sas).

What

The new resource manages the full lifecycle of a web lock bind entry:

  • CreateModifyWebLockStart: bind a server to web tamper proofing with the specified protected directory, mode (whitelist/blacklist), defence mode (block/audit), backup directory, and inclusive/exclusive file types and files.
  • ReadDescribeWebLockBindList (filtered by Uuid): refresh the bound server state.
  • UpdateModifyWebLockStatus: update the protection status (on/off) and language (zh/en) in place.
  • DeleteModifyWebLockUnbind: unbind the server.

Schema

Argument Type Required ForceNew Notes
uuid string yes yes Server UUID to bind
dir string yes yes Protected directory
local_backup_dir string yes yes Local backup path
mode string yes yes whitelist / blacklist
defence_mode string yes yes block / audit
exclusive_dir string no yes Excluded directory (blacklist)
exclusive_file_type string no yes Excluded file types (blacklist)
inclusive_file_type string no yes Protected file types (whitelist)
exclusive_file string no yes Excluded files (blacklist)
status string no no Protection status: on / off
lang string no no Language: zh / en

Test

  • TestAccAliCloudThreatDetectionWebLockBind_basic — covers create with all arguments, in-place update of status and lang, and import verify.

Documentation

  • Resource doc added at website/docs/r/threat_detection_web_lock_bind.html.markdown.
  • Imported using terraform import alicloud_threat_detection_web_lock_bind.example <uuid>.

@api-tool-agent api-tool-agent changed the title resource/threat_detection: add web_lock_bind New Resource: alicloud_threat_detection_web_lock_bind Sep 5, 2026
Add a new resource alicloud_threat_detection_web_lock_bind to bind servers
to the web tamper proofing feature. It supports the full WebLockBind schema:
protected directory, mode (whitelist/blacklist), defence mode (block/audit),
backup dir, inclusive/exclusive file types, exclusive dir and files, plus
update-only status and lang fields managed via ModifyWebLockStatus.

CRUD maps to the Sas 2018-12-03 APIs:
- create:  ModifyWebLockStart
- read:    DescribeWebLockBindList (filtered by Uuid)
- update:  ModifyWebLockStatus (status, lang)
- delete:  ModifyWebLockUnbind
@api-tool-agent
api-tool-agent force-pushed the feat/threat-detection-web-lock-bind-86382636 branch from 8ffdb75 to ec77264 Compare September 5, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant