alicloud_nas_mount_targets
更新时间:
This data source provides MountTargets available to the user.
-> NOTE: Available in 1.35.0+
Example Usage
data "alicloud_nas_mount_targets" "example" {
file_system_id = "1a2sc4d"
access_group_name = "tf-testAccNasConfig"
}
output "the_first_mount_target_domain" {
value = data.alicloud_nas_mount_targets.example.targets.0.id
}
Argument Reference
The following arguments are supported:
file_system_id- (Required, ForceNew) The ID of the FileSystem that owns the MountTarget.access_group_name- (Optional, ForceNew) Filter results by a specific AccessGroupName.type- (Optional, Deprecated in 1.95.0+) Fieldtypehas been deprecated from provider version 1.95.0. New fieldnetwork_typereplaces it.network_type- (Optional, ForceNew, Available 1.95.0+) Filter results by a specific NetworkType.mount_target_domain- (Optional, Deprecated in 1.53.+) Fieldmount_target_domainhas been deprecated from provider version 1.53.0. New fieldidsreplaces it.vpc_id- (Optional, ForceNew) Filter results by a specific VpcId.vswitch_id- (Optional, ForceNew) Filter results by a specific VSwitchId.ids- (Optional, ForceNew, Available 1.53.0+) A list of MountTargetDomain.status- (Optional, ForceNew, Available 1.95.0+) Filter results by the status of mount target. Valid values:Active,InactiveandPending.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 MountTargetDomain.targets- A list of MountTargetDomains. Each element contains the following attributes:id- ID of the MountTargetDomain.mount_target_domain- MountTargetDomain of the MountTarget.type- Fieldtypehas been deprecated from provider version 1.95.0. New fieldnetwork_typereplaces it.network_type- (Available 1.95.0+) NetworkType of The MountTarget.status- (Available 1.95.0+) The status of the mount target.vpc_id- VpcId of The MountTarget.vswitch_id- VSwitchId of The MountTarget.access_group_name- AccessGroup of The MountTarget.
该文章对您有帮助吗?