@click.command()
@environment.pass_env
def cli(env):

    iscsi_mgr = SoftLayer.ISCSIManager(env.client)
    iscsi_list = iscsi_mgr.list_iscsi()
    iscsi_list = [utils.NestedDict(n) for n in iscsi_list]
    table = formatting.Table([
        'id',
        'datacenter',
        'size',
        'username',
        'password',
        'server'
    ])
    for iscsi in iscsi_list:
        table.add_row([
            iscsi['id'],
            utils.lookup(iscsi,
                         'serviceResource',
                         'datacenter',
                         'name') or formatting.blank(),
            formatting.FormattedItem(iscsi.get('capacityGb',
                                               formatting.blank()),
                                     "%dGB" % iscsi.get('capacityGb', 0)),
            iscsi.get('username', formatting.blank()),
            iscsi.get('password', formatting.blank()),
            iscsi.get('serviceResourceBackendIpAddress',
                      formatting.blank())])

    env.fout(table)
Returns a dictionary of {field_index: (field_index_other_table, other_table)}
dataset/ETHPy150Open softlayer/softlayer-python/SoftLayer/CLI/iscsi/list.py/cli--crossover with--dataset/ETHPy150Open avidal/django-pyodbc/sql_server/pyodbc/introspection.py/DatabaseIntrospection.get_relations