if (!region.checkIfServiceEnabled(Region.Service.Gslb) || (providerDnsName == null)) {
throw new CloudRuntimeException("GSLB service is not enabled in region : " + region.getName());
}
Transaction txn = Transaction.currentTxn();
txn.start();
GlobalLoadBalancerRuleVO newGslbRule = new GlobalLoadBalancerRuleVO(name, description, domainName, algorithm,
stickyMethod, serviceType, regionId, gslbOwner.getId(), gslbOwner.getDomainId(),
GlobalLoadBalancerRule.State.Staged);
_gslbRuleDao.persist(newGslbRule);