@PUT @Path("/{id}") @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @CheckPermission(roles={Role.TENANT_ADMIN}) public IpInterfaceRestRep updateIpInterface(@PathParam("id") URI id,IpInterfaceUpdateParam updateParam) throws DatabaseException {
  IpInterface ipInterface=queryObject(IpInterface.class,id,true);
  _hostService.validateIpInterfaceData(updateParam,ipInterface);
  _hostService.populateIpInterface(updateParam,ipInterface);
  _dbClient.persistObject(ipInterface);
  auditOp(OperationTypeEnum.UPDATE_HOST_IPINTERFACE,true,null,ipInterface.auditParameters());
  return map(queryObject(IpInterface.class,id,false));
}

@ PUT @ Path ( "/{id}" ) @ Produces ( { MediaType . APPLICATION_XML , MediaType . APPLICATION_JSON } ) @ CheckPermission ( roles = { Role . TENANT_ADMIN } ) public IpInterfaceRestRep updateIpInterface ( @ PathParam ( "id" ) URI id , IpInterfaceUpdateParam updateParam ) throws DatabaseException { IpInterface ipInterface = queryObject ( IpInterface . class , id , true ) ; _hostService . validateIpInterfaceData ( updateParam , ipInterface ) ; _hostService . populateIpInterface ( updateParam , ipInterface ) ; _dbClient . persistObject ( ipInterface ) ; auditOp ( OperationTypeEnum . UPDATE_HOST_IPINTERFACE , true , null , ipInterface . auditParameters ( ) ) ; return map ( queryObject ( IpInterface . class , id , false ) ) ; }
update a host ip interface .
