@webob.dec.wsgify
@util.check_accept('application/json')
def get_aggregates(req):
 microversion.raise_404_if_not_version(req, (1, 1))
 context = req.environ['placement.context']
 uuid = util.wsgi_path_item(req.environ, 'uuid')
 resource_provider = objects.ResourceProvider.get_by_uuid(context, uuid)
 aggregate_uuids = resource_provider.get_aggregates()
 return _send_aggregates(req.response, aggregate_uuids)

@ webob . dec . wsgify @ util . check_accept ( 'application/json' ) def get_aggregates ( req ) : microversion . raise_404_if_not_version ( req , ( 1 , 1 ) ) context = req . environ [ 'placement.context' ] uuid = util . wsgi_path_item ( req . environ , 'uuid' ) resource_provider = objects . ResourceProvider . get_by_uuid ( context , uuid ) aggregate_uuids = resource_provider . get_aggregates ( ) return _send_aggregates ( req . response , aggregate_uuids )
get a list of aggregates associated with a resource provider .