This resource can be useful for getting back a set of FSx ONTAP Storage Virtual Machine (SVM) IDs.
The following shows outputting all SVM IDs for a given FSx ONTAP File System.
data "aws_fsx_ontap_storage_virtual_machines" "example" {
filter {
name = "file-system-id"
values = ["fs-12345678"]
}
}
filter
- (Optional) Configuration block. Detailed below.This block allows for complex filters.
The following arguments are required:
name
- (Required) Name of the field to filter by, as defined by the underlying AWS API.values
- (Required) Set of values that are accepted for the given field. An SVM will be selected if any one of the given values matches.ids
- List of all SVM IDs found.