def aggregatedlistdisks()

in gstack/controllers/disks.py [0:0]


def aggregatedlistdisks(projectid, authorization):
    args = {'command': 'listVolumes'}
    kwargs = {'projectid': projectid}
    items = controllers.describe_items_aggregated(
        authorization, args, 'volume', 'disk',
        _cloudstack_volume_to_gce, **kwargs)

    populated_response = {
        'kind': 'compute#diskAggregatedList',
        'selfLink': urllib.unquote_plus(request.base_url),
        'id': 'projects/' + projectid + '/global/images',
        'items': items
    }

    return helpers.create_response(data=populated_response)