powerstore.NfsExport
Explore with Pulumi AI
Import
#Copyright (c) 2025 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.
Below are the steps to import nfs export :
Step 1 - To import a nfs export , we need the id of that nfs export
Step 2 - To check the id of the nfs export we can make use of nfs export datasource to read required/all nfs export ids. Alternatively, we can make GET request to nfs export endpoint. eg. https://10.0.0.1/api/rest/nfs_export which will return list of all nfs export ids.
Step 3 - Add empty resource block in tf file.
eg.
resource “powerstore_nfs_export” “resource_block_name” {
(resource arguments)
}
$ pulumi import powerstore:index/nfsExport:NfsExport Step 4 - Execute the command: "powerstore_nfs_export.resource_block_name" "id_of_the_nfs_export" (resource_block_name must be taken from step 3 and id must be taken from step 2)
Step 5 - After successful execution of the command , check the state file
Create NfsExport Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NfsExport(name: string, args: NfsExportArgs, opts?: CustomResourceOptions);
@overload
def NfsExport(resource_name: str,
args: NfsExportArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NfsExport(resource_name: str,
opts: Optional[ResourceOptions] = None,
file_system_id: Optional[str] = None,
path: Optional[str] = None,
min_security: Optional[str] = None,
description: Optional[str] = None,
default_access: Optional[str] = None,
is_no_suid: Optional[bool] = None,
anonymous_gid: Optional[float] = None,
name: Optional[str] = None,
nfs_owner_username: Optional[str] = None,
no_access_hosts: Optional[Sequence[str]] = None,
anonymous_uid: Optional[float] = None,
read_only_hosts: Optional[Sequence[str]] = None,
read_only_root_hosts: Optional[Sequence[str]] = None,
read_write_hosts: Optional[Sequence[str]] = None,
read_write_root_hosts: Optional[Sequence[str]] = None)
func NewNfsExport(ctx *Context, name string, args NfsExportArgs, opts ...ResourceOption) (*NfsExport, error)
public NfsExport(string name, NfsExportArgs args, CustomResourceOptions? opts = null)
public NfsExport(String name, NfsExportArgs args)
public NfsExport(String name, NfsExportArgs args, CustomResourceOptions options)
type: powerstore:NfsExport
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NfsExportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NfsExportArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NfsExportArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NfsExportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NfsExportArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var nfsExportResource = new Powerstore.NfsExport("nfsExportResource", new()
{
FileSystemId = "string",
Path = "string",
MinSecurity = "string",
Description = "string",
DefaultAccess = "string",
IsNoSuid = false,
AnonymousGid = 0,
Name = "string",
NfsOwnerUsername = "string",
NoAccessHosts = new[]
{
"string",
},
AnonymousUid = 0,
ReadOnlyHosts = new[]
{
"string",
},
ReadOnlyRootHosts = new[]
{
"string",
},
ReadWriteHosts = new[]
{
"string",
},
ReadWriteRootHosts = new[]
{
"string",
},
});
example, err := powerstore.NewNfsExport(ctx, "nfsExportResource", &powerstore.NfsExportArgs{
FileSystemId: pulumi.String("string"),
Path: pulumi.String("string"),
MinSecurity: pulumi.String("string"),
Description: pulumi.String("string"),
DefaultAccess: pulumi.String("string"),
IsNoSuid: pulumi.Bool(false),
AnonymousGid: pulumi.Float64(0),
Name: pulumi.String("string"),
NfsOwnerUsername: pulumi.String("string"),
NoAccessHosts: pulumi.StringArray{
pulumi.String("string"),
},
AnonymousUid: pulumi.Float64(0),
ReadOnlyHosts: pulumi.StringArray{
pulumi.String("string"),
},
ReadOnlyRootHosts: pulumi.StringArray{
pulumi.String("string"),
},
ReadWriteHosts: pulumi.StringArray{
pulumi.String("string"),
},
ReadWriteRootHosts: pulumi.StringArray{
pulumi.String("string"),
},
})
var nfsExportResource = new NfsExport("nfsExportResource", NfsExportArgs.builder()
.fileSystemId("string")
.path("string")
.minSecurity("string")
.description("string")
.defaultAccess("string")
.isNoSuid(false)
.anonymousGid(0)
.name("string")
.nfsOwnerUsername("string")
.noAccessHosts("string")
.anonymousUid(0)
.readOnlyHosts("string")
.readOnlyRootHosts("string")
.readWriteHosts("string")
.readWriteRootHosts("string")
.build());
nfs_export_resource = powerstore.NfsExport("nfsExportResource",
file_system_id="string",
path="string",
min_security="string",
description="string",
default_access="string",
is_no_suid=False,
anonymous_gid=0,
name="string",
nfs_owner_username="string",
no_access_hosts=["string"],
anonymous_uid=0,
read_only_hosts=["string"],
read_only_root_hosts=["string"],
read_write_hosts=["string"],
read_write_root_hosts=["string"])
const nfsExportResource = new powerstore.NfsExport("nfsExportResource", {
fileSystemId: "string",
path: "string",
minSecurity: "string",
description: "string",
defaultAccess: "string",
isNoSuid: false,
anonymousGid: 0,
name: "string",
nfsOwnerUsername: "string",
noAccessHosts: ["string"],
anonymousUid: 0,
readOnlyHosts: ["string"],
readOnlyRootHosts: ["string"],
readWriteHosts: ["string"],
readWriteRootHosts: ["string"],
});
type: powerstore:NfsExport
properties:
anonymousGid: 0
anonymousUid: 0
defaultAccess: string
description: string
fileSystemId: string
isNoSuid: false
minSecurity: string
name: string
nfsOwnerUsername: string
noAccessHosts:
- string
path: string
readOnlyHosts:
- string
readOnlyRootHosts:
- string
readWriteHosts:
- string
readWriteRootHosts:
- string
NfsExport Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NfsExport resource accepts the following input properties:
- File
System stringId - The unique identifier of the file system on which the NFS Export will be created.
- Path string
- The local path to export relative to the nfs export root directory. With NFS, each export of a filesystem or filenfs must have a unique local path. Before you can create additional Exports within an NFS shared folder, you must create directories within it from a Linux/Unix host that is connected to the nfs export. After a directory has been created from a mounted host, you can create a corresponding Export and Set access permissions accordingly.
- Anonymous
Gid double - The GID (Group ID) of the anonymous user. This is the group ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- Anonymous
Uid double - The UID (User ID) of the anonymous user. This is the user ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- Default
Access string - The default access level for all hosts that can access the NFS Export. The default access level is the access level that is assigned to a host that is not explicitly Seted in the 'noaccesshosts', 'readonlyhosts', 'readonlyroothosts', 'readwritehosts', or 'readwriteroothosts' Sets. Valid values are: 'NoAccess', 'ReadOnly', 'ReadWrite', 'Root', 'ReadOnly_Root'.
- Description string
- A user-defined description of the NFS Export.
- Is
No boolSuid - If Set, do not allow access to Set SUID. Otherwise, allow access.
- Min
Security string - The NFS enforced security type for users accessing the NFS Export. Valid values are: 'Sys', 'Kerberos', 'KerberosWithIntegrity', 'KerberosWithEncryption'.
- Name string
- The name of the NFS Export.
- Nfs
Owner stringUsername - The default owner of the NFS Export associated with the datastore. Required if secure NFS enabled. For NFSv3 or NFSv4 without Kerberos, the default owner is root. Was added in version 3.0.0.0.
- No
Access List<string>Hosts - Hosts with no access to the NFS export or its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Read
Only List<string>Hosts - Hosts with read-only access to the NFS export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Read
Only List<string>Root Hosts - Hosts with read-only and read-only for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Read
Write List<string>Hosts - Hosts with read and write access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Read
Write List<string>Root Hosts - Hosts with read and write and read and write for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- File
System stringId - The unique identifier of the file system on which the NFS Export will be created.
- Path string
- The local path to export relative to the nfs export root directory. With NFS, each export of a filesystem or filenfs must have a unique local path. Before you can create additional Exports within an NFS shared folder, you must create directories within it from a Linux/Unix host that is connected to the nfs export. After a directory has been created from a mounted host, you can create a corresponding Export and Set access permissions accordingly.
- Anonymous
Gid float64 - The GID (Group ID) of the anonymous user. This is the group ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- Anonymous
Uid float64 - The UID (User ID) of the anonymous user. This is the user ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- Default
Access string - The default access level for all hosts that can access the NFS Export. The default access level is the access level that is assigned to a host that is not explicitly Seted in the 'noaccesshosts', 'readonlyhosts', 'readonlyroothosts', 'readwritehosts', or 'readwriteroothosts' Sets. Valid values are: 'NoAccess', 'ReadOnly', 'ReadWrite', 'Root', 'ReadOnly_Root'.
- Description string
- A user-defined description of the NFS Export.
- Is
No boolSuid - If Set, do not allow access to Set SUID. Otherwise, allow access.
- Min
Security string - The NFS enforced security type for users accessing the NFS Export. Valid values are: 'Sys', 'Kerberos', 'KerberosWithIntegrity', 'KerberosWithEncryption'.
- Name string
- The name of the NFS Export.
- Nfs
Owner stringUsername - The default owner of the NFS Export associated with the datastore. Required if secure NFS enabled. For NFSv3 or NFSv4 without Kerberos, the default owner is root. Was added in version 3.0.0.0.
- No
Access []stringHosts - Hosts with no access to the NFS export or its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Read
Only []stringHosts - Hosts with read-only access to the NFS export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Read
Only []stringRoot Hosts - Hosts with read-only and read-only for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Read
Write []stringHosts - Hosts with read and write access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Read
Write []stringRoot Hosts - Hosts with read and write and read and write for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- file
System StringId - The unique identifier of the file system on which the NFS Export will be created.
- path String
- The local path to export relative to the nfs export root directory. With NFS, each export of a filesystem or filenfs must have a unique local path. Before you can create additional Exports within an NFS shared folder, you must create directories within it from a Linux/Unix host that is connected to the nfs export. After a directory has been created from a mounted host, you can create a corresponding Export and Set access permissions accordingly.
- anonymous
Gid Double - The GID (Group ID) of the anonymous user. This is the group ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- anonymous
Uid Double - The UID (User ID) of the anonymous user. This is the user ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- default
Access String - The default access level for all hosts that can access the NFS Export. The default access level is the access level that is assigned to a host that is not explicitly Seted in the 'noaccesshosts', 'readonlyhosts', 'readonlyroothosts', 'readwritehosts', or 'readwriteroothosts' Sets. Valid values are: 'NoAccess', 'ReadOnly', 'ReadWrite', 'Root', 'ReadOnly_Root'.
- description String
- A user-defined description of the NFS Export.
- is
No BooleanSuid - If Set, do not allow access to Set SUID. Otherwise, allow access.
- min
Security String - The NFS enforced security type for users accessing the NFS Export. Valid values are: 'Sys', 'Kerberos', 'KerberosWithIntegrity', 'KerberosWithEncryption'.
- name String
- The name of the NFS Export.
- nfs
Owner StringUsername - The default owner of the NFS Export associated with the datastore. Required if secure NFS enabled. For NFSv3 or NFSv4 without Kerberos, the default owner is root. Was added in version 3.0.0.0.
- no
Access List<String>Hosts - Hosts with no access to the NFS export or its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Only List<String>Hosts - Hosts with read-only access to the NFS export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Only List<String>Root Hosts - Hosts with read-only and read-only for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Write List<String>Hosts - Hosts with read and write access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Write List<String>Root Hosts - Hosts with read and write and read and write for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- file
System stringId - The unique identifier of the file system on which the NFS Export will be created.
- path string
- The local path to export relative to the nfs export root directory. With NFS, each export of a filesystem or filenfs must have a unique local path. Before you can create additional Exports within an NFS shared folder, you must create directories within it from a Linux/Unix host that is connected to the nfs export. After a directory has been created from a mounted host, you can create a corresponding Export and Set access permissions accordingly.
- anonymous
Gid number - The GID (Group ID) of the anonymous user. This is the group ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- anonymous
Uid number - The UID (User ID) of the anonymous user. This is the user ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- default
Access string - The default access level for all hosts that can access the NFS Export. The default access level is the access level that is assigned to a host that is not explicitly Seted in the 'noaccesshosts', 'readonlyhosts', 'readonlyroothosts', 'readwritehosts', or 'readwriteroothosts' Sets. Valid values are: 'NoAccess', 'ReadOnly', 'ReadWrite', 'Root', 'ReadOnly_Root'.
- description string
- A user-defined description of the NFS Export.
- is
No booleanSuid - If Set, do not allow access to Set SUID. Otherwise, allow access.
- min
Security string - The NFS enforced security type for users accessing the NFS Export. Valid values are: 'Sys', 'Kerberos', 'KerberosWithIntegrity', 'KerberosWithEncryption'.
- name string
- The name of the NFS Export.
- nfs
Owner stringUsername - The default owner of the NFS Export associated with the datastore. Required if secure NFS enabled. For NFSv3 or NFSv4 without Kerberos, the default owner is root. Was added in version 3.0.0.0.
- no
Access string[]Hosts - Hosts with no access to the NFS export or its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Only string[]Hosts - Hosts with read-only access to the NFS export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Only string[]Root Hosts - Hosts with read-only and read-only for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Write string[]Hosts - Hosts with read and write access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Write string[]Root Hosts - Hosts with read and write and read and write for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- file_
system_ strid - The unique identifier of the file system on which the NFS Export will be created.
- path str
- The local path to export relative to the nfs export root directory. With NFS, each export of a filesystem or filenfs must have a unique local path. Before you can create additional Exports within an NFS shared folder, you must create directories within it from a Linux/Unix host that is connected to the nfs export. After a directory has been created from a mounted host, you can create a corresponding Export and Set access permissions accordingly.
- anonymous_
gid float - The GID (Group ID) of the anonymous user. This is the group ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- anonymous_
uid float - The UID (User ID) of the anonymous user. This is the user ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- default_
access str - The default access level for all hosts that can access the NFS Export. The default access level is the access level that is assigned to a host that is not explicitly Seted in the 'noaccesshosts', 'readonlyhosts', 'readonlyroothosts', 'readwritehosts', or 'readwriteroothosts' Sets. Valid values are: 'NoAccess', 'ReadOnly', 'ReadWrite', 'Root', 'ReadOnly_Root'.
- description str
- A user-defined description of the NFS Export.
- is_
no_ boolsuid - If Set, do not allow access to Set SUID. Otherwise, allow access.
- min_
security str - The NFS enforced security type for users accessing the NFS Export. Valid values are: 'Sys', 'Kerberos', 'KerberosWithIntegrity', 'KerberosWithEncryption'.
- name str
- The name of the NFS Export.
- nfs_
owner_ strusername - The default owner of the NFS Export associated with the datastore. Required if secure NFS enabled. For NFSv3 or NFSv4 without Kerberos, the default owner is root. Was added in version 3.0.0.0.
- no_
access_ Sequence[str]hosts - Hosts with no access to the NFS export or its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read_
only_ Sequence[str]hosts - Hosts with read-only access to the NFS export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read_
only_ Sequence[str]root_ hosts - Hosts with read-only and read-only for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read_
write_ Sequence[str]hosts - Hosts with read and write access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read_
write_ Sequence[str]root_ hosts - Hosts with read and write and read and write for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- file
System StringId - The unique identifier of the file system on which the NFS Export will be created.
- path String
- The local path to export relative to the nfs export root directory. With NFS, each export of a filesystem or filenfs must have a unique local path. Before you can create additional Exports within an NFS shared folder, you must create directories within it from a Linux/Unix host that is connected to the nfs export. After a directory has been created from a mounted host, you can create a corresponding Export and Set access permissions accordingly.
- anonymous
Gid Number - The GID (Group ID) of the anonymous user. This is the group ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- anonymous
Uid Number - The UID (User ID) of the anonymous user. This is the user ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- default
Access String - The default access level for all hosts that can access the NFS Export. The default access level is the access level that is assigned to a host that is not explicitly Seted in the 'noaccesshosts', 'readonlyhosts', 'readonlyroothosts', 'readwritehosts', or 'readwriteroothosts' Sets. Valid values are: 'NoAccess', 'ReadOnly', 'ReadWrite', 'Root', 'ReadOnly_Root'.
- description String
- A user-defined description of the NFS Export.
- is
No BooleanSuid - If Set, do not allow access to Set SUID. Otherwise, allow access.
- min
Security String - The NFS enforced security type for users accessing the NFS Export. Valid values are: 'Sys', 'Kerberos', 'KerberosWithIntegrity', 'KerberosWithEncryption'.
- name String
- The name of the NFS Export.
- nfs
Owner StringUsername - The default owner of the NFS Export associated with the datastore. Required if secure NFS enabled. For NFSv3 or NFSv4 without Kerberos, the default owner is root. Was added in version 3.0.0.0.
- no
Access List<String>Hosts - Hosts with no access to the NFS export or its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Only List<String>Hosts - Hosts with read-only access to the NFS export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Only List<String>Root Hosts - Hosts with read-only and read-only for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Write List<String>Hosts - Hosts with read and write access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Write List<String>Root Hosts - Hosts with read and write and read and write for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
Outputs
All input properties are implicitly available as output properties. Additionally, the NfsExport resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NfsExport Resource
Get an existing NfsExport resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NfsExportState, opts?: CustomResourceOptions): NfsExport
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
anonymous_gid: Optional[float] = None,
anonymous_uid: Optional[float] = None,
default_access: Optional[str] = None,
description: Optional[str] = None,
file_system_id: Optional[str] = None,
is_no_suid: Optional[bool] = None,
min_security: Optional[str] = None,
name: Optional[str] = None,
nfs_owner_username: Optional[str] = None,
no_access_hosts: Optional[Sequence[str]] = None,
path: Optional[str] = None,
read_only_hosts: Optional[Sequence[str]] = None,
read_only_root_hosts: Optional[Sequence[str]] = None,
read_write_hosts: Optional[Sequence[str]] = None,
read_write_root_hosts: Optional[Sequence[str]] = None) -> NfsExport
func GetNfsExport(ctx *Context, name string, id IDInput, state *NfsExportState, opts ...ResourceOption) (*NfsExport, error)
public static NfsExport Get(string name, Input<string> id, NfsExportState? state, CustomResourceOptions? opts = null)
public static NfsExport get(String name, Output<String> id, NfsExportState state, CustomResourceOptions options)
resources: _: type: powerstore:NfsExport get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Anonymous
Gid double - The GID (Group ID) of the anonymous user. This is the group ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- Anonymous
Uid double - The UID (User ID) of the anonymous user. This is the user ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- Default
Access string - The default access level for all hosts that can access the NFS Export. The default access level is the access level that is assigned to a host that is not explicitly Seted in the 'noaccesshosts', 'readonlyhosts', 'readonlyroothosts', 'readwritehosts', or 'readwriteroothosts' Sets. Valid values are: 'NoAccess', 'ReadOnly', 'ReadWrite', 'Root', 'ReadOnly_Root'.
- Description string
- A user-defined description of the NFS Export.
- File
System stringId - The unique identifier of the file system on which the NFS Export will be created.
- Is
No boolSuid - If Set, do not allow access to Set SUID. Otherwise, allow access.
- Min
Security string - The NFS enforced security type for users accessing the NFS Export. Valid values are: 'Sys', 'Kerberos', 'KerberosWithIntegrity', 'KerberosWithEncryption'.
- Name string
- The name of the NFS Export.
- Nfs
Owner stringUsername - The default owner of the NFS Export associated with the datastore. Required if secure NFS enabled. For NFSv3 or NFSv4 without Kerberos, the default owner is root. Was added in version 3.0.0.0.
- No
Access List<string>Hosts - Hosts with no access to the NFS export or its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Path string
- The local path to export relative to the nfs export root directory. With NFS, each export of a filesystem or filenfs must have a unique local path. Before you can create additional Exports within an NFS shared folder, you must create directories within it from a Linux/Unix host that is connected to the nfs export. After a directory has been created from a mounted host, you can create a corresponding Export and Set access permissions accordingly.
- Read
Only List<string>Hosts - Hosts with read-only access to the NFS export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Read
Only List<string>Root Hosts - Hosts with read-only and read-only for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Read
Write List<string>Hosts - Hosts with read and write access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Read
Write List<string>Root Hosts - Hosts with read and write and read and write for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Anonymous
Gid float64 - The GID (Group ID) of the anonymous user. This is the group ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- Anonymous
Uid float64 - The UID (User ID) of the anonymous user. This is the user ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- Default
Access string - The default access level for all hosts that can access the NFS Export. The default access level is the access level that is assigned to a host that is not explicitly Seted in the 'noaccesshosts', 'readonlyhosts', 'readonlyroothosts', 'readwritehosts', or 'readwriteroothosts' Sets. Valid values are: 'NoAccess', 'ReadOnly', 'ReadWrite', 'Root', 'ReadOnly_Root'.
- Description string
- A user-defined description of the NFS Export.
- File
System stringId - The unique identifier of the file system on which the NFS Export will be created.
- Is
No boolSuid - If Set, do not allow access to Set SUID. Otherwise, allow access.
- Min
Security string - The NFS enforced security type for users accessing the NFS Export. Valid values are: 'Sys', 'Kerberos', 'KerberosWithIntegrity', 'KerberosWithEncryption'.
- Name string
- The name of the NFS Export.
- Nfs
Owner stringUsername - The default owner of the NFS Export associated with the datastore. Required if secure NFS enabled. For NFSv3 or NFSv4 without Kerberos, the default owner is root. Was added in version 3.0.0.0.
- No
Access []stringHosts - Hosts with no access to the NFS export or its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Path string
- The local path to export relative to the nfs export root directory. With NFS, each export of a filesystem or filenfs must have a unique local path. Before you can create additional Exports within an NFS shared folder, you must create directories within it from a Linux/Unix host that is connected to the nfs export. After a directory has been created from a mounted host, you can create a corresponding Export and Set access permissions accordingly.
- Read
Only []stringHosts - Hosts with read-only access to the NFS export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Read
Only []stringRoot Hosts - Hosts with read-only and read-only for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Read
Write []stringHosts - Hosts with read and write access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- Read
Write []stringRoot Hosts - Hosts with read and write and read and write for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- anonymous
Gid Double - The GID (Group ID) of the anonymous user. This is the group ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- anonymous
Uid Double - The UID (User ID) of the anonymous user. This is the user ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- default
Access String - The default access level for all hosts that can access the NFS Export. The default access level is the access level that is assigned to a host that is not explicitly Seted in the 'noaccesshosts', 'readonlyhosts', 'readonlyroothosts', 'readwritehosts', or 'readwriteroothosts' Sets. Valid values are: 'NoAccess', 'ReadOnly', 'ReadWrite', 'Root', 'ReadOnly_Root'.
- description String
- A user-defined description of the NFS Export.
- file
System StringId - The unique identifier of the file system on which the NFS Export will be created.
- is
No BooleanSuid - If Set, do not allow access to Set SUID. Otherwise, allow access.
- min
Security String - The NFS enforced security type for users accessing the NFS Export. Valid values are: 'Sys', 'Kerberos', 'KerberosWithIntegrity', 'KerberosWithEncryption'.
- name String
- The name of the NFS Export.
- nfs
Owner StringUsername - The default owner of the NFS Export associated with the datastore. Required if secure NFS enabled. For NFSv3 or NFSv4 without Kerberos, the default owner is root. Was added in version 3.0.0.0.
- no
Access List<String>Hosts - Hosts with no access to the NFS export or its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- path String
- The local path to export relative to the nfs export root directory. With NFS, each export of a filesystem or filenfs must have a unique local path. Before you can create additional Exports within an NFS shared folder, you must create directories within it from a Linux/Unix host that is connected to the nfs export. After a directory has been created from a mounted host, you can create a corresponding Export and Set access permissions accordingly.
- read
Only List<String>Hosts - Hosts with read-only access to the NFS export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Only List<String>Root Hosts - Hosts with read-only and read-only for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Write List<String>Hosts - Hosts with read and write access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Write List<String>Root Hosts - Hosts with read and write and read and write for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- anonymous
Gid number - The GID (Group ID) of the anonymous user. This is the group ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- anonymous
Uid number - The UID (User ID) of the anonymous user. This is the user ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- default
Access string - The default access level for all hosts that can access the NFS Export. The default access level is the access level that is assigned to a host that is not explicitly Seted in the 'noaccesshosts', 'readonlyhosts', 'readonlyroothosts', 'readwritehosts', or 'readwriteroothosts' Sets. Valid values are: 'NoAccess', 'ReadOnly', 'ReadWrite', 'Root', 'ReadOnly_Root'.
- description string
- A user-defined description of the NFS Export.
- file
System stringId - The unique identifier of the file system on which the NFS Export will be created.
- is
No booleanSuid - If Set, do not allow access to Set SUID. Otherwise, allow access.
- min
Security string - The NFS enforced security type for users accessing the NFS Export. Valid values are: 'Sys', 'Kerberos', 'KerberosWithIntegrity', 'KerberosWithEncryption'.
- name string
- The name of the NFS Export.
- nfs
Owner stringUsername - The default owner of the NFS Export associated with the datastore. Required if secure NFS enabled. For NFSv3 or NFSv4 without Kerberos, the default owner is root. Was added in version 3.0.0.0.
- no
Access string[]Hosts - Hosts with no access to the NFS export or its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- path string
- The local path to export relative to the nfs export root directory. With NFS, each export of a filesystem or filenfs must have a unique local path. Before you can create additional Exports within an NFS shared folder, you must create directories within it from a Linux/Unix host that is connected to the nfs export. After a directory has been created from a mounted host, you can create a corresponding Export and Set access permissions accordingly.
- read
Only string[]Hosts - Hosts with read-only access to the NFS export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Only string[]Root Hosts - Hosts with read-only and read-only for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Write string[]Hosts - Hosts with read and write access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Write string[]Root Hosts - Hosts with read and write and read and write for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- anonymous_
gid float - The GID (Group ID) of the anonymous user. This is the group ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- anonymous_
uid float - The UID (User ID) of the anonymous user. This is the user ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- default_
access str - The default access level for all hosts that can access the NFS Export. The default access level is the access level that is assigned to a host that is not explicitly Seted in the 'noaccesshosts', 'readonlyhosts', 'readonlyroothosts', 'readwritehosts', or 'readwriteroothosts' Sets. Valid values are: 'NoAccess', 'ReadOnly', 'ReadWrite', 'Root', 'ReadOnly_Root'.
- description str
- A user-defined description of the NFS Export.
- file_
system_ strid - The unique identifier of the file system on which the NFS Export will be created.
- is_
no_ boolsuid - If Set, do not allow access to Set SUID. Otherwise, allow access.
- min_
security str - The NFS enforced security type for users accessing the NFS Export. Valid values are: 'Sys', 'Kerberos', 'KerberosWithIntegrity', 'KerberosWithEncryption'.
- name str
- The name of the NFS Export.
- nfs_
owner_ strusername - The default owner of the NFS Export associated with the datastore. Required if secure NFS enabled. For NFSv3 or NFSv4 without Kerberos, the default owner is root. Was added in version 3.0.0.0.
- no_
access_ Sequence[str]hosts - Hosts with no access to the NFS export or its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- path str
- The local path to export relative to the nfs export root directory. With NFS, each export of a filesystem or filenfs must have a unique local path. Before you can create additional Exports within an NFS shared folder, you must create directories within it from a Linux/Unix host that is connected to the nfs export. After a directory has been created from a mounted host, you can create a corresponding Export and Set access permissions accordingly.
- read_
only_ Sequence[str]hosts - Hosts with read-only access to the NFS export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read_
only_ Sequence[str]root_ hosts - Hosts with read-only and read-only for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read_
write_ Sequence[str]hosts - Hosts with read and write access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read_
write_ Sequence[str]root_ hosts - Hosts with read and write and read and write for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- anonymous
Gid Number - The GID (Group ID) of the anonymous user. This is the group ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- anonymous
Uid Number - The UID (User ID) of the anonymous user. This is the user ID of the anonymous user. The anonymous user is the user ID (UID) that is used when the true user's identity cannot be determined.
- default
Access String - The default access level for all hosts that can access the NFS Export. The default access level is the access level that is assigned to a host that is not explicitly Seted in the 'noaccesshosts', 'readonlyhosts', 'readonlyroothosts', 'readwritehosts', or 'readwriteroothosts' Sets. Valid values are: 'NoAccess', 'ReadOnly', 'ReadWrite', 'Root', 'ReadOnly_Root'.
- description String
- A user-defined description of the NFS Export.
- file
System StringId - The unique identifier of the file system on which the NFS Export will be created.
- is
No BooleanSuid - If Set, do not allow access to Set SUID. Otherwise, allow access.
- min
Security String - The NFS enforced security type for users accessing the NFS Export. Valid values are: 'Sys', 'Kerberos', 'KerberosWithIntegrity', 'KerberosWithEncryption'.
- name String
- The name of the NFS Export.
- nfs
Owner StringUsername - The default owner of the NFS Export associated with the datastore. Required if secure NFS enabled. For NFSv3 or NFSv4 without Kerberos, the default owner is root. Was added in version 3.0.0.0.
- no
Access List<String>Hosts - Hosts with no access to the NFS export or its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- path String
- The local path to export relative to the nfs export root directory. With NFS, each export of a filesystem or filenfs must have a unique local path. Before you can create additional Exports within an NFS shared folder, you must create directories within it from a Linux/Unix host that is connected to the nfs export. After a directory has been created from a mounted host, you can create a corresponding Export and Set access permissions accordingly.
- read
Only List<String>Hosts - Hosts with read-only access to the NFS export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Only List<String>Root Hosts - Hosts with read-only and read-only for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Write List<String>Hosts - Hosts with read and write access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
- read
Write List<String>Root Hosts - Hosts with read and write and read and write for root user access to the NFS Export and its snapshots. Hosts can be entered by Hostname, IP addresses (IPv4, IPv6, IPv4/PrefixLength, IPv6/PrefixLength, or IPv4/subnetmask), or Netgroups prefixed with @.
Package Details
- Repository
- powerstore dell/terraform-provider-powerstore
- License
- Notes
- This Pulumi package is based on the
powerstore
Terraform Provider.