title | linkTitle | page_title | subcategory | description |
---|---|---|---|---|
powerscale_nfs_alias data source |
powerscale_nfs_alias |
powerscale_nfs_alias Data Source - terraform-provider-powerscale |
This datasource is used to query the existing NFS aliases from PowerScale array. The information fetched from this datasource can be used for getting the details or for further processing in resource block. PowerScale provides an NFS server so you can share files on your cluster |
This datasource is used to query the existing NFS aliases from PowerScale array. The information fetched from this datasource can be used for getting the details or for further processing in resource block. PowerScale provides an NFS server so you can share files on your cluster
/*
Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.
Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://mozilla.org/MPL/2.0/
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
# PowerScale provides an NFS server so you can share files on your cluster
# Returns a list of PowerScale NFS exports based on id and path filter block
data "powerscale_nfs_alias" "test" {
filter {
# Used for locally filtering id
ids = ["/test_alias_3", "/test_alias_3"]
# Used for query parameter, supported by PowerScale Platform API
# check = true
# dir = "ASC"
# limit = 10
# scope = "user"
# sort = "id"
# zone = "System"
}
}
# Output value of above block by executing 'terraform output' command
# The user can use the fetched information by the variable data.powerscale_nfs_alias.example_nfs_aliases
output "powerscale_nfs_alias" {
value = data.powerscale_nfs_export.example_nfs_aliases
}
# Returns all of the PowerScale aliases in default zone
data "powerscale_nfs_alias" "all" {
}
# Output value of above block by executing 'terraform output' command
# The user can use the fetched information by the variable data.powerscale_nfs_alias.all
output "powerscale_nfs_alias" {
value = data.powerscale_nfs_export.all
}
filter
(Block, Optional) (see below for nested schema)
id
(String) Identifiernfs_aliases
(Attributes List) List of nfs aliases (see below for nested schema)
Optional:
check
(Boolean) Check for conflicts when listing Aliases.dir
(String) The direction of the sort.ids
(Set of String) IDs to filter nfs Aliases.limit
(Number) Return no more than this many results at once (see resume).sort
(String) The field that will be used for sorting.zone
(String) Specifies which access zone to use.
Read-Only:
health
(String) Health status of NFS Alias.id
(String) ID of NFS Alias.name
(String) Name of NFS Alias.path
(String) Path of NFS Alias.zone
(String) Zone of NFS Alias.