def _get_domain_config_for_root(self, domain_root, domain_connect_api):
        """

        :param domain_root: str
            domain name for zone root
        :param domain_connect_api: str
            URL of domain connect API of the vendor
        :return: dict
            domain connect config
        :raises: NoDomainConnectRecordException
            when no _domainconnect record found
        :raises: NoDomainConnectSettingsException
            when settings are not found
        """
        url = 'https://{}/v2/{}/settings'.format(domain_connect_api, domain_root)
        try:
            response = get_json(self._networkContext, url)
            logger.debug('Domain Connect config for {} over {}: {}'.format(domain_root, domain_connect_api,
                                                                           response))
            return response
        except Exception as e:
            logger.debug("Exception when getting config:{}".format(e))
        logger.debug('No Domain Connect config found for {}.'.format(domain_root))
        raise NoDomainConnectSettingsException('No Domain Connect config found for {}.'.format(domain_root))
def _get_domain_config_for_root ( self , domain_root , domain_connect_api ) : url = 'https://{}/v2/{}/settings' . format ( domain_connect_api , domain_root ) try : response = get_json ( self . _networkContext , url ) logger . debug ( 'Domain Connect config for {} over {}: {}' . format ( domain_root , domain_connect_api , response ) ) return response except Exception as e : logger . debug ( "Exception when getting config:{}" . format ( e ) ) logger . debug ( 'No Domain Connect config found for {}.' . format ( domain_root ) ) raise NoDomainConnectSettingsException ( 'No Domain Connect config found for {}.' . format ( domain_root ) )
:param domain_root: str
            domain name for zone root
        :param domain_connect_api: str
            URL of domain connect API of the vendor
        :return: dict
            domain connect config
        :raises: NoDomainConnectRecordException
            when no _domainconnect record found
        :raises: NoDomainConnectSettingsException
            when settings are not found