This data source provides Threat Detection Asset available to the user.What is Asset
data "alicloud_threat_detection_assets" "default" {}
output "alicloud_threat_detection_asset_example_id" {
value = data.alicloud_threat_detection_assets.default.assets.0.id
}
The following arguments are supported:
criteria
- (ForceNew, Optional) Set the conditions for searching assets. This parameter is in JSON format. Note the case when you enter the parameter. NOTE: You can search for assets by using conditions such as the instance ID, instance name, VPC ID, region, and public IP address of the asset.importance
- (ForceNew, Optional) Set asset importance. Value:
logical_exp
- (ForceNew, Optional) Set the logical relationship between multiple search conditions. The default value is OR. Valid values:
machine_types
- (ForceNew, Optional) The type of asset to query. Value:
no_group_trace
- (Optional, ForceNew) Specifies whether to internationalize the name of the default group. Default value: falseids
- (Optional, ForceNew, Computed) A list of Asset IDs.output_file
- (Optional) File name where to save data source results (after running terraform plan
).The following attributes are exported in addition to the arguments listed above:
ids
- A list of Asset IDs.assets
- A list of Asset Entries. Each element contains the following attributes:
create_time
- The creation time of the resourceuuid
- The UUID of the instance.id
- The ID of the instance.