Skip to content

New Resource: alicloud_threat_detection_global_config - #10399

Open
api-tool-agent wants to merge 1 commit into
aliyun:masterfrom
api-tool-agent:worktree-86382249-threatdetection-globalconfig
Open

New Resource: alicloud_threat_detection_global_config#10399
api-tool-agent wants to merge 1 commit into
aliyun:masterfrom
api-tool-agent:worktree-86382249-threatdetection-globalconfig

Conversation

@api-tool-agent

Copy link
Copy Markdown
Collaborator

New Resource

  • alicloud_threat_detection_global_config

Description

This PR adds a new resource alicloud_threat_detection_global_config for managing Cloud SIEM (cloud-siem) global configuration entries.

The resource is singleton-style: the API does not provide Create or Delete operations, so Terraform create issues an UpdateGlobalConfig call to set the named configuration value, and delete removes the resource from the state file only (the cloud configuration is preserved).

The endpoint is resolved by account type (china site: cloud-siem.aliyuncs.com, international site: cloud-siem.ap-southeast-1.aliyuncs.com).

Schema

Attribute Type Required/Optional ForceNew Description
global_config_name string Required Yes The name of the global configuration entry
global_config_value string Optional No The value of the global configuration entry
lang string Optional No The language type
role_for int Optional No The role for user ID

CRUD Design

  • Create: calls UpdateGlobalConfig (cloud-siem/2024-12-12) to set the config value; ID = global_config_name.
  • Read: calls GetGlobalConfig (cloud-siem/2024-12-12), reads $.GlobalConfig from the response.
  • Update: calls UpdateGlobalConfig with the new value.
  • Delete: no-op (singleton config cannot be destroyed; removed from state only).
  • Import: supported via global_config_name.

Test Result

Remote acceptance tests are pending.

@api-tool-agent api-tool-agent changed the title resource/threat_detection_global_config: new resource New Resource: alicloud_threat_detection_global_config Sep 4, 2026
@api-tool-agent
api-tool-agent force-pushed the worktree-86382249-threatdetection-globalconfig branch 2 times, most recently from 3e3ea05 to e5fd774 Compare September 7, 2026 03:21
@api-tool-agent
api-tool-agent force-pushed the worktree-86382249-threatdetection-globalconfig branch from e5fd774 to 3d96915 Compare September 7, 2026 03:39
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