use of com.emc.storageos.vnxe.models.VNXeNfsShare in project coprhd-controller by CoprHD.
the class VNXeApiClient method getNfsSharesForSnap.
/**
* Find nfsShares for snapshot Id
*
* @param snapId
* file system snapshot Id
* @return list of nfsShare
*/
public List<VNXeNfsShare> getNfsSharesForSnap(String snapId) {
_logger.info("finding nfsShares for snap id: {} ", snapId);
NfsShareRequests req = new NfsShareRequests(_khClient);
List<VNXeNfsShare> shares = req.getSharesForFileSystemSnap(snapId);
return shares;
}
use of com.emc.storageos.vnxe.models.VNXeNfsShare in project coprhd-controller by CoprHD.
the class VNXeApiClient method getNfsSharesForFileSystem.
/**
* Find nfsShares for filesystem Id
*
* @param fsId
* file system Id
* @return list of nfsShare
*/
public List<VNXeNfsShare> getNfsSharesForFileSystem(String fsId) {
_logger.info("finding nfsShares for filesystem id: {} ", fsId);
NfsShareRequests req = new NfsShareRequests(_khClient);
List<VNXeNfsShare> shares = req.getSharesForFileSystem(fsId);
return shares;
}
use of com.emc.storageos.vnxe.models.VNXeNfsShare in project coprhd-controller by CoprHD.
the class VNXeApiClient method findSnapNfsShare.
/**
* Find nfsShare using snapshot Id and snapshot share name
*
* @param snapId
* file system snapshot Id
* @param shareName
* NFS Export/Share name
* @return nfsShare
*/
public VNXeNfsShare findSnapNfsShare(String snapId, String shareName) {
_logger.info("finding nfsShare id for snap id: {}, and shareName: {} ", snapId, shareName);
NfsShareRequests req = new NfsShareRequests(_khClient);
VNXeNfsShare share = req.findSnapNfsShare(snapId, shareName, getBasicSystemInfo().getSoftwareVersion());
return share;
}
use of com.emc.storageos.vnxe.models.VNXeNfsShare in project coprhd-controller by CoprHD.
the class NfsShareRequestsTest method findNfsShareTest.
@Test
public void findNfsShareTest() {
NfsShareRequests req = new NfsShareRequests(_client);
VNXeNfsShare share = req.findNfsShare("fs_30", "ProviderTenant_fskh33_d7909c79-3bfe-4845-bc84-6c9775f1e44d-share" + host, "3.1.0");
req.get();
System.out.println(share.getId());
/*
* VNXeFileSystem fs2 = req.getByFSName("ProviderTenant_fskh02_5bb3ac40-65f3-4ce1-b629-0c2f0775647c");
* System.out.println(fs2.getId());
*/
}
Aggregations