code: 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
docs: Lists the known object storage endpoints.