code: def cli(env):
      
  
      mgr = SoftLayer.ObjectStorageManager(env.client)
      accounts = mgr.list_accounts()
      table = formatting.Table(['id', 'name', 'apiType'])
      table.sortby = 'id'
      api_type = None
      for account in accounts:
          if 'vendorName' in account and account['vendorName'] == 'Swift':
              api_type = 'Swift'
          elif 'Cleversafe' in account['serviceResource']['name']:
              api_type = 'S3'
  
          table.add_row([
              account['id'],
              account['username'],
              api_type,
          ])
  
      env.fout(table)
docs: List object storage accounts.