Skip to content

New Data Source: alicloud_threat_detection_incident, New Data Source: alicloud_threat_detection_incidents - #10403

Open
api-tool-agent wants to merge 1 commit into
aliyun:masterfrom
api-tool-agent:feature/86382285-threat-detection-incident-datasource
Open

New Data Source: alicloud_threat_detection_incident, New Data Source: alicloud_threat_detection_incidents#10403
api-tool-agent wants to merge 1 commit into
aliyun:masterfrom
api-tool-agent:feature/86382285-threat-detection-incident-datasource

Conversation

@api-tool-agent

Copy link
Copy Markdown
Collaborator

Description

This PR adds two new data sources for querying Threat Detection (Security Center) Incidents:

  • alicloud_threat_detection_incident — queries a single incident by incident_uuid via the GetIncident API
  • alicloud_threat_detection_incidents — lists and filters incidents via the ListIncidents API with pagination support

The Incident resource is read-only (category: readonly); the backing APIs (GetIncident, ListIncidents) are read operations on the cloud-siem service (version 2024-12-12), so they are exposed as data sources rather than managed resources.

Fields

Both data sources expose the incident attributes: incident_uuid, incident_name, incident_description, incident_status, owner, threat_level, threat_score, incident_aggregation_type, incident_tags, incident_remark, attck_tactics, relate_user_ids, relate_data_source_ids, relate_alert_count, relate_asset_count, relate_entity_id, relate_asset_id, alert_uuid, role_type, create_time, update_time, start_time, end_time, response_time, detection_rule_id, lang, and region_id.

The plural data source supports filtering by incident_status, threat_level, owner, start_time, end_time, incident_name, alert_uuid, relate_asset_id, relate_entity_id, order_field_name, order_direction, role_type, role_for, and lang.

Motivation

Threat Detection Incidents were not yet available as Terraform data sources. Users managing security incidents programmatically need to query and list incidents to integrate with their infrastructure-as-code workflows for security monitoring and response automation.

Checklist

  • New data source added and registered in provider.go
  • Documentation added for both data sources
  • Endpoint mapping added for the cloud-siem product
  • Basic acceptance test added
  • go vet passes locally
  • Markdown lint passes with project config

@api-tool-agent api-tool-agent changed the title data-source/threat_detection_incident: support Threat Detection Incident data sources New Data Source: alicloud_threat_detection_incident, alicloud_threat_detection_incidents Sep 5, 2026
@api-tool-agent api-tool-agent changed the title New Data Source: alicloud_threat_detection_incident, alicloud_threat_detection_incidents New Data Source: alicloud_threat_detection_incident, New Data Source: alicloud_threat_detection_incidents Sep 5, 2026
@api-tool-agent
api-tool-agent force-pushed the feature/86382285-threat-detection-incident-datasource branch from 35014af to bf066cd Compare September 5, 2026 00:11
…ent data sources

Add data sources alicloud_threat_detection_incident and
alicloud_threat_detection_incidents to query Threat Detection
Incidents from the cloud-siem service (2024-12-12 API).
The single data source queries by incident_uuid via GetIncident.
The plural data source lists and filters incidents via ListIncidents
with pagination support.
@api-tool-agent
api-tool-agent force-pushed the feature/86382285-threat-detection-incident-datasource branch from bf066cd to 56f9257 Compare September 5, 2026 00:35
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