addLMDomainRestiction

Add a new domain restriction to a pool.

The restriction may be either an Include (allow the domain to use the pool) or an Exclude (prevent the domain from using the pool).

Parameters:

Field
Type
Required Description
sessionid String yes The sessionid returned by loginLMLicensee()
licensee String yes The company code (not the company name) for the Licensee.
customer String yes The company code (not the company name) for the Customer.
pool String yes The name of the customer's pool. If the pool does not have a name, then passing "Pool ##" where ## is the pool number will also work.
domain String yes The company's email domain.
accessType AccessRestrictionType no The restriction type (I or E). If this is null, then I (Include) will be assumed.


Return values: A StatusData structure:

Field
Type
Description
fault FaultData If an error has occurred on the server, this will contain information about the error. This field will be null if no error occurred.
status Integer 0


Example:

NitroAdminAccessServiceLocator service = new NitroAdminAccessServiceLocator();
NitroAdminAccess server = service.getNitroAdminAccess();

StatusData ret = server.addLMDomainRestricton(sessionid, "smith", "cust1", "my first pool", "smith.com", AccessRestrictionType.I);
if (ret.getFault()!=null) {
	System.err.println("Error: " + ret.getFault().getFaultString());
	return;
}
Comments