I am populating my cache using Populate Cache Policy and I am trying to use this Apigee X API to list the cache that I created. https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.environments.caches...
I can confirm that my cache is being populated correctly as I can retrieve it using Lookup Cache Policy. But when I use the Apigee X API to get the List of Cache it is showing empty result.
My Populate Cache Policy:
<?xml version"1.0" encoding="UTF-8" standalone="yes"?>
<PopulateCache continueOnError="false" enabled="true" name="Populate-Cache-1">
<DisplayName>Populate-Cache-1</DisplayName>
<CacheKey>
<KeyFragment>MyTestCache</KeyFragment>
</CacheKey>
<CacheResource>my_cache</CacheResource>
<Scope>Global</Scope>
<ExpirySettings>
<TimeoutInSec>3600</TimeoutInSec>
</ExpirySettings>
<Source>request.header.Authorization</Source>
</PopulateCache>
already saw this community post https://www.googlecloudcommunity.com/gc/Cloud-Product-Articles/Why-caches-are-not-listed-via-List-Ca... but as mention my <CacheResource> is already set correctly and still the List Cache shows empty result. May I know if I am missing something ?
It should work as per the documentation if you pointing to correct org/env & have IAM permissions
==
Authorization requires the following IAM permission on the specified resource parent
:
apigee.caches.list