To get an NFS share, send a GET request to /v2/nfs/{nfs_id}?region=${region}.
A successful request will return the NFS share.
Parameters
nfsID string
Returns
Get an NFS share
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/-go"
"github.com/stainless-sdks/-go/option"
)
func main() {
client := gradient.NewClient(
option.WithAccessToken("My Access Token"),
)
nf, err := client.Nfs.Get(
context.TODO(),
"0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
gradient.NfGetParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", nf.Share)
}
{
"share": {
"id": "0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
"name": "sammy-share-drive",
"size_gib": 1024,
"region": "atl1",
"status": "ACTIVE",
"created_at": "2023-01-01T00:00:00Z",
"vpc_ids": [
"796c6fe3-2a1d-4da2-9f3e-38239827dc91"
],
"mount_path": "/123456/your-nfs-share-uuid",
"host": "10.128.32.2"
}
}Returns Examples
{
"share": {
"id": "0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
"name": "sammy-share-drive",
"size_gib": 1024,
"region": "atl1",
"status": "ACTIVE",
"created_at": "2023-01-01T00:00:00Z",
"vpc_ids": [
"796c6fe3-2a1d-4da2-9f3e-38239827dc91"
],
"mount_path": "/123456/your-nfs-share-uuid",
"host": "10.128.32.2"
}
}