godo.Nfs.Create()
Generated on 5 Nov 2026
from godo version
v1.236.0
Usage
client.Nfs.Create(ctx context.Context, createRequest *godo.NfsCreateRequest) (*godo.Nfs, *godo.Response, error)Description
Create creates a new NFS share.
There is no client-side size validation: minimum and maximum sizes differ
per performance tier and can change server-side, so the API is the source
of truth. Use Nfs.GetOptions to read the current per-tier floors.
This method sends a POST request to /v2/nfs.
Parameters
createRequest*godo.NfsCreateRequest required
Fields of godo.NfsCreateRequest
NfsCreateRequest represents a request to create an NFS share.
NamestringSizeGibintRegionstringVpcIDs[]stringPerformanceTierstringManagerURNstring
Returns
- *godo.Nfs
- *godo.Response
The HTTP response, with pagination
Links,Meta, andRatelimit information.- error
Non-nil when the request fails. API errors are returned as
*godo.ErrorResponse.
Fields of godo.Nfs
Nfs represents a DigitalOcean NFS share
IDstringIDis the unique identifier for the NFS shareNamestringNameis the human-readable name for the NFS shareSizeGibintSizeGibis the size of the NFS share in gibibytesRegionstringRegionis the datacenter region where the NFS share is locatedStatusgodo.NfsShareStatusStatusrepresents the current state of the NFS shareCreatedAtstringCreatedAtis the timestamp when the NFS share was createdVpcIDs[]stringVpcIDsis a list of VPC IDs that have access to the NFS shareHoststringHostis the IP address of the NFS server accessible from the associated VPCMountPathstringMountPathis the path at which the share will be availablePerformanceTierstringPerformanceTieris the performance tier of the NFS shareManagerURNstringManagerURNassociates the share with the resource that manages itAccessPoints[]*godo.NfsAccessPointAccessPointsis the list of access points configured for the NFS share.
Request Sample
More Information
See POST /v2/nfs in the API reference for additional detail on responses, headers, parameters, and more.
See the Go package documentation for the source of this method.