'List resource provider aggregates.
:param resource_provider_uuid: UUID of the resource provider
:type resource_provider_uuid: str'

@check_placement_api_available
def list_aggregates(self, resource_provider_uuid):

    url = ('/resource_providers/%s/aggregates' % resource_provider_uuid)
    try:
        return self._get(url, headers={'openstack-api-version': PLACEMENT_API_WITH_AGGREGATES}).json()
    except ks_exc.NotFound:
        raise n_exc.PlacementAggregateNotFound(resource_provider=resource_provider_uuid)
