

def list_locations(self, ex_id=None):
    '\n        List locations (datacenters) available for instantiating servers and\n        networks.\n\n        :keyword ex_id: Filters the location list to this id\n        :type    ex_id: ``str``\n\n        :return:  List of locations\n        :rtype:  ``list`` of :class:`NodeLocation`\n        '
    params = {
        
    }
    if (ex_id is not None):
        params['id'] = ex_id
    return self._to_locations(self.connection.request_with_orgId_api_2('infrastructure/datacenter', params=params).object)

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.list_locations/original