/system/nfsmount

Resource URI

/system/nfsmount

HTTP GET

Retrieves all NFS mount points.

GET /system/nfsmount

Method

Response Payload

JSON

{
  "nfsmounts": [
    {
      "device": "onyx2:/files/Builds/G4PP/",
      "mount_point": "/mnt/jane",
      "options": "defaults",
      "status": "disable"
    },
    {
      "device": "onyx:/files/Builds/G2MS/",
      "mount_point": "/mnt/lingx2",
      "options": "defaults",
      "status": "disable"
    }
  ]
}

HTTP PUT

Adds, deletes, or modifies NFS mount points.

PUT /system/nfsmount

Method Request Payload Response Payload
JSON

{
  "nfsmounts": [
    {
      "device": "onyx2:/files/Builds/G4PP/",
      "mount_point": "/mnt/jane2",
      "options": "ro",
    },
    {
      "device": "onyx:/files/Builds/G2MS/",
      "mount_point": "/mnt/lingx2",
      "options": "defaults",
    },
    {
      "device": "onyx:/files/Builds/new/",
      "mount_point": "/mnt/onyx/new",
      "options": "defaults",
    }
  ]
}

{
  "nfsmounts": [
    {
      "device": "onyx2:/files/Builds/G4PP/",
      "mount_point": "/mnt/jane2",
      "options": "defaults",
      "status": "enable"
    },
    {
      "device": "onyx:/files/Builds/G2MS/",
      "mount_point": "/mnt/lingx2",
      "options": "defaults",
      "status": "disable"
    },
    {
      "device": "onyx2:/files/Builds/new/",
      "mount_point": "/mnt/onyx/new",
      "options": "defaults",
      "status": "enable"
    }
  ]
}