@webob.dec.wsgify
@util.check_accept('application/json')
def get_resource_provider(req):
 uuid = util.wsgi_path_item(req.environ, 'uuid')
 context = req.environ['placement.context']
 resource_provider = objects.ResourceProvider.get_by_uuid(context, uuid)
 req.response.body = encodeutils.to_utf8(jsonutils.dumps(_serialize_provider(req.environ, resource_provider)))
 req.response.content_type = 'application/json'
 return req.response

@ webob . dec . wsgify @ util . check_accept ( 'application/json' ) def get_resource_provider ( req ) : uuid = util . wsgi_path_item ( req . environ , 'uuid' ) context = req . environ [ 'placement.context' ] resource_provider = objects . ResourceProvider . get_by_uuid ( context , uuid ) req . response . body = encodeutils . to_utf8 ( jsonutils . dumps ( _serialize_provider ( req . environ , resource_provider ) ) ) req . response . content_type = 'application/json' return req . response
get a single resource provider .