'Lists all datacenters.
:return: ``list`` of :class:`DataCenter`
:rtype: ``list``'

def ex_list_datacenters(self):

    response = self.connection.request(action='datacenters', params={'depth': 2}, method='GET')
    return self._to_datacenters(response.object)
