

def ex_list_network_domains(self, location=None, name=None, service_plan=None, state=None):
    '\n        List networks domains deployed across all data center locations\n        for your organization.\n        The response includes the location of each network domain.\n\n        :param      location: Only network domains in the location (optional)\n        :type       location: :class:`NodeLocation` or ``str``\n\n        :param      name: Only network domains of this name (optional)\n        :type       name: ``str``\n\n        :param      service_plan: Only network domains of this type (optional)\n        :type       service_plan: ``str``\n\n        :param      state: Only network domains in this state (optional)\n        :type       state: ``str``\n\n        :return: a list of `DimensionDataNetwork` objects\n        :rtype: ``list`` of :class:`DimensionDataNetwork`\n        '
    params = {
        
    }
    if (location is not None):
        params['datacenterId'] = self._location_to_location_id(location)
    if (name is not None):
        params['name'] = name
    if (service_plan is not None):
        params['type'] = service_plan
    if (state is not None):
        params['state'] = state
    response = self.connection.request_with_orgId_api_2('network/networkDomain', params=params).object
    return name._to_network_domains(response)

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.ex_list_network_domains/VarMisuse@130/418 `self`->`name`