def list_endpoints(self):
        """Lists the known object storage endpoints."""
        _filter = {
            'hubNetworkStorage': {'vendorName': {'operation': 'Swift'}},
        }
        endpoints = []
        network_storage = self.client.call('Account',
                                           'getHubNetworkStorage',
                                           mask=ENDPOINT_MASK,
                                           limit=1,
                                           filter=_filter)
        if network_storage:
            for node in network_storage['storageNodes']:
                endpoints.append({
                    'datacenter': node['datacenter'],
                    'public': node['frontendIpAddress'],
                    'private': node['backendIpAddress'],
                })

        return endpoints
def list_endpoints ( self ) : _filter = { 'hubNetworkStorage' : { 'vendorName' : { 'operation' : 'Swift' } } , } endpoints = [ ] network_storage = self . client . call ( 'Account' , 'getHubNetworkStorage' , mask = ENDPOINT_MASK , limit = 1 , filter = _filter ) if network_storage : for node in network_storage [ 'storageNodes' ] : endpoints . append ( { 'datacenter' : node [ 'datacenter' ] , 'public' : node [ 'frontendIpAddress' ] , 'private' : node [ 'backendIpAddress' ] , } ) return endpoints
Lists the known object storage endpoints.