'Lists all locations
:rtype: ``list`` of :class:`NodeLocation`'

def list_locations(self):

    data = self._perform_get((('/' + self.subscription_id) + '/locations'), Locations)
    return [self._to_location(l) for l in data]
