The nfsProtocol data type describes the nfs resource for HCPnamespaces.
Properties
The table below describes the properties included in the nfsProtocol data type.
| Property | Data type | Description |
|---|---|---|
| enabled | Boolean |
Specifies whether the NFS protocol is enabled for the namespace. Valid values are: The default is false. |
| gid | Integer | Specifies the default POSIX GID for objects that don’t have an explicit POSIX GID. Valid values are integers greater than or equal to zero. The default is zero. |
| ipSettings | ipSettings |
Specifies which IP addresses can access the namespace through the NFS protocol. |
| uid | Integer | Specifies the default POSIX UID for objects that don’t have an explicit POSIX UID. Valid values are integers greater than or equal to zero. The default is zero. |
Example
Here’s an XML example of the nfsProtocol data type:
<nfsProtocol>
<enabled>true</enabled>
<gid>0</gid>
<ipSettings>
<allowAddresses>
<ipAddress>192.168.140.10</ipAddress>
<ipAddress>192.168.140.14</ipAddress>
<ipAddress>192.168.140.15</ipAddress>
<ipAddress>192.168.149.0/24</ipAddress>
</allowAddresses>
</ipSettings>
<uid>0</uid>
</nfsProtocol>