alicloud_threat_detection_assets
更新时间:
This data source provides Threat Detection Asset available to the user.What is Asset
-> NOTE: Available since v1.195.0.
Example Usage
data "alicloud_threat_detection_assets" "default" {}
output "alicloud_threat_detection_asset_example_id" {
value = data.alicloud_threat_detection_assets.default.assets.0.id
}
Argument Reference
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:- 2: Significant assets
- 1: General assets
- 0: Test asset
logical_exp
- (ForceNew, Optional) Set the logical relationship between multiple search conditions. The default value is OR. Valid values:- OR: indicates that the relationship between multiple search conditions is OR.
- AND: indicates that the relationship between multiple search conditions is AND.
machine_types
- (ForceNew, Optional) The type of asset to query. Value:- ecs: server.
- cloud_product: Cloud product.
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 runningterraform plan
).
Attributes Reference
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:id
- The UUID of the asset.create_time
- The creation time of the resourceuuid
- The UUID of the asset. Same asid
.instance_id
- The ID of the asset.instance_name
- The name of the asset.cluster_id
- The ID of the cluster.cluster_name
- The name of the cluster.vpc_instance_id
- The ID of the VPC to which the asset belongs.internet_ip
- The public IP address of the asset.intranet_ip
- The private IP address of the asset.status
- The status of the asset. Valid values:- Running: running
- notRunning: stopped
该文章对您有帮助吗?