<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cli(env):
 """List object storage endpoints."""


    mgr = SoftLayer.ObjectStorageManager(env.client)
    endpoints = mgr.list_endpoints()

    table = formatting.Table(['datacenter', 'public', 'private'])
    for endpoint in endpoints:
        table.add_row([
            endpoint['datacenter']['name'],
            endpoint['public'],
            endpoint['private'],
        ])

    env.fout(table)