Search in sources :

Example 21 with VNXeCommandResult

use of com.emc.storageos.vnxe.models.VNXeCommandResult in project coprhd-controller by CoprHD.

the class ApiClientTest method removeLunsFromLunGroup.

// @Test
public void removeLunsFromLunGroup() {
    List<String> luns = new ArrayList<String>();
    luns.add("sv_1");
    VNXeCommandResult result = apiClient.removeLunsFromLunGroup("res_26", luns);
    System.out.println(result.getSuccess());
}
Also used : VNXeCommandResult(com.emc.storageos.vnxe.models.VNXeCommandResult) ArrayList(java.util.ArrayList)

Example 22 with VNXeCommandResult

use of com.emc.storageos.vnxe.models.VNXeCommandResult in project coprhd-controller by CoprHD.

the class DeleteStorageResourceRequestTest method deleteLun.

@Test
public void deleteLun() {
    DeleteStorageResourceRequest req = new DeleteStorageResourceRequest(_client);
    VNXeCommandResult response = null;
    response = req.deleteLunSync("sv_48", true);
// System.out.println(response.getId());
}
Also used : VNXeCommandResult(com.emc.storageos.vnxe.models.VNXeCommandResult) Test(org.junit.Test)

Example 23 with VNXeCommandResult

use of com.emc.storageos.vnxe.models.VNXeCommandResult in project coprhd-controller by CoprHD.

the class HostListRequestTest method createHostTest.

@Test
public void createHostTest() {
    HostListRequest req = new HostListRequest(_client);
    HostCreateParam parm = new HostCreateParam();
    parm.setName("test-host-1");
    parm.setType(HostTypeEnum.HOSTMANUAL.getValue());
    VNXeCommandResult result = req.createHost(parm);
    String id = result.getId();
    System.out.println(id);
}
Also used : HostCreateParam(com.emc.storageos.vnxe.models.HostCreateParam) VNXeCommandResult(com.emc.storageos.vnxe.models.VNXeCommandResult) Test(org.junit.Test)

Aggregations

VNXeCommandResult (com.emc.storageos.vnxe.models.VNXeCommandResult)23 HostCreateParam (com.emc.storageos.vnxe.models.HostCreateParam)4 VNXeBase (com.emc.storageos.vnxe.models.VNXeBase)3 HostListRequest (com.emc.storageos.vnxe.requests.HostListRequest)3 Test (org.junit.Test)3 BlockConsistencyGroup (com.emc.storageos.db.client.model.BlockConsistencyGroup)2 DatabaseException (com.emc.storageos.db.exceptions.DatabaseException)2 DeviceControllerException (com.emc.storageos.exceptions.DeviceControllerException)2 ServiceError (com.emc.storageos.svcs.errorhandling.model.ServiceError)2 VNXeApiClient (com.emc.storageos.vnxe.VNXeApiClient)2 VNXeException (com.emc.storageos.vnxe.VNXeException)2 HostIpPortCreateParam (com.emc.storageos.vnxe.models.HostIpPortCreateParam)2 VNXeHostInitiator (com.emc.storageos.vnxe.models.VNXeHostInitiator)2 ControllerException (com.emc.storageos.volumecontroller.ControllerException)2 ArrayList (java.util.ArrayList)2 TenantOrg (com.emc.storageos.db.client.model.TenantOrg)1 DeleteStorageResourceParam (com.emc.storageos.vnxe.models.DeleteStorageResourceParam)1 FileSystemQuotaConfigParam (com.emc.storageos.vnxe.models.FileSystemQuotaConfigParam)1 FileSystemQuotaCreateParam (com.emc.storageos.vnxe.models.FileSystemQuotaCreateParam)1 HostInitiatorCreateParam (com.emc.storageos.vnxe.models.HostInitiatorCreateParam)1