def _get_location(self, datacenter_name):
        """Returns the location of the specified datacenter.

        :param string datacenter_name: The datacenter to create
                                       the loadbalancer in

        :returns: the location id of the given datacenter
        """

        datacenters = self.client['Location'].getDataCenters()
        for datacenter in datacenters:
            if datacenter['name'] == datacenter_name:
                return datacenter['id']
        return 'FIRST_AVAILABLE'
Returns the location of the specified datacenter.

        :param string datacenter_name: The datacenter to create
                                       the loadbalancer in

        :returns: the location id of the given datacenter