'Associate a list of aggregates with a resource provider.
:param resource_provider_uuid: UUID of the resource provider
:type resource_provider_uuid: str
:param aggregates: aggregates to be associated to the resource provider
:type aggregates: list of UUIDs'

@check_placement_api_available
def associate_aggregates(self, resource_provider_uuid, aggregates):

    url = ('/resource_providers/%s/aggregates' % resource_provider_uuid)
    self._put(url, aggregates, headers={'openstack-api-version': PLACEMENT_API_WITH_AGGREGATES})
