use of com.emc.storageos.vnxe.models.FileSystemSnapCreateParam in project coprhd-controller by CoprHD.
the class FileSystemSnapRequestsTest method createFileSystemSnap.
// @Test
public void createFileSystemSnap() {
FileSystemSnapCreateParam parm = new FileSystemSnapCreateParam();
VNXeBase resource = new VNXeBase();
resource.setId("res_12");
parm.setStorageResource(resource);
parm.setName("test-snap");
parm.setIsReadOnly(false);
FileSystemSnapRequests req = new FileSystemSnapRequests(_client);
VNXeCommandJob response = null;
try {
response = req.createFileSystemSnap(parm);
} catch (VNXeException e) {
// TODO Auto-generated catch block
logger.error("VNXeException occured", e);
}
System.out.println(response.getId() + "state: " + response.getState());
}
use of com.emc.storageos.vnxe.models.FileSystemSnapCreateParam in project coprhd-controller by CoprHD.
the class VNXeApiClient method createFileSystemSnap.
/**
* Create file system snapshot
*
* @param fsId
* file system id
* @param name
* snapshot name
* @return VNXeCommandJob
*/
public VNXeCommandJob createFileSystemSnap(String fsId, String name) {
_logger.info("creating file system snap:" + fsId);
String resourceId = getStorageResourceId(fsId);
FileSystemSnapCreateParam parm = new FileSystemSnapCreateParam();
VNXeBase resource = new VNXeBase();
resource.setId(resourceId);
parm.setStorageResource(resource);
parm.setName(name);
parm.setIsReadOnly(false);
parm.setIsAutoDelete(false);
FileSystemSnapRequests req = new FileSystemSnapRequests(_khClient, getBasicSystemInfo().getSoftwareVersion());
return req.createFileSystemSnap(parm);
}
Aggregations