Created
July 28, 2014 17:35
-
-
Save michaelrice/be5e1639187dce9c6a14 to your computer and use it in GitHub Desktop.
mount NFS with groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HostDatastoreSystem hds = host.getHostDatastoreSystem() | |
HostNasVolumeSpec hnvs = new HostNasVolumeSpec() | |
hnvs.setRemoteHost(remoteHostIp) | |
hnvs.setRemotePath(remotePath) | |
hnvs.setLocalPath(localPath) | |
hnvs.setAccessMode(accessMode) | |
hds.createNasDatastore(hnvs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment