def avail_images(call=None):
    if call == 'action':
        raise SaltCloudSystemExit(
            'The avail_images function must be called with '
            '-f or --function, or with the --list-images option'
        )

    ret = {}
    conn = get_conn()
    datacenter = get_datacenter(conn)

    for item in conn.list_images()['items']:
        if item['properties']['location'] == datacenter['properties']['location']:
            image = {'id': item['id']}
            image.update(item['properties'])
            ret[image['name']] = image

    return ret
Recursively iterate a controller api entries.
dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/profitbricks.py/avail_images--crossover with--dataset/ETHPy150Open openstack/wsme/wsme/rest/__init__.py/scan_api